SA-MP Forums Archive
How do i enable cmd only in checkpoint? - 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 do i enable cmd only in checkpoint? (/showthread.php?tid=233946)



How do i enable cmd only in checkpoint? - [ProX]BlueFire - 02.03.2011

How do i enable cmd only in checkpoint?
i mean if the player is out of checkpoint he will not be enable to use the cmd
so he can use the cmd only in the check point


Re: How do i enable cmd only in checkpoint? - Lorrden - 02.03.2011

pawn Код:
IsPlayerInRangeOfPoint
or use variables or something...

pawn Код:
new isincheckpoint[MAX_PLAYERS];

OnPlayerEnterCheckpoint(playerid)
{
isincheckpoint[playerid] = 1;
}