ID:144316
 
Code:
mob/Admin
verb
Add_Overlay(mob/M as mob in world, I as icon)
set category = "Admin"
M.overlays += I
Remove_Overlay(mob/M as mob in world, I as icon)
set category = "Admin"
M.overlays -= I
Info(var/t as text)
set category="Admin"
if(!t) return
if(length(t) > 1000)
src << "Your message was too long!"
return
else
world<<"<small><b><font color=red>Info: [t]</b></small></font>"


Problem description:for some reason it wont set the category admin.any help?

Dont put mob/admin
In response to Revojake
Well if he does that then all the players will have his admin verbs. What you have to do is give the admin verbs to your admin's upon login.
In response to Dice1989
so basically i give myself the verbs then make a verb to give it to the other admins
In response to Killacentral
A very simple method would be:
var/Admins = list("Dice1989","Killacentral")

mob/Login()
if(src.key in Admins)
src.verbs += typesof(/mob/Admin/verb/)
..()



Of course you could expand on this and create different levels of administration, each one having a different set of verbs.
In response to Dice1989
so after that i can basically add verbs and all that good stuff
In response to Killacentral
Basically, yes.
In response to Dice1989
ok i tried what u said and added the codes but it keeps sayin undefined path and i when i try somethin else the category still wont come up when i compile it
In response to Killacentral
nvm i got it
In response to Killacentral
if i start the code like

mob/DM
code
blah blah blah

will that mean only i will get the admin codes or the everyone in the game cuz thats the only way it'll work