Code:
public OnPlayerConnect(playerid)
{
CreatePlayerObject(playerid, 8168, 55.97, -1532.31, 6.07, 0.00, 0.00, 8.00);
CreatePlayerObject(playerid, 966, 56.05, -1528.62, 3.93, 0.00, 0.00, 262.00);
CreatePlayerObject(playerid, 966, 56.05, -1535.86, 3.93, 0.00, 0.00, 82.00);
Cancela[playerid][0] = CreatePlayerObject(playerid, 968, 56.05, -1528.62, 4.67, 0.00, 270.00, 262.00);
Cancela[playerid][1] = CreatePlayerObject(playerid, 968, 56.05, -1535.82, 4.71, 0.00, 90.00, 262.00);
Pedagio[playerid] = false;
RemovePlayerAttachedObject(playerid, 4);
TextDrawShowForPlayer(playerid, Entrada[playerid]);
DisablePlayerCheckpoint(playerid);
KillTimer(timer[playerid]);
FloodAlert[playerid] = 0; FloodTimer[playerid] = 0;
SendClientMessage(playerid, ColorFlood, "Este server tem o Anti-Flood do {FFFF00}MrLucasOBGS{24B1DB}!");
if(PlayerInfo[playerid][pCargo] == 0)
{
BugSpawn[playerid] = 1;
}
new connecting_ip[32+1];
GetPlayerIp(playerid,connecting_ip,32);
new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);
if(num_players_on_ip > MAX_CONNECTIONS_FROM_IP) {
printf("MAXIPs: Connecting player(%d) exceeded %d IP connections from %s.", playerid, MAX_CONNECTIONS_FROM_IP, connecting_ip);
Ban(playerid);
return 1;
}
FilaAtendimentoText[playerid] = TextDrawCreate(500 ,150 , "_");
TextDrawFont(FilaAtendimentoText[playerid] , 1);
TextDrawLetterSize(FilaAtendimentoText[playerid] , 0.399999, 1.300000);
TextDrawColor(FilaAtendimentoText[playerid] , 0xc4ff00FF);
TextDrawSetOutline(FilaAtendimentoText[playerid] , 1);
TextDrawSetProportional(FilaAtendimentoText[playerid] , true);
TextDrawSetShadow(FilaAtendimentoText[playerid] , 1);
TextDrawHideForPlayer(playerid,FilaAtendimentoText[playerid]);
TempoAtendimento2Text[playerid] = TextDrawCreate(500 ,165 , "_");
TextDrawFont(TempoAtendimento2Text[playerid] , 1);
TextDrawLetterSize(TempoAtendimento2Text[playerid] , 0.399999, 1.300000);
TextDrawColor(TempoAtendimento2Text[playerid] , 0xc4ff00FF);
TextDrawSetOutline(TempoAtendimento2Text[playerid] , 1);
TextDrawSetProportional(TempoAtendimento2Text[playerid] , true);
TextDrawSetShadow(TempoAtendimento2Text[playerid] , 1);
TextDrawHideForPlayer(playerid,TempoAtendimento2Text[playerid]);
FilaAtendimento[playerid] = 999;
TempoAtendimento2[playerid] = 0;