How to check if inside MapIcon Marker. - 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 to check if inside MapIcon Marker. (
/showthread.php?tid=455709)
How to check if inside MapIcon Marker. -
Facerafter - 02.08.2013
Titlee ^^
Im using this:
pawn Код:
SetPlayerMapIcon(playerid, 99, plX,plY,plZ, 0,3 ,MAPICON_GLOBAL_CHECKPOINT);
How to check wether hes in the checkpoint to remove it?
Is it possible to use OnPlayerEnterCheckpoint?
Because that public doesn't ask for a mapicon id.
But
pawn Код:
RemovePlayerMapIcon(playerid, iconid)
Needs one...
AW: How to check if inside MapIcon Marker. -
BigETI - 02.08.2013
store the position of the marker somewhere in your script, and use IsPlayerInRangeOfPoint to detect, if a player is inside the marker or not.