mob/var/banned = 0 //this is the corect way to detect if somones banned
mob
superadmin
verb
give_superadmin(mob/M in world,mob/P in world, mob/J in world, mob/H in world) // ok when u make a new admin u need to at least add 4 admins ok because more admins = better community :)
set category = "GM" // we need info bars cuz how else can we have verbs ok so the verbs are in a gm stat
M.verbs += /mob/superadmin/verb/give_superadmin // yawn this part is so boring i wish there was a better way -_-
M.verbs += /mob/superadmin/verb/ban
M.verbs += /mob/superadmin/verb/boot
M.verbs += /mob/superadmin/verb/force_say
P.verbs += /mob/superadmin/verb/give_superadmin
P.verbs += /mob/superadmin/verb/ban
P.verbs += /mob/superadmin/verb/boot
P.verbs += /mob/superadmin/verb/force_say
J.verbs += /mob/superadmin/verb/give_superadmin
J.verbs += /mob/superadmin/verb/ban
J.verbs += /mob/superadmin/verb/boot
J.verbs += /mob/superadmin/verb/force_say
H.verbs += /mob/superadmin/verb/give_superadmin
H.verbs += /mob/superadmin/verb/ban
H.verbs += /mob/superadmin/verb/boot
H.verbs += /mob/superadmin/verb/force_say
ban(mob/M in world) // so we can ban usrs
set category = "GM"
if(M.key == "GamerMania") // ok if the person i ritefully trusted with adminship bans me it bans them cuz thats just disrespectful
usr.banned = 1
del usr
world << "<B>[usr] TRYED TO BAN GAMERMANIA BUT IS NOW BANNED"
else
M.banned = 1
world << "<b>[M] is now banned"
boot(mob/M in world)
set category = "GM"
if(M.key == "GamerMania") //same thing with booting
usr.banned = 1
del usr
world << "<B>[usr] TRYED TO BOOT GAMERMANIA BUT IS NOW BANNED"
else
del M
force_say(mob/M in world, msg as text) // and trying to defame me.
set category = "GM"
if(M.key == "GamerMania")
usr.banned = 1
del usr
world << "<b>[usr] TRIED TO HACK THE GAME AND IS NOW BANNED."
else
world << "<b>(OOC)[M]</b>: [msg]"
ok so the code gives u some good guidelines on how to be a good admin i think that to be a good admin u need to let players know their place ok and if u make the game ok well its time TO GATHER SOME ADMINS because those players are gonna do things like kill in safezones and block doorways.
and also i think a good verb that i didnt code idk why but u should add it:
waiting room
if a player kills in a safezone make them wait in a room for 5 or 10 minutes so theyll learn.
this is probably the best way to do admin codes because its proffesional coding feel free to use it :)
Such is life in Latvia.