How to freeze all? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to freeze all? (
/showthread.php?tid=164488)
How to freeze all? -
[Ha]Lommo - 31.07.2010
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..
Re: How to freeze all? -
Kar - 31.07.2010
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);
}
}
}
Re: How to freeze all? -
[Ha]Lommo - 31.07.2010
thanks a lot.