ID:171379
 
Hey there any code so a gm chould stop everyone from moving?
Yes, there is.
In response to DeathAwaitsU
DeathAwaitsU wrote:
Yes, there is.

well how can i do it?
In response to CrazyFighter
There are several ways, one would be to alter the Move proc of all mobs to allow movement only when a certain variable allows you to.
In response to CrazyFighter
var/global/freeze=0
world/New()
spawn()freezer()

proc/freezer()
var/new_freeze
while(1)
sleep(100)
new_freeze=rand(0,2)
if(new_freeze!=freeze)
switch(new_freeze)
if(0)world<<"You are free!"
if(1)world<<"Freeze!"
if(2)
var/output=pick("You are free!","Freeze!","")
if(output)world<<output
freeze=prob(50);return
freeze=new_freeze

mob/Move()
if(freeze)return 0
.=..()


To be a bit more serious and helpful though, just give a verb to someone that allows them to change freeze to 0 or 1. Use that and the mob/Move and var/global/freeze declaration in there and you have what you want.