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



Check points - Qur - 15.07.2012

Hey.. is there any chance to make that.. if player is getting to some area he'll see the check points and it wont be always on the mini map?

and is there any option to make a few check points that apears when the players just enter the server?

and last thing is.. how can i control what happens when player reach checkpoint? like if i want a text to show.. where do i put it? what public?


THanks!


Re: Check points - ViniBorn - 15.07.2012

Work with OnPlayerEnterCheckpoint and IsPlayerInArea


Re: Check points - [DOG]irinel1996 - 15.07.2012

Also, when you set the checkpoint you should use a variable and give it a value to know which checkpoint did you reach.
And make your script in OnPlayerEnterCheckpoint checking variable's value. It would work as a "Checkpoint ID".
If you don't know how to use IsPlayerInArea try with IsPlayerInRangeOfPoint. If you're going to set the checkpoint checking the zone in OnPlayerUpdate, make a bool and check its values to set or no the checkpoint, because probably it'll be set infinite times when you're in that area.
Good luck!


Re: Check points - Qur - 16.07.2012

and on what public should I put that IsPlayerInRangeOfPoint?


Re: Check points - [DOG]irinel1996 - 16.07.2012

You can use OnPlayerUpdate, or make a new one with a timer and a loop. Anyway, you have to use a bool in both..