ID:169533
 
Hey, i want to give admin powers and character choices to certain users, but i don't know how to specify certain clients, anybody with some help?
address, ckey, key
In response to Hell Ramen
.....what?
In response to Telk
client.key is the player's Byond Key
client.ckey is the same as key but all small caps, no punctuation, etc.
client.address is the IP of the player

thats what he means

To give verbs to people use something like this:
mob
Player
icon='Player.dmi'
verb
AddVerbs()
verbs+=/mob/SpecialVerbs/verb/Boot()
SpecialVerbs
verb
Boot()
world<<"[src] wants to boot someone"

This exemple gives a player the ability to add the Boot() verb.
In response to FranquiBoy
hmmm well im still a little confused i mean so far i have this

client
var
admin = 0

and then i set up a character select sreen where if ur admin is less than or equal to 0, u get basic characters, but if its 1 and up, u can choose special ones.

but still, i know what key, ckey, and address mean, but how do i enter them? like this or something

if(client.key = *name*)
admin = 1

???????????
To add easy admin powers, do something with a list like the following:

var/list/GMs=list("Reinhartstar")//Add key here

mob/GM/verb/Boot(mob/M as mob in world)
del(M)

mob/Login()
if(usr.key in GMs)
usr.verbs += typesof(mob/GM/verb)
In response to Telk
mob
Login()
.=..() //Set the default return to continue the default actions
if(ckey==ckey("Telk")) //Checks if your key is yours
Admin=1 //If it is, your an admin
else
Admin=0 //If it isnt, your a regular person
In response to Telk
var/list/adminips=list()
var/list/adminkeys=list()

mob/Login()
..()
if(key in adminkeys||ckey in adminkeys||address in adminips)
src<<"You're an admin."