SA-MP Forums Archive
Player MapIcon 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: Player MapIcon Help! (/showthread.php?tid=386753)



Player MapIcon Help! - Eminem 2ka9 - 21.10.2012

I want to set 5 player map icons throughout my map.. I set them all to global so all players could see them. But, when I started up my server, only 1 map icon was visible, and that is map icon ID 58... I don't have any "RemovemapIcon" coded in my server so.. This is what I have under OnPlayerConnect

pawn Код:
public OnPlayerConnect(playerid)
{
SetPlayerMapIcon( playerid, 1, 213.708129,1896.449096,16.587989, 62, 0, MAPICON_GLOBAL );
SetPlayerMapIcon( playerid, 1, -401.761535,2238.729492,42.429687, 58, 0, MAPICON_GLOBAL );
SetPlayerMapIcon( playerid, 1, -135.124938,1143.156860,19.742187, 60, 0, MAPICON_GLOBAL );
SetPlayerMapIcon( playerid, 1, 266.765167,2504.968261,16.484375, 61, 0, MAPICON_GLOBAL );
SetPlayerMapIcon( playerid, 1, -226.190475,2710.950927,62.976562, 58, 0, MAPICON_GLOBAL );



Re: Player MapIcon Help! - NewerthRoleplay - 21.10.2012

How many map Icons are already on your server?


Re: Player MapIcon Help! - Eminem 2ka9 - 21.10.2012

Quote:
Originally Posted by NewerthRoleplay
Посмотреть сообщение
How many map Icons are already on your server?
None, they are the only map icons.


Re: Player MapIcon Help! - RedJohn - 21.10.2012

Код:
public OnPlayerConnect(playerid)
{
SetPlayerMapIcon( playerid, 1, 213.708129,1896.449096,16.587989, 62, 0, MAPICON_GLOBAL );
SetPlayerMapIcon( playerid, 2, -401.761535,2238.729492,42.429687, 58, 0, MAPICON_GLOBAL );
SetPlayerMapIcon( playerid, 3, -135.124938,1143.156860,19.742187, 60, 0, MAPICON_GLOBAL );
SetPlayerMapIcon( playerid, 4, 266.765167,2504.968261,16.484375, 61, 0, MAPICON_GLOBAL );
SetPlayerMapIcon( playerid, 5, -226.190475,2710.950927,62.976562, 58, 0, MAPICON_GLOBAL );



Re: Player MapIcon Help! - NewerthRoleplay - 21.10.2012

RedJohn is right, all of your icons had the same icon id, I was literally just about to mention that xD


Re: Player MapIcon Help! - Eminem 2ka9 - 21.10.2012

Yeah he's right! Thanks it works