20.08.2009, 19:32
K were going to make a new call back.
put this on the bottom of your script:
and put this under "OnPlayerSpawn"
Enjoy
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);
}
}
pawn Код:
SetPlayerToTeamColor(playerid);