31.07.2010, 15:41
I want that when the rcon admin uses /freeze all people are frozen and not just one, and by /unfreeze all people can move again..
CMD:Freezeall(playerid,params[])
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
TogglePlayerControllable(i,0);
}
}
}
CMD:unFreezeall(playerid,params[])
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
TogglePlayerControllable(i,1);
}
}
}