26.03.2012, 00:59
pawn Code:
public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
if(Player[playerid][pMember] == 0) { SetPlayerColor(playerid, 0xFFFFFFFF); }
//=====================================PM LS========================================//
if(Player[playerid][pMember] == 1) { SetPlayerColor(playerid, COLOR_PM); }
//=====================================FBI========================================//
if(Player[playerid][pMember] == 2) { SetPlayerColor(playerid, COLOR_PF); }
//=====================================Exercito========================================//
if(Player[playerid][pMember] == 3) { SetPlayerColor(playerid, COLOR_FA); }
//=====================================Medicos========================================//
if(Player[playerid][pMember] == 4) { SetPlayerColor(playerid, COLOR_MEDICOS); }
//=====================================Ballas LS========================================//
if(Player[playerid][pMember] == 5) { SetPlayerColor(playerid, COLOR_BALLAS); }
//=====================================Grove LS========================================//
if(Player[playerid][pMember] == 6) { SetPlayerColor(playerid, COLOR_GROOVE); }
//=====================================Prefeito========================================//
if(Player[playerid][pMember] == 7) { SetPlayerColor(playerid, COLOR_PREF); }
//=====================================Hitmans========================================//
if(Player[playerid][pMember] == 8) { SetPlayerColor(playerid, COLOR_HITMAN); }
//=====================================Reporter========================================//
if(Player[playerid][pMember] == 9) { SetPlayerColor(playerid, COLOR_SANEWS); }
//=====================================Lowrider========================================//
if(Player[playerid][pMember] == 10) { SetPlayerColor(playerid, COLOR_LOWRIDERS); }
//=====================================San Fierro Riffas========================================//
if(Player[playerid][pMember] == 11) { SetPlayerColor(playerid, COLOR_RIFA); }
//=====================================Los Santos Vagos========================================//
if(Player[playerid][pMember] == 12) { SetPlayerColor(playerid, COLOR_VAGOS); }
//=====================================MOTORBIKE========================================//
if(Player[playerid][pMember] == 13) { SetPlayerColor(playerid, COLOR_BIKERS); }
//=====================================Policia Rodoviaria========================================//
if(Player[playerid][pMember] == 14) { SetPlayerColor(playerid, COLOR_MUNICIPAL); }
//=====================================Los Aztecas========================================//
if(Player[playerid][pMember] == 15) { SetPlayerColor(playerid, COLOR_AZTECAS); }
//=====================================Russa========================================//
if(Player[playerid][pMember] == 16) { SetPlayerColor(playerid, COLOR_RUSSA); }
//=====================================Mafia Yakuza========================================//
if(Player[playerid][pMember] == 17) { SetPlayerColor(playerid, COLOR_YAKUZA); }
//=====================================Drifters========================================//
if(Player[playerid][pMember] == 18) { SetPlayerColor(playerid, COLOR_DRIFTERS); }
//=====================================Comando Vermelho========================================//
if(Player[playerid][pMember] == 19) { SetPlayerColor(playerid, COLOR_BLOODS); }
//=====================================PCC========================================//
if(Player[playerid][pMember] == 20) { SetPlayerColor(playerid, COLOR_CREEPS); }
//=====================================Bope========================================//
if(Player[playerid][pMember] == 21) { SetPlayerColor(playerid, COLOR_BOPE); }
//=====================================Al-Qaeda========================================//
if(Player[playerid][pMember] == 22) { SetPlayerColor(playerid, COLOR_ALQAEDA); }
//=====================================INGS========================================//
if(Player[playerid][pMember] == 23) { SetPlayerColor(playerid, COLOR_KINGS); }
//=====================================Admin========================================//
if(Player[playerid][pAdmin] > 0) { SetPlayerColor(playerid, COLOR_YELLOW); }
}
return 1;
}