SA-MP Forums Archive
Have A question !! - 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)
+--- Thread: Have A question !! (/showthread.php?tid=620344)



Have A question !! - TYDS - 29.10.2016

Hi !
I want to ask that how can i make when player enter this checkpoint, it's will show another checkpoint and when enter that checkpoint it's will show another checpoint,...


Re: Have A question !! - Threshold - 29.10.2016

https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
https://sampwiki.blast.hk/wiki/OnPlayerEnterRaceCheckpoint
https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
https://sampwiki.blast.hk/wiki/SetPlayerRaceCheckpoint

Alternatives are to use Incognito's streamer plugin where checkpoints are assigned their own unique IDs, which can make scripting such a system much easier.


Re: Have A question !! - TYDS - 29.10.2016

could it's work ??
CMD:test > Setplayercheckpoint(...) > OnPlayerEnterCheckpoint > SetPlayerAnothercheckpoint right


Re: Have A question !! - StrikerZ - 29.10.2016

CMD:test > Setplayercheckpoint(...) > OnPlayerEnterCheckpoint > DisablePlayerCheckpoint(playerid); > SetPlayerCheckpoint > and so on.

But use DisablePlayerCheckpoint(playerid); to disable the current checkpoint when a player enters a particular checkpoint so that it won't show up again.