I forgot something? or?
#1

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
Reply
#2

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
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)