SA-MP Forums Archive
How can I create a fake checkpoint? - 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: How can I create a fake checkpoint? (/showthread.php?tid=653810)



How can I create a fake checkpoint? - K3n7oR - 13.05.2018

Hi, how can I create a fake control point?

I'll leave a picture with a model here: https://imgur.com/a/XMCsVVD
The first time I thought it would be an object but I do not find such an object in the list of objects on wiki.sa-mp.com or on other sites only much larger checkpoints.


Re: How can I create a fake checkpoint? - Lokii - 13.05.2018

if you use 0.3DL you can create a custom cp

or use this: https://sampforum.blast.hk/showthread.php?tid=644519 which will work on other versions too.


Re: How can I create a fake checkpoint? - NaS - 13.05.2018

That checkpoint is a mission checkpoint and can be achieved by using a MapIcon with types MAP_ICON_LOCAL_CHECKPOINT and MAP_ICON_GLOBAL_CHECKPOINT.

https://sampwiki.blast.hk/wiki/SetPlayerMapIcon

https://sampwiki.blast.hk/wiki/MapIconStyle

If you don't want it to show a MapIcon use iconid 0 and color 0 (0x00000000).

There will be no callback called whatsoever when entered though, so you need to use a dynamic area or manually check if a player is in there.


Alternatively use the base checkpoint model [1317] (which appears to be white and bugged as object) BUT it will turn into a red Checkpoint when used as Pickup (with the advantage of being detectable via OnPlayerPickUpPickup and NOT floating when used on custom objects - which regular checkpoints and mission checkpoints will do).

Actually you can use these 3 Models as Pickups for different types of checkpoints:

Код:
 1317 = cylinder
 1316 = hoop
 1559 = diamond checkpoint thing