OnPlayerEnterCheckpoint
#1

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)