How to freeze all?
#1

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..
Reply
#2

pawn Код:
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);
        }
    }
}
Reply
#3

thanks a lot.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)