SetPlayerMarkerForPlayer
#1

I use this code, but the marker doesn't show up.

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
  if(IsPlayerConnected(i) && PlayerLoggedIn[i])
  {
    if(PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 1)
    {
      BackupActivated[playerid] = 1;
      SetPlayerMarkerForPlayer(playerid,i,0xFF0000FF);
      format(string, sizeof(string), "* Officer %s needs backup - he's marked red on the radar.", PlayerName[playerid]);
      SendClientMessage(i,COLOR_RED,string);
    }
  }
}
Please help me.
Reply
#2

"SetPlayerMarkerForPlayer(playerid,i,0xFF0000F F);"

You want to show "playerid" on i's radar, right? If so then you need to switch around the parameters to this:

SetPlayerMarkerForPlayer(i,playerid,0xFF0000FF);
Reply
#3

Is player marker better, or is checkpoint?
Reply
#4

Quote:
Originally Posted by Simon
"SetPlayerMarkerForPlayer(playerid,i,0xFF0000F F);"

You want to show "playerid" on i's radar, right? If so then you need to switch around the parameters to this:

SetPlayerMarkerForPlayer(i,playerid,0xFF0000FF);
Umm, it's not working... i tried your way and it doesn't show up for other players.
Reply
#5

nevermind
Reply
#6

BUMP
Reply
#7

BUMP
Reply
#8

OMG BUMP! Nobody knows?
Reply
#9

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

ShowPlayerMarkers(1);//On your OnGameModeInit
Reply
#10

Quote:
Originally Posted by Dark_Kostas
https://sampwiki.blast.hk/wiki/ShowPlayerMarkers

ShowPlayerMarkers(1);//On your OnGameModeInit
Isn't it going to show this for everybody without using that funciton?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)