ID:148197
 
Here is the coding, ill state whats wrong with it.

Tournament()
set category = "Police"
set name= "Host Tournament"
for(var/mob/characters/M in world)
if(M.gm <> 1)
M << "[usr] is hosting a tournament!, Press Yes to enter!"
if(alert(M,"Do you want to join the Tournament?","Enter","Yes","No") == "Yes")
M.loc=locate(92,140,10)
usr.loc=locate(92,140,10)


Problem is, it wont go to the next mob in the world, unless the one before it clicks Yes to the Join Tournament alert, any help would be appriciated.

James
spawn() off everything after the for loop.
In response to Crispy
Ah, makes sense, thanks.
Also, I recommend that you change the
if(M.GM <> 1)
To
if(!M.GM)
In case you ever implement different GM levels.
In response to Hazman
Thanks for your concern, I have different GM levels, but the GM verb referrs to any of these levels :)