Made permission checks for some verbs more TG-compliant.

Fixed Edit Appearance verb.
Removed DB verb since we are not using SQL and it'll only confuse admins.
This commit is contained in:
Chinsky
2013-02-03 00:10:29 +04:00
parent e74cd95fec
commit f4469083b2
2 changed files with 19 additions and 57 deletions
+6 -7
View File
@@ -758,13 +758,12 @@ var/global/floorIsLava = 0
set category = "Server"
set desc="Delay the game start/end"
set name="Delay"
if(!check_rights(R_ADMIN)) return
if (!ticker || ticker.current_state != GAME_STATE_PREGAME)
if (src.rank in list("Badmin", "Game Admin", "Game Master"))
ticker.delay_end = !ticker.delay_end
log_admin("[key_name(usr)] [ticker.delay_end ? "delayed the round end" : "has made the round end normally"].")
message_admins("\blue [key_name(usr)] [ticker.delay_end ? "delayed the round end" : "has made the round end normally"].", 1)
else
usr << "\red You are not a high enough rank."
ticker.delay_end = !ticker.delay_end
log_admin("[key_name(usr)] [ticker.delay_end ? "delayed the round end" : "has made the round end normally"].")
message_admins("\blue [key_name(usr)] [ticker.delay_end ? "delayed the round end" : "has made the round end normally"].", 1)
return //alert("Round end delayed", null, null, null, null, null)
going = !( going )
if (!( going ))
@@ -1090,4 +1089,4 @@ proc/move_alien_ship()
alien_ship_location = 0
else
alien_ship_location = 1
return
return