SA-MP Forums Archive
DisablePlayerCheckpoint - 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: DisablePlayerCheckpoint (/showthread.php?tid=105400)



DisablePlayerCheckpoint - Ironboy500 - 29.10.2009

I know Command DisablePlayerCheckpoint, but then it disable checkpoint only for one player, what is cmd to disable for all players?


Re: DisablePlayerCheckpoint - Sergei - 29.10.2009

pawn Код:
for(new i=0;i<MAX_PLAYERS;i++)
{
    if(IsPlayerConnected(i)) DisablePlayerCheckPoint(i);
}
I would suggest using foreach anyway:
pawn Код:
foreach(Player,i)
{
    DisablePlayerCheckPoint(i);
}