20.02.2011, 13:04
tire o SetPlayerColor(playerid, WHITE);
pawn Код:
public OnPlayerSpawn(playerid)
{
if(Player[playerid][Authenticated] == 1)
{
if(Player[playerid][Group] == 1)
{
if(Player[playerid][CopDuty] == 1)
{
SetPlayerColor(playerid, WHITE);
}
else
{
SetPlayerColor(playerid, BLUE);
}
}
if(Player[playerid][Group] == 4)
{
SetPlayerColor(playerid, RED);
}
if(Player[playerid][Group] == 6)
{
SetPlayerColor(playerid, PURPLE);
}
if(Player[playerid][Group] == 8)
{
SetPlayerColor(playerid, GREEN);
}
if(Player[playerid][Group] == 12)
{
SetPlayerColor(playerid, YELLOW);
}
if(Player[playerid][Group] == 7)
{
SetPlayerColor(playerid, AQUAGREEN);
}
}