MapIcon - 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: MapIcon (
/showthread.php?tid=582422)
MapIcon -
Benac - 20.07.2015
Hi guys, how to make when i join on map icon , she destroy
sry for my bad english
Re: MapIcon -
Jstylezzz - 20.07.2015
Can't really make heads nor tails from this xd
What do you want? That when you join, a map icon is removed? Or when you join on/near a specific map icon it is removed?
If possible, try asking this question in the language section for a language you do understand (if they allow it there and if it exists for your language)
Re: MapIcon -
Benac - 20.07.2015
"That when you join, a map icon is removed"
Re: MapIcon -
Crystallize - 20.07.2015
lol you want to remove the map icon something like this :
http://prntscr.com/7uuwch ?
Re: MapIcon -
Jstylezzz - 20.07.2015
Ah that. I believe
this function, the function RemovePlayerMapIcon might be useful for you. I am assuming you created the mapicons with
SetPlayerMapIcon.
Just combine RemovePlayerMapIcon with OnPlayerSpawn (and make a check to see if they spawn for the first time).
If you mean the player's icon (the square), then just use
ShowPlayerMarkers to disable the player markers permanently (which means you don't have to remove every single one when they join)
Re: MapIcon -
Benac - 20.07.2015
I want every object to be marked with a map icon, when I walk through the object map icon disappears
Re: MapIcon -
Jstylezzz - 20.07.2015
Ah, I see. What do you use to detect if a player walks through the object? Just add the RemovePlayerMapIcon function in there, and let it delete the icon you created earlier.