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



Checkpoints issue - antonio112 - 15.03.2011

Hey again ! Alright, so, my question is simple. How can I do this way, when a player enters a certain location, a small checkpoint will pop up for the player and when he leaves the zone, the checkpoint will dissapear.

I know that I must use IsPlayerInRangeOfPoint function .. but where do I have to put it? I`m guessing that if I put it in the OnPlayerUpdate it`ll lag my server.


Re: Checkpoints issue - GNGification - 15.03.2011

Do you use pickups?


Re: Checkpoints issue - antonio112 - 15.03.2011

That`s the idea. I want to avoid using pickups ... I don`t like having milions of pickups everywhere.

Maybe I can make an invisible pickup which can be pickable? Or ?


Re: Checkpoints issue - Marricio - 15.03.2011

Do 1 second timer when player spawns?


Re: Checkpoints issue - antonio112 - 15.03.2011

Quote:
Originally Posted by Marricio
Посмотреть сообщение
Do 1 second timer when player spawns?
Oh, that seems a pretty resonable solution ... Hm still waiting for other solutions, if you can think at any other ones ...

Thanks for your help till now :P


Re: Checkpoints issue - Marricio - 15.03.2011

If you use OnPlayerUpdate, it will update 8/7 times.. So dont use it, i'd recommend using a simple timer.