12.12.2012, 06:11
In SA-MP, by default you can only create/define ONE checkpoint, however thanks to Incognito, you can create now, multiple checkpoints. If you are not using streamer, you can create only one checkpoint and 'OnPlayerEnterCheckpoint' is the callback that gets called when you enter that ONE checkpoint.
However if you are using streamer, you can create multiple checkpoints, for example,
so when the player enters a Dynamic Checkpoint, OnPlayerEnterDynamicCP gets called where you can define on entering WHICH checkpoint, what should be executed, etc.
For example:
However if you are using streamer, you can create multiple checkpoints, for example,
pawn Код:
checkpoint1 = CreateDynamicCP...'
For example:
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if (checkpointid==checkpoint1)
{
//Your code here
}
return 1;
}