Thunderdome - Create Teams Button

This commit is contained in:
SamCroswell
2015-04-06 11:59:02 -04:00
parent e6a6803e24
commit 69c788449b
4 changed files with 103 additions and 2 deletions
+11
View File
@@ -2674,6 +2674,17 @@
log_admin("[key_name(usr)] reset the thunderdome to default with delete_mobs==[delete_mobs].", 1)
message_admins("<span class='adminnotice'>[key_name_admin(usr)] reset the thunderdome to default with delete_mobs==[delete_mobs].</span>")
if("tdomestart")
var/confirmation = alert("Start a Thunderdome match?","Confirm","Yes","No")
if(confirmation == "No")
return
if(makeThunderdomeTeams())
log_admin("[key_name(usr)] started a Thunderdome match!", 1)
message_admins("<span class='adminnotice'>[key_name_admin(usr)] has started a Thunderdome match!</span>")
else
log_admin("[key_name(usr)] attempted to start a Thunderdome match, but no ghosts signed up.", 1)
message_admins("<span class='adminnotice'>[key_name_admin(usr)] tried starting a Thunderdome match, but no ghosts signed up.</span>")
if("securitylevel0")
set_security_level(0)
message_admins("\blue [key_name_admin(usr)] change security level to Green.", 1)