Team colour problem
#7

K were going to make a new call back.

put this on the bottom of your script:
pawn Код:
SetPlayerToTeamColor(playerid)
{
    if (gTeam[playerid] == TEAM_1)
    {
        SetPlayerColor(playerid, COLOR_0xF01717AA);
    }
    else if (gTeam[playerid] == TEAM_2)
    {
        SetPlayerColor(playerid, COLOR_0x2634A1AA);
    }
    else if (gTeam[playerid] == TEAM_3)
    {
        SetPlayerColor(playerid, COLOR_0x215908AA);
    }
    else if (gTeam[playerid] == TEAM_4)
    {
        SetPlayerColor(playerid, 0x22EBCAAA);
    }
}
and put this under "OnPlayerSpawn"

pawn Код:
SetPlayerToTeamColor(playerid);
Enjoy
Reply


Messages In This Thread
Team colour problem - by Goobiiify - 20.08.2009, 18:45
Re: Team colour problem - by [HUN]Gamestar - 20.08.2009, 18:58
Re: Team colour problem - by Goobiiify - 20.08.2009, 19:02
Re: Team colour problem - by [HUN]Gamestar - 20.08.2009, 19:04
Re: Team colour problem - by Goobiiify - 20.08.2009, 19:17
Re: Team colour problem - by saiberfun - 20.08.2009, 19:29
Re: Team colour problem - by _Vortex - 20.08.2009, 19:32
Re: Team colour problem - by Goobiiify - 20.08.2009, 19:33
Re: Team colour problem - by Goobiiify - 20.08.2009, 19:44
Re: Team colour problem - by saiberfun - 20.08.2009, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)