31.05.2010, 23:34
pawn Код:
public OnPlayerSpawn(playerid)
{
if(Gang[playerid] == Yakuza)
{
SetPlayerColor(playerid,0xFFFF00AA);
}
else if(Gang[playerid] == Operarios)
{
SetPlayerColor(playerid,0x9900FFAA);
}
else if(Gang[playerid] == Piloto)
{
SetPlayerColor(playerid,0xFFFF00AA);
}
else if(Gang[playerid] == EXERCITO)
{
SetPlayerColor(playerid,0x00FFFF);
}
else if(Gang[playerid] == POLICIA)
{
SetPlayerColor(playerid,0x4682B4);
}
return 1;
}
OnPlayerRequestSpawn -> Cada vez que Precionar F4 e Morre ou Quando Loga ao Servidor