help with small code
#3

I am not sure what's wrong but try this:
pawn Код:
new pTeam = GetPlayerTeam(playerid);
    for(new i =0; i < MAX_PLAYERS;i++)
   {
   if(IsPlayerConnected(i))
    {
        if(GetPlayerTeam(i) == pTeam)
        {
            SetPlayerMarkerForPlayer(playerid, i, (GetPlayerColor(i) & 0xFFFFFF00));
            SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & 0xFFFFFF00));
        }
        else
        {
            SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(playerid));
            SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(i));
        }
    }
}
Reply


Messages In This Thread
help with small code - by Onfroi - 09.11.2014, 00:20
Re: help with small code - by MD5 - 09.11.2014, 00:23
Re: help with small code - by Eth - 09.11.2014, 00:24
Re: help with small code - by Abagail - 09.11.2014, 00:25
Re: help with small code - by Onfroi - 09.11.2014, 01:21
Re: help with small code - by Eth - 09.11.2014, 02:33

Forum Jump:


Users browsing this thread: 1 Guest(s)