SA-MP Forums Archive
I forgot something? or? - 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: I forgot something? or? (/showthread.php?tid=210573)



I forgot something? or? - sjvt - 13.01.2011

Hi, i was doing mapicons because im bored and i use global to see it everywhere but it shows only the hospital

Код:
Code
pawn Код:
SetPlayerMapIcon(i, 12, 2015.3031, -1432.3176, 13.5468, 22, 0, MAPICON_GLOBAL); // Hospital
SetPlayerMapIcon(i, 12, 1551.5587, -1675.5253, 15.9022, 30 , 0, MAPICON_GLOBAL); // Police



Re: I forgot something? or? - Lorenc_ - 13.01.2011

pawn Код:
public OnPlayerSpawn(playerid)
{
      SetPlayerMapIcon(playerid, 12, 2015.3031, -1432.3176, 13.5468, 22, 0, MAPICON_GLOBAL); // Hospital
      SetPlayerMapIcon(playerid, 12, 1551.5587, -1675.5253, 15.9022, 30 , 0, MAPICON_GLOBAL); // Police
      return 1;
}
Just try that


Re: I forgot something? or? - Geso - 13.01.2011

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
pawn Код:
public OnPlayerSpawn(playerid)
{
      SetPlayerMapIcon(playerid, 12, 2015.3031, -1432.3176, 13.5468, 22, 0, MAPICON_GLOBAL); // Hospital
      SetPlayerMapIcon(playerid, 12, 1551.5587, -1675.5253, 15.9022, 30 , 0, MAPICON_GLOBAL); // Police
      return 1;
}
Just try that
Will not work, try this instead:

pawn Код:
public OnPlayerSpawn(playerid)
{
      SetPlayerMapIcon(playerid, 1, 2015.3031, -1432.3176, 13.5468, 22, 0, MAPICON_GLOBAL); // Hospital
      SetPlayerMapIcon(playerid, 2, 1551.5587, -1675.5253, 15.9022, 30 , 0, MAPICON_GLOBAL); // Police
      return 1;
}
Watch the second argument, it's the id, each mapicon needs another id.