How to check if inside MapIcon Marker.
#1

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...
Reply
#2

store the position of the marker somewhere in your script, and use IsPlayerInRangeOfPoint to detect, if a player is inside the marker or not.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)