ID:146327
 
Code:mob/GM/proc/Boot(mob/M in world)
if(M == src) return
del(M)
var/list/GMs = list("Mysame","SyfexBlade","Emasym")
mob/Login()
..()
if(GMs.Find(key))
verbs +=typesof(/mob/GM/proc/Boot)



Problem description: It simply doesnt recognize ANY key to be a GM......
Also, this might nt be the fight forum, but whenever my basic icon stands still, it turns a non-stated icon... >.<


</<>
mob/gm/verb/boot(mob/M in world)
if(M==src)
usr<<"cant boot yourself"
else
del(M)




var/list/Admins = list("Mysame")



mob/proc/Admin()
if(Admins.Find(src.key))
src.verbs+= typesof(/mob/gm/verb)
..()
In response to Cheetoz
remove:
var/list/Admins = list("Mysame")

and use:
mob/Login()
if(src.key=="key1"||"key2"||"key3")
src.verbs+=//add the verbs you want added here


much easier! =)

O-matic
In response to Cheetoz
Works till now, but then i'm getting this...

door3//A door moving the user to a defined location
Entered(mob/M)
if(istype(M,/mob/GMs))//replace /mob/player with your player's mob type
M.loc=locate(1,1,1)//location inside the location the door leads to
return ..()
else
M <<"GM's only"
return 0



tut.dm:332:error:/mob/GMs:undefined type path

In response to O-matic
same thing
In response to Mysame
Mysame wrote:
tut.dm:332:error:/mob/GMs:undefined type path

that type path doesn't exists.

O-matic
In response to Mysame
    door3//A door moving the user to a defined location
Entered(mob/M)
if(istype(M,/mob/Admins))//replace /mob/player with your player's mob type
M.loc=locate(1,1,1)//location inside the location the door leads to
return ..()
else
M <<"GM's only"
return 0