Removed the start_vote command, because it can only have 3 buttons and no cancel option. Start it up via the voting command, now.

This commit is contained in:
Albert Iordache
2012-05-15 10:07:45 +03:00
parent e4d2ccd42a
commit 474c6a4a4f
2 changed files with 4 additions and 9 deletions
+3 -8
View File
@@ -2728,17 +2728,12 @@ var/global/BSACooldown = 0
dat += "<center><B>Voting</B></center><hr>\n"
if(lvl > 0)
// if(lvl >= 2 )
dat += {"
<A href='?src=\ref[src];votekill=1'>Abort Vote</A><br>
<A href='?src=\ref[src];vmode=1'>Start Vote</A><br>
<A href='?src=\ref[src];voteres=1'>Toggle Voting</A><br>
"}
// if(lvl >= 3 )
// if(lvl >= 5)
// if(lvl == 6 )
usr << browse(dat, "window=admin2;size=210x160")
return
@@ -2750,11 +2745,11 @@ var/global/BSACooldown = 0
/obj/admins/proc/vmode()
set category = "Server"
set name = "Start Vote"
set desc="Starts vote"
set hidden = 1 // It doesn't have a cancel button, so it shouldn't be autocompleted. Should be started via Voting() instead
if (!usr.client.holder)
return
var/confirm = alert("What vote would you like to start?", "Vote", "Restart", "Custom Vote", "Change Game Mode", "Cancel")
var/confirm = alert("What vote would you like to start?", "Vote", "Restart", "Custom Vote", "Change Game Mode")
switch(confirm)
if("Cancel")
return