SA-MP Forums Archive
Correct work of SetPlayerMarkerForPlayer - 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: Correct work of SetPlayerMarkerForPlayer (/showthread.php?tid=199846)



Correct work of SetPlayerMarkerForPlayer - Voldemort - 16.12.2010

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


Re: Correct work of SetPlayerMarkerForPlayer - Retardedwolf - 16.12.2010

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


Re: Correct work of SetPlayerMarkerForPlayer - Voldemort - 16.12.2010

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