Correct work of SetPlayerMarkerForPlayer
#1

pawn Код:
CMD:spot(playerid,params[])
{
    if(Pinfo[playerid][Admin] == 0 && Pinfo[playerid][Mod] == 0)
    {
        SFT(playerid,"You cannot use this command."); return 1;
    }
    if(SpotEnabled[playerid] == 0)
    {
        for(new i=0; i < MAX_PLAYERS; i++)
        {
            if(Pinfo[playerid][Admin] > 0)
            {
                SetPlayerMarkerForPlayer(i,playerid,0xffcc00FF); //Orange
            }
            else
            {
                SetPlayerMarkerForPlayer(i,playerid,0x333399FF); //Blue
            }
        }
        SpotEnabled[playerid] = 1;
    }
    else
    {
        for(new i=0; i < MAX_PLAYERS; i++)
        {
            SetPlayerMarkerForPlayer(i,playerid,0x99CEFF00);
        }
        SpotEnabled[playerid] = 0;
    }
    return 1;
}
Why this set only orange/blue color in user list [ TAB ], but not in mini map, my reference https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Reply
#2

It should, you might have to re-stream the players?
Reply
#3

Hmm, I realy need help this time, can someone tell, how to enable map marker from one player to others, that everyone see only one player maker
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)