Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mob/Admin_1/verb/Message_To_All()
- // Level 1 Admin verb.
- var/Message=input("Message?","Spam Message","The Game.") as text
- // Define Message to be the text,
- // "Message?" is the question.
- // "Spam Message" is the title.
- // "The Game. is the default text. This will appear in the text box,
- // so that the text box isn't blank.
- for(var/mob/M in world) M<<"[src] spams [Message]"
- // For every mob in the world, we output to the mob the Messenger, and the Message.
- mob/Admin_2/verb/Change_Icon(A as icon)
- // Level 2 Admin verb.
- // A as icon, A will be the icon file they choose.
- src.icon = A
- // Their icon will now be the A icon.
- mob/proc/Admin_Check()
- if(src.key=="Klosk")
- // If the mob's key is "Klosk"
- src.verbs += typesof(/mob/Admin_1/verb)
- // Add Level 1 Admin verbs to their verb list.
- src.verbs += typesof(/mob/Admin_2/verb)
- // Add Level 2 Admin verbs to their verb list.
- return 1
- // return 1, meaning it was successful or "True"
- if(src.key=="Sowa12")
- src.verbs += typesof(/mob/Admin_1/verb)
- return 1
- // Same thing, except if they aren't Klosk, it'll check the next in line, being Sowa12.
- if(src.key=="Random_Cookie")
- world << "It's the cookie."
- // This is me. return 0 means unsuccsessful, or "False"
- return 0
- else return 0
- client/New()
- ..()
- if(src.mob.Admin_Check()) world<<"<b>Admin</b> [src] has arrived!"
- // Shortened version of "If the client's mob returns a 1 on Admin_Check()...
- // Tell the world they are Admin.
- else world << "[src] has arrived!"
- // Otherwise, tell the world they ain't nothin'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement