SA-MP Forums Archive
Map Icon Help - 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: Map Icon Help (/showthread.php?tid=628068)



Map Icon Help - silverms - 05.02.2017

hey so I want to make a map icon on the map that the player can see even if he isn't in range like the (n) map icon iv search a lot but couldn't find anything so can u plz help me with it?. thx


Re: Map Icon Help - Eoussama - 05.02.2017

Are you kidding?
https://sampwiki.blast.hk/wiki/MapIconStyle


Re: Map Icon Help - AndreiWow - 05.02.2017

Did you use this?
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon


Re: Map Icon Help - silverms - 05.02.2017

I saw this but I didn't understand it which style is the one I need?


Re: Map Icon Help - silverms - 05.02.2017

Quote:
Originally Posted by Eoussama
Посмотреть сообщение
sorry I saw it but didn't understand it sorry can u tell me which is the one I need to use?


Re: Map Icon Help - AndreiWow - 05.02.2017

MAPICON_GLOBAL


GLOBAL rings a bell?


Re: Map Icon Help - silverms - 05.02.2017

mapicon_global isn't working


Re: Map Icon Help - silverms - 05.02.2017

@AndrieWow it should be like this? SetPlayerMapIcon(playerid, 35, 1289.0956,-1868.2617,13.5469, 52, 0, MAPICON_GLOBAL);


Re: Map Icon Help - silverms - 05.02.2017

any one help?


Respuesta: Map Icon Help - HidroDF - 05.02.2017

https://sampwiki.blast.hk/wiki/SetPlayerMapIcon

Код:
SetPlayerMapIcon (playerid, iconid, Float:x, Float:y, Float:z, markertype, color, style);
playerid	The ID of the player to set the map icon for.
iconid	The player's icon ID, ranging from 0 to 99. This means there is a maximum of 100 map icons. ID can be used in RemovePlayerMapIcon.
Float:x	The X coordinate to place the map icon at.
Float:y	The Y coordinate to place the map icon at.
Float:z	The Z coordinate to place the map icon at.
markertype	The icon to set.
color	The color of the icon, as an integer or hex in RGBA color format. This should only be used with the square icon (ID: 0).
style	The style of icon.


public OnPlayerConnect( playerid )
{
    // This example demonstrates how to create a dollar-icon on top of a 24/7 located
    // in Las Venturas. This way new players know where to go with their money!
    SetPlayerMapIcon(playerid, 12, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL);
}
Edit the coordenates to change the icon position. Now the style.

https://sampwiki.blast.hk/wiki/MapIconStyle

Код:
MAPICON_LOCAL: Close proximity only
MAPICON_GLOBAL: Show on radar edge as long as in range
LOCAL will show the icon when you are near the coordinates.
GLOBAL will show the icon when you are as long as in range of the coordinates.

Check if you don't have another SetPlayerMapIcon with duplicate ID.