13.05.2018, 17:24
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:
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