Locked: Coke905 talking to staff members in Developer Help
|
|
i would like to know how to make GM system. I was watching a tutorial online and the tabs didnt seem to be working ill paste my code under so you guys can see whats wrong.
mob/GM1/verb
Rename(mob/M in world,t as text)
world <<"[src.username] has changed [M] name to [t]"
M.username="[t]"
mob/var
GM=0
mob/Owner/verb
giveGM(mob/M in world )
set category="GM"
set name = "Make GM"
switch(input("Which GM level do you want to give")in list("GM1/Enforcer","GM2/Moderator"))
if("GM1/Enforcer")
M.GM = 1
M.verbs += typesof(/mob/GM1/verb)
if("GM2/Moderator")
M.GM = 2
M.verbs += typesof(/mob/GM1/verb)
|
I would handle administration privileges via a global list of keys (or ckeys, if you prefer), then apply verbs from an /admin (or whatever you want to call it, like /GM or something) datum that acts solely as a verb container directly to the administrator's /client. This makes it so that admin verbs are secure and that no one could possibly switch into the admin's mob and steal the verbs.