PHP код:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Barra);
TextDrawHideForPlayer(playerid, intro1);
TextDrawHideForPlayer(playerid, intro2);
TextDrawShowForPlayer(playerid, Time);
TextDrawShowForPlayer(playerid, Date);
ChecarTempoJogado(playerid);
TextDrawShowForPlayer(playerid, Zones[playerid]);
TextDrawShowForPlayer(playerid, Zones2[playerid]);
if(DOF2_IsSet("Configuracoes/Admins.txt", Nome(playerid))){PlayerDados[playerid][Admin] = DOF2_GetInt("Configuracoes/Admins.txt", Nome(playerid));}
SetTimerEx("VerificarPreso", 1000, false, "i", playerid);
CheckInfoOrg_GreeN(playerid);
gTeam[playerid] = PlayerDados[playerid][pTeam]; //Set the Team
PlayerDados[playerid][pTeam] = 3;
if(gTeam[playerid] == 3)
{
if(PlayerDados[playerid][MembroOrg] > 0 || PlayerDados[playerid][LiderOrg] > 0)
{
// Policia Militar
if(PlayerDados[playerid][MembroOrg] == 2) { SetSpawnInfo(playerid, 11, PlayerDados[playerid][SkinJogador],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerDados[playerid][pTeam] = 11; gTeam[playerid] = 11;
}
// Groove Street
else if(PlayerDados[playerid][MembroOrg] == 3) { SetSpawnInfo(playerid, 10, PlayerDados[playerid][SkinJogador],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerDados[playerid][pTeam] = 10; gTeam[playerid] = 10;
}
//Ballas
else if(PlayerDados[playerid][MembroOrg] == 4) { SetSpawnInfo(playerid, 10, PlayerDados[playerid][SkinJogador],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerDados[playerid][pTeam] = 10; gTeam[playerid] = 10;
}
//Los Vagos
else if(PlayerDados[playerid][MembroOrg] == 5) { SetSpawnInfo(playerid, 10, PlayerDados[playerid][SkinJogador],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerDados[playerid][pTeam] = 10; gTeam[playerid] = 10;
}
//Governo
else if(PlayerDados[playerid][LiderOrg] == 1) { SetSpawnInfo(playerid, 11, PlayerDados[playerid][SkinJogador],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerDados[playerid][pTeam] = 11; gTeam[playerid] = 11;
}
//Policia Militar
else if(PlayerDados[playerid][LiderOrg] == 2) { SetSpawnInfo(playerid, 11, PlayerDados[playerid][SkinJogador],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerDados[playerid][pTeam] = 11; gTeam[playerid] = 11;
}
//Groove Street
else if(PlayerDados[playerid][LiderOrg] == 3) { SetSpawnInfo(playerid, 10, PlayerDados[playerid][SkinJogador],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerDados[playerid][pTeam] = 10; gTeam[playerid] = 10;
}
//Ballas
else if(PlayerDados[playerid][LiderOrg] == 4) { SetSpawnInfo(playerid, 10, PlayerDados[playerid][SkinJogador],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerDados[playerid][pTeam] = 10; gTeam[playerid] = 10;
}
//Los Vagos
else if(PlayerDados[playerid][LiderOrg] == 5) { SetSpawnInfo(playerid, 10, PlayerDados[playerid][SkinJogador],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerDados[playerid][pTeam] = 10; gTeam[playerid] = 10;
}
SpawnPlayer(playerid);
}
}
SetPlayerSpawn(playerid);
SetPlayerToTeamColor(playerid);
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=--=-=-=-=-=-=
return 1;
}