config announce admin login/out

This commit is contained in:
Jordie0608
2015-09-03 20:38:36 +10:00
parent 0efc54eba4
commit 9de0f3567d
4 changed files with 24 additions and 18 deletions
+1 -2
View File
@@ -5,8 +5,7 @@
if(admin_datums[src.ckey])
if (ticker && ticker.current_state == GAME_STATE_PLAYING) //Only report this stuff if we are currently playing.
var/admins_number = admins.len
message_admins("Admin logout: [key_name(src)]")
client.adminGreet(1)
if(admins_number == 0) //Apparently the admin logging out is no longer an admin at this point, so we have to check this towards 0 and not towards 1. Awell.
var/cheesy_message = pick( list( \
"I have no admins online!",\