Merge pull request #11564 from Jordie0608/thisbranchnameisalie

Config announce admin login/out
This commit is contained in:
Razharas
2015-09-06 06:40:15 +03:00
9 changed files with 42 additions and 21 deletions
+10 -15
View File
@@ -810,19 +810,14 @@ var/global/floorIsLava = 0
return 1
/client/proc/adminGreet()
/client/proc/adminGreet(logout)
if(ticker && ticker.current_state == GAME_STATE_PLAYING)
var/string = pick(
"I welcome you to the server [key]!",
"Happy to see you [key]!",
"Ah, [key] logged, say hello!",
"The server welcomes you [key]!",
"Exceptional! [key] joined us, what an honour!",
"Another amazing day, because [key] logged, say hi!",
"Did anyone see? [key] logged, welcome!",
"Monday to sunday, the server warmly welcomes you [key]!",
"It's a pleasure to see you [key], greetings!",
"Not a bad day if [key] joins, welcome, welcome!",
"Surely it's nice to see you [key], have a heartly welcome!")
//I really do
message_admins("[string]")
var/string
if(logout && config && config.announce_admin_logout)
string = pick(
"Admin logout: [key_name(src)]")
else if(!logout && config && config.announce_admin_login && (prefs.toggles & ANNOUNCE_LOGIN))
string = pick(
"Admin login: [key_name(src)]")
if(string)
message_admins("[string]")
+1
View File
@@ -1,6 +1,7 @@
//admin verb groups - They can overlap if you so wish. Only one of each verb will exist in the verbs list regardless
var/list/admin_verbs_default = list(
/client/proc/toggleadminhelpsound, /*toggles whether we hear a sound when adminhelps/PMs are used*/
/client/proc/toggleannouncelogin, /*toggles if an admin's login is announced during a round*/
/client/proc/deadmin_self, /*destroys our own admin datum so we can play as a regular player*/
/client/proc/cmd_admin_say, /*admin-only ooc chat*/
/client/proc/hide_verbs, /*hides all our adminverbs*/