Vote_Reboot()
if(rebootcd)
src << "<font color=olive>Reboot vote can't be spammed so frequently."
return
rebootcd=1
spawn(600) rebootcd=0
for(var/mob/them in world)
them.rebootbox=input("Do you want the server to reboot?",them) in list("Yes","No")
if(them.rebootbox=="Yes") rebootyes+=1
else if(them.rebootbox=="No") rebootno+=1
spawn(100)
if(rebootyes>rebootno)
world << output("<FONT SIZE=4 COLOR=SILVER>More people voted yes than no. The world will now reboot.","output1")
spawn(100) world.Reboot()
else world << output("<FONT SIZE=2 COLOR=SILVER>Not enough people voted yes. The round will not reboot.","output1")
Instead of the vote being sent to each player, it sends a vote to the user, 1 for each player. What am I doing wrong with the for() proc?
You're setting the usr at the end of the args in the input(), you need to set it first.