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



OnPlayerEnterCheckpoint - PhantomDot1 - 21.05.2011

this is the code i had with a pickup:
Код:
if(pickupid == enter)
{
SetPlayerPos(playerid, 1204.7668, -9.0050, 1000.9219);
SetPlayerInterior(playerid, 0);
}
now im trying to make the pickup a checkpoint, but i cant do something like
Код:
if(checkpointid == enter)
cause than it says it doesnt know that, how to fix this ?


Re: OnPlayerEnterCheckpoint - Sascha - 21.05.2011

sa-mp doesn't use "checkpointid" by default..
either use player variables or check for the player's position...

or just use this streamer
https://sampforum.blast.hk/showthread.php?tid=102865
it has checkpointids..
like: new cid = CreateDynamicCP(...........);
public OnPlayerEnterDynamicCP(playerid, checkpoint)

just read the link for more information