Team markers
#7

pawn Код:
public OnPlayerSpawn(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++) //foreach is better
    {
        if(!IsPlayerConnected(i)) continue;
        SetPlayerMarkerForPlayer(playerid, i, (GetPlayerColor(i) & ((GetPlayerTeam(i) == GetPlayerTeam(playerid)) ? (0x000000FF) : (0xFFFFFF00))));
        SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & ((GetPlayerTeam(playerid) == GetPlayerTeam(i)) ? (0x000000FF) : (0xFFFFFF00))));
    }
    return 1;
}
Reply


Messages In This Thread
Team markers - by iBots - 16.05.2014, 14:47
Re: Team markers - by rockhopper - 16.05.2014, 15:12
Re: Team markers - by iBots - 16.05.2014, 17:55
Re: Team markers - by Abagail - 16.05.2014, 17:57
Re: Team markers - by iBots - 16.05.2014, 18:23
Re: Team markers - by iBots - 17.05.2014, 10:36
Re: Team markers - by Threshold - 17.05.2014, 11:05
Re: Team markers - by iBots - 17.05.2014, 18:08
Re: Team markers - by Threshold - 18.05.2014, 00:15

Forum Jump:


Users browsing this thread: 2 Guest(s)