SA-MP Forums Archive
Adding a Icon on the map? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Adding a Icon on the map? (/showthread.php?tid=90418)



Adding a Icon on the map? - Studio - 08.08.2009

Hi, I'm having trouble with adding an icon on the radar/map.
If I wanted to add one here:

How would I do it?

Thanks, Studio.


Re: Adding a Icon on the map? - ruarai - 08.08.2009

first goto there and do /save then go into your GTA SA folder and open "savedpositions.txt" and look for something like this
pawn Код:
AddPlayerClass( 0,[b] 1958.33, 1343.12[/b], 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
The two bold numbers are the location for the map icon (ofcourse you would have a different location), then get those two numbers and put them into the SetPlayerMapIcon Function like this:
pawn Код:
SetPlayerMapIcon( playerid, [u]1[/u], [b]2204.9468, 1986.2877[/b], 0, [i]19[/i], 0 );
And put it under OnPlayerSpawn
The text in Underline is the ID of the map icon, This must be unique!
The text in bold is the Location of the map icon. which you got from the /save function.
The text in italic is the model of the map icon. which you can find here.
Then its done!