[Ajuda] servidor crashando os players
#1

Hoje fui abrir meu servidor


sу que quando eu conecto no samp

todo player que loga leva crash tem algum geito de saber o que й ? e alguma callback ?
Reply
#2

Manda OnPlayerConnect.
Reply
#3

pawn Код:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        SpawnPlayer(playerid);
        return 1;
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsASonsCar(x))
        {
            SetVehicleNumberPlate(x, "{8B0000}SONS");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAMayansCar(x))
        {
            SetVehicleNumberPlate(x, "{D15FEE}MAYANS");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsABallasCar(x))
        {
            SetVehicleNumberPlate(x, "{7D26CD}BALLAS");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAAztecaCar(x))
        {
            SetVehicleNumberPlate(x, "{1E90FF}AZTECAS");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAVagosCar(x))
        {
            SetVehicleNumberPlate(x, "{FFFF00}VAGOS");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAGrooveCar(x))
        {
            SetVehicleNumberPlate(x, "{00FF00}GROOVE");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsaLosTugasCar(x))
        {
            SetVehicleNumberPlate(x, "{98FB98}PCC");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsACVRLCar(x))
        {
            SetVehicleNumberPlate(x, "{FF0000}CVRL");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsATalCar(x))
        {
            SetVehicleNumberPlate(x, "{FF1493}TALIBAN");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAAlCar(x))
        {
            SetVehicleNumberPlate(x, "{FFD39B}ALQAEDA");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAHitCar(x))
        {
            SetVehicleNumberPlate(x, "{828282}HITMANS");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsABOPEsCar(x))
        {
            SetVehicleNumberPlate(x, "{00008B}B.O.P.E");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAinterpolCar(x))
        {
            SetVehicleNumberPlate(x, "{FF6347}INTERPOL");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAPCCar(x))
        {
            SetVehicleNumberPlate(x, "{CD853F}P.CIVIL");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAExCar(x))
        {
            SetVehicleNumberPlate(x, "{006400}EXERCITO");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAPFCar(x))
        {
            SetVehicleNumberPlate(x, "{778899}PF");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsACopCar(x))
        {
            SetVehicleNumberPlate(x, "{6495ED}P.MILITAR");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAnAmbulanceCar(x))
        {
            SetVehicleNumberPlate(x, "{B22222}SA:MU");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAGOVCar(x))
        {
            SetVehicleNumberPlate(x, "{00BFFF}PREFEITURA");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsATaxiCar(x))
        {
            SetVehicleNumberPlate(x, "{FFA500}TAXISTA");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAJornalCar(x))
        {
            SetVehicleNumberPlate(x, "{F08080}REPORTER");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsACosaCar(x))
        {
            SetVehicleNumberPlate(x, "{00FFFF}M.CN");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAYaCar(x))
        {
            SetVehicleNumberPlate(x, "{104E8B}M.YKZ");
        }
    }
    for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsAMecCar(x))
        {
            SetVehicleNumberPlate(x, "{ADD8E6}MECANICOS");
        }
    }

    new connecting_ip[32+1];
    GetPlayerIp(playerid, connecting_ip, 32);
    new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);
    if(num_players_on_ip > CONEXOES_DE_UM_IP)
    {
        Ban(playerid);
        return 1;
    }

    fkill[playerid]=0;
    TextDrawShowForPlayer(playerid, forum[playerid]);
    TextDrawShowForPlayer(playerid, TextDrawdeData[playerid]);
    TextDrawShowForPlayer(playerid, TextDrawdeHora[playerid]);
    DisablePlayerCheckpoint(playerid);
    KillTimer(timer[playerid]);
    RemovePlayerAttachedObject(playerid, 4);

    if(strfind(PlayerName(playerid), "_", true) == -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "]", true) != -1 || strfind(PlayerName(playerid), "lixo", true) != -1 || strfind(PlayerName(playerid), "buceta", true) != -1 || strfind(PlayerName(playerid), "caralho", true) != -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "server", true) != -1
    || strfind(PlayerName(playerid), "servidor", true) != -1 || strfind(PlayerName(playerid), "crash", true) != -1 || strfind(PlayerName(playerid), "bpl", true) != -1 || strfind(PlayerName(playerid), "gamerx", true) != -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "189", true) != -1 || strfind(PlayerName(playerid), "201", true) != -1 || strfind(PlayerName(playerid), "200", true) != -1 || strfind(PlayerName(playerid), ".", true) != -1
    || strfind(PlayerName(playerid), "", true) != -1 || strfind(PlayerName(playerid), "(", true) != -1 || strfind(PlayerName(playerid), ")", true) != -1 || strfind(PlayerName(playerid), "@", true) != -1 || strfind(PlayerName(playerid), "amx", true) != -1 || strfind(PlayerName(playerid), "prn", true) != -1 || strfind(PlayerName(playerid), "__", true) != -1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк Foi Kickado por usar algum nome incorreto !");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Seu nome deve ser no formato Nome_Sobrenome Ex: Nome_Sobrenome");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Troque-o e volte, Obrigado.");
        format(gstring, 64, "Contas/%s.ini", PlayerName(playerid));
        Kick(playerid);
        fremove(gstring);
        return 1;
    }
    if(strcmp("Chuck", PlayerName(playerid), true) == 0)
    {
        SendClientMessage(playerid, 0x33FF00FF, "Nгo tente imitar Chuck_sobrenome ele nгo gosta disso !");
        SendClientMessage(playerid, 0x33FF00FF, "Chuck te kickou !");
        Kick(playerid);
    }
    for(new i; i<sizeof(NicksProibidos); i++)
    {
        if(strcmp(NicksProibidos[i], PlayerName(playerid), true) == 0)
        {
            SendClientMessage(playerid, COLOR_AZULBB, "Vocк estб usando um nome que й proibido no "NomeServidor" !");
            SendClientMessage(playerid, COLOR_AZULBB, "Vocк foi banido !");
            getdate(Ano, Mes, Dia);
            SBan(playerid, "Pego Usando um nome que й proibido no "NomeServidor"", "Automбtico");
        }
    }

    gActivePlayers[playerid]++;
    numplayers++;
    strcpy(BanInfo[playerid][pMotivo], "Nenhum", 126);
    strcpy(BanInfo[playerid][pAdmBan], "Nenhum", MAX_PLAYER_NAME);
    strcpy(BanInfo[playerid][pData], "0/0/0", 20);
    strcpy(BanInfo[playerid][pHora], "0:0:0", 20);
    pban[playerid] = 0;
    Reduzido[playerid] = 0;
    ReduzidoBot[playerid] = 0;
    var1[playerid] = 0;
    EmDialog[playerid] = 0;
    gmsg[playerid] = 0;
    PlayerInfo[playerid][pGun1] = 0;
    votou[playerid] = true;
    TruckMission[playerid] = 0;
    PlayerInfo[playerid][pGun2] = 0;
    PlayerInfo[playerid][pGun3] = 0;
    PlayerInfo[playerid][pGun4] = 0;

    storeexit[playerid] = 0;
    away[playerid] = 0;
    TutTime[playerid] = 0;
    InviteOffer[playerid] = 999;
    InviteJob[playerid] = 0;
    cdivulgar[playerid] = 0;
    PlayerInfo[playerid][pGun5] = 0;
    mudandonick[playerid] = 0;
    gpTimes[playerid] = 0;
    PlayerInfo[playerid][pGun6] = 0;
    PlayerInfo[playerid][pGun7] = 0;
    PlayerInfo[playerid][pGun8] = 0;
    PlayerInfo[playerid][pGun9] = 0;
    PlayerInfo[playerid][pGun10] = 0;
    gPlayerTerminal[playerid] = 0;
    PlayerInfo[playerid][pGun11] = 0;
    PlayerInfo[playerid][pGun12] = 0;
    PlayerInfo[playerid][pAmmo1] = 0;
    PlayerInfo[playerid][pCheckInfoOrg] = 0;
    PlayerInfo[playerid][pAmmo2] = 0;
    gSpamCount[playerid][0] = 0;
    gSpamCount[playerid][1] = 0;
    PlayerInfo[playerid][pAmmo3] = 0;
    PlayerInfo[playerid][pAmmo4] = 0;
    PlayerInfo[playerid][pAmmo5] = 0;
    PlayerInfo[playerid][pAmmo6] = 0;
    PlayerInfo[playerid][pAmmo7] = 0;
    PlayerInfo[playerid][pAmmo8] = 0;
    PlayerInfo[playerid][pAmmo9] = 0;
    PlayerInfo[playerid][pAmmo10] = 0;
    PlayerInfo[playerid][pAmmo11] = 0;
    PlayerInfo[playerid][pAmmo12] = 0;
    pRoadgang[playerid] = 0;
    PlayerUpdateInfo[playerid][posxafk] = 0; PlayerUpdateInfo[playerid][posyafk] = 0; PlayerUpdateInfo[playerid][poszafk] = 0;
    PlayerUpdateInfo[playerid][angleafk] = 0; PlayerInactivity[playerid] = 0;
    PhoneOnline[playerid] = 0; OfAssalto[playerid] = 999; precoassalto[playerid] = 0;
    SemBombas[playerid] = 0;
    GettingEmprego[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0;
    ApprovedAdvogado[playerid] = 0; CallAdvogado[playerid] = 0; WantAdvogado[playerid] = 0;
    KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
    CP[playerid] = 0; Robbed[playerid] = 0; PlayerInfo[playerid][pSpawn] = 0;
    CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
    RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0;
    SexOffer[playerid] = 999; SexPrice[playerid] = 0; MendigoOffer[playerid] = 999; MendigoPrice[playerid] = 0;
    RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
    TalkingLive[playerid] = INVALID_ONE; LiveOffer[playerid] = 999; BlindagemOffer[playerid] = 999; BlindagemPrice[playerid] = 0;
    RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
    DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
    DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0;
    DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0;
    JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0;
    WantedPoints[playerid] = 0; SetPlayerWantedLevel(playerid, 0); GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0;
    OnDuty[playerid] = 0; TestFishes[playerid] = 0; OnDuty2[playerid] = 0;
    BoxWaitTime[playerid] = 0;
    SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0;
    BusCallTime[playerid] = 0; CopsrondaCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0;
    BusrouteEast[playerid][0] = 0; BusrouteWest[playerid][0] = 0; BusShowLocation[playerid][0] = 0; BusShowLocationC[playerid] = 0;
    EmpregoDuty[playerid] = 0;
    Mobile[playerid] = INVALID_ONE; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0;
    Spectate[playerid] = INVALID_ONE; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
    Unspec[playerid][sLocal] = INVALID_ONE; FishCornt[playerid] = 0; ConsumingMoney[playerid] = 0;
    gLastCar[playerid] = 0; Galao[playerid] = 0; Tanoevento[playerid] = 0; Tanoevento1[playerid] = 0;
    gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;
    gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerConta[playerid] = 0;
    gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;
    PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0;
    StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
    MatsHolding[playerid] = 0;
    gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; MedicAccepted[playerid] = 999; MechanicAccepted[playerid] = 999; CopsrondaAccepted[playerid] = 999;
    PlayerInfo[playerid][pCash] = 1000; NoFuel[playerid] = 0;
    HireCar[playerid] = 0; PlayersChannel[playerid] = 999;
    TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
    Locator[playerid] = 0;
    WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0;
    Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;
    ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
    GivePlayerMoneyEx(playerid, PlayerInfo[playerid][pCash]);
    MudarNickAceito[playerid] = 0;
    InAFoodPlace[playerid] = 0;
    TrazerTodos[playerid] = 0;
    TrazerKart[playerid] = 0;
    TrazerZumbi[playerid] = 0;
    TrazerMinigun[playerid] = 0;
    Trazervs[playerid] = 0;
    OnTrazerChucky[playerid] = 0;
    TrazerRace[playerid] = 0;
    TrazerRally[playerid] = 0;
    OnEquipado[playerid] = 0;
    OnMafiaEquipado[playerid] = 0;
    GameInfo[playerid][PLojaA1] = 0;
    PlayerInfo[playerid][pCaixinha] = 0;
    GameInfo[playerid][PLojaA2] = 0;
    GameInfo[playerid][PpLoja247] = 0;
    GameInfo[playerid][PpLoja2472] = 0;
    PlayerInfo[playerid][pLevel] = 0;
    PlayerInfo[playerid][pAdmin] = 0;
    PlayerInfo[playerid][pVIP] = 0;
    PlayerInfo[playerid][pVoto] = 0;
    PlayerInfo[playerid][gPupgrade] = 0;
    PlayerInfo[playerid][pConnectTime] = 0;
    PlayerInfo[playerid][pReg] = 0;
    PlayerInfo[playerid][pSex] = 0;
    PlayerInfo[playerid][pAge] = 0;
    PlayerInfo[playerid][pExp] = 0;
    PlayerInfo[playerid][pDina] = 0;
    PlayerInfo[playerid][pDesalugado] = 0;
    PlayerInfo[playerid][pNeon] = 0;
    PlayerInfo[playerid][pAnime] = 0;
    PlayerInfo[playerid][pConta] = 0;
    PlayerInfo[playerid][pCrimes] = 0;
    PlayerInfo[playerid][pDeaths] = 0;
    PlayerInfo[playerid][pPhoneBook] = 0;
    PlayerInfo[playerid][pLottoNr] = 0;
    PlayerInfo[playerid][pFishes] = 0;
    PlayerInfo[playerid][pBiggestFish] = 0;
    PlayerInfo[playerid][pEmprego] = 0;
    PlayerInfo[playerid][pSalario] = 0;
    PlayerInfo[playerid][pHeadValue] = 0;
    PlayerInfo[playerid][pTrazerChucky] = 0;
    PlayerInfo[playerid][pJailed] = 0;
    PlayerInfo[playerid][pJailTime] = 0;
    PlayerInfo[playerid][pMats] = 0;
    PlayerInfo[playerid][pDorgado] = 0;
    PlayerInfo[playerid][pDorgado2] = 0;
    PlayerInfo[playerid][pDoenca] = 0;
    PlayerInfo[playerid][pCreditos] = 0;
    PlayerInfo[playerid][pDrogas] = 0;
    PlayerInfo[playerid][pDrogas2] = 0;
    PlayerInfo[playerid][pDrogas3] = 0;
    PlayerInfo[playerid][pSafeDrogas] = 0;
    PlayerInfo[playerid][pSafeDrogas2] = 0;
    PlayerInfo[playerid][pSafeDrogas3] = 0;
    PlayerInfo[playerid][pLider] = 0;
    PlayerInfo[playerid][pMembro] = 0;
    PlayerInfo[playerid][pCargo] = 0;
    PlayerInfo[playerid][pContractTime] = 0;
    PlayerInfo[playerid][pDetSkill] = 0;
    PlayerInfo[playerid][pSexSkill] = 0;
    PlayerInfo[playerid][pBoxSkill] = 0;
    PlayerInfo[playerid][pLawSkill] = 0;
    PlayerInfo[playerid][pMechSkill] = 0;
    PlayerInfo[playerid][pNewsSkill] = 0;
    PlayerInfo[playerid][pDrogasSkill] = 0;
    PlayerInfo[playerid][pCookSkill] = 0;
    PlayerInfo[playerid][pFishSkill] = 0;
    PlayerInfo[playerid][pSHealth] = 0.0;
    PlayerInfo[playerid][pPos_x] = 2246.6;
    PlayerInfo[playerid][pPos_y] = -1161.9;
    PlayerInfo[playerid][pPos_z] = 1029.7;
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pLocal] = INVALID_ONE;
    PlayerInfo[playerid][pTeam] = 3;
    PlayerInfo[playerid][pSkin] = 3;
    admtrampando[playerid] = 0;
    admhide[playerid] = 0;
    liderhide[playerid] = 0;
    new randphone = 1000 + random(9999);
    PlayerInfo[playerid][pPnumber] = randphone;
    PlayerInfo[playerid][pPHousekey] = INVALID_ONE;
    PlayerInfo[playerid][pPbiskey] = INVALID_ONE;
    PlayerInfo[playerid][pCarLic] = 0;
    PlayerInfo[playerid][pFlyLic] = 0;
    PlayerInfo[playerid][pBoatLic] = 0;
    PlayerInfo[playerid][pFishLic] = 0;
    PlayerInfo[playerid][pGunLic] = 0;
    PlayerInfo[playerid][pPayDay] = 0;
    PlayerInfo[playerid][pCDPlayer] = 0;
    PlayerInfo[playerid][pWins] = 0;
    PlayerInfo[playerid][pLoses] = 0;
    PlayerInfo[playerid][pAlcoholPerk] = 0;
    PlayerInfo[playerid][pDrugPerk] = 0;
    PlayerInfo[playerid][pMiserPerk] = 0;
    PlayerInfo[playerid][pPainPerk] = 0;
    PlayerInfo[playerid][pTraderPerk] = 0;
    PlayerInfo[playerid][pTut] = 0;
    PlayerInfo[playerid][pWarns] = 0;
    SpikeInfo[playerid][sCreated] = 0;
    PlayerInfo[playerid][pRequestingBackup] = 0;
    PlayerInfo[playerid][pMask] = 0;
    PlayerInfo[playerid][pMaskuse] = 0;
    PlayerInfo[playerid][pGangue] = 0;
    PlayerInfo[playerid][pBloqueio] = 0;
    PlayerInfo[playerid][pBarraca] = 0;
    PlayerInfo[playerid][pBarreira] = 0;
    PlayerInfo[playerid][pParedao] = 0;
    PlayerInfo[playerid][pGanguePlantado] = 0;
    PlayerInfo[playerid][pPregosPlantado] = 0;
    PlayerInfo[playerid][pBarreiraPlantado] = 0;
    PlayerInfo[playerid][nMercenarioM] = 0;
    PlayerInfo[playerid][pAdminPlantado] = 0;
    PlayerInfo[playerid][pBarracaPlantado] = 0;
    PlayerInfo[playerid][pLuta] = 0;
    strcpy(PlayerInfo[playerid][pLastLogin], "0/0/0/0/0/0", 20);
    ClearCrime(playerid);
    ClearFishes(playerid);
    ClearCooking(playerid);
    ClearGroceries(playerid);
    ClearMarriage(playerid);
    SetPlayerColor(playerid, COLOR_GRAD2);
    TextShow[playerid] = false;
    HouseEntered[playerid] = INVALID_ONE;
    new string2[64];
    format(string2, sizeof(string2), "Contas/%s.ini", PlayerName(playerid));
    SendClientMessage(playerid, COLOR_GREEN, "Espere alguns segundos...");
    MapIcons(playerid);
    if(donoestacao == 0)
    {
        GangZoneShowForPlayer(playerid, GZEstacao, 0xC0C0C0AA);
    }
    if(donoestacao == 1)
    {
        GangZoneShowForPlayer(playerid, GZEstacao, COR_COSA);
    }
    if(donoestacao == 2)
    {
        GangZoneShowForPlayer(playerid, GZEstacao, COR_YAK);
    }
    if(donoestacao == 3)
    {
        GangZoneShowForPlayer(playerid, GZEstacao, COR_PF);
    }
    if(donocasarao == 0)
    {
        GangZoneShowForPlayer(playerid, GZCasarao, 0xC0C0C0AA);
    }
    if(donocasarao == 1)
    {
        GangZoneShowForPlayer(playerid, GZCasarao, COR_COSA);
    }
    if(donocasarao == 2)
    {
        GangZoneShowForPlayer(playerid, GZCasarao, COR_YAK);
    }
    if(donocasarao == 3)
    {
        GangZoneShowForPlayer(playerid, GZCasarao, COR_PF);
    }
    if(donoFavela == 0)
    {
        GangZoneShowForPlayer(playerid, GZFavela, 0xC0C0C0AA);
    }
    if(donoFavela == 1)
    {
        GangZoneShowForPlayer(playerid, GZFavela, TEAM_GROVE_COLOR);
    }
    if(donoFavela == 2)
    {
        GangZoneShowForPlayer(playerid, GZFavela, TEAM_BALLAS_COLOR);
    }
    if(donoFavela == 3)
    {
        GangZoneShowForPlayer(playerid, GZFavela, TEAM_VAGOS_COLOR);
    }
    if(donoFavela == 4)
    {
        GangZoneShowForPlayer(playerid, GZFavela, TEAM_AZTECAS_COLOR);
    }
    if(donoFavela == 5)
    {
        GangZoneShowForPlayer(playerid, GZFavela, COR_BOPE);
    }
    if(donoFavela == 6)
    {
        GangZoneShowForPlayer(playerid, GZFavela, GCOP_COLOR);
    }
    if(donoFavela == 7)
    {
        GangZoneShowForPlayer(playerid, GZFavela, COR_CVRL);
    }
    if(donoFavela == 8)
    {
        GangZoneShowForPlayer(playerid, GZFavela, COR_TUGAS);
    }
    if(donoFavela == 8)
    {
        GangZoneShowForPlayer(playerid, GZFavela, COR_TUGAS);
    }
    if(donoFavela == 9)
    {
        GangZoneShowForPlayer(playerid, GZFavela, COR_PC);
    }
    if(donoskate == 0)
    {
        GangZoneShowForPlayer(playerid, GZSkate, 0xC0C0C0AA);
    }
    if(donoskate == 1)
    {
        GangZoneShowForPlayer(playerid, GZSkate, TEAM_GROVE_COLOR);
    }
    if(donoskate == 2)
    {
        GangZoneShowForPlayer(playerid, GZSkate, TEAM_BALLAS_COLOR);
    }
    if(donoskate == 3)
    {
        GangZoneShowForPlayer(playerid, GZSkate, TEAM_VAGOS_COLOR);
    }
    if(donoskate == 4)
    {
        GangZoneShowForPlayer(playerid, GZSkate, TEAM_AZTECAS_COLOR);
    }
    if(donoskate == 5)
    {
        GangZoneShowForPlayer(playerid, GZSkate, COR_BOPE);
    }
    if(donoskate == 6)
    {
        GangZoneShowForPlayer(playerid, GZSkate, GCOP_COLOR);
    }
    if(donoskate == 7)
    {
        GangZoneShowForPlayer(playerid, GZSkate, COR_CVRL);
    }
    if(donoskate == 8)
    {
        GangZoneShowForPlayer(playerid, GZSkate, COR_TUGAS);
    }
    if(donoskate == 9)
    {
        GangZoneShowForPlayer(playerid, GZSkate, COR_PC);
    }
    if(donoHotel == 0)
    {
        GangZoneShowForPlayer(playerid, GZPosto, 0xC0C0C0AA);
    }
    if(donoHotel == 1)
    {
        GangZoneShowForPlayer(playerid, GZPosto, COR_INTERPOL);
    }
    if(donoHotel == 2)
    {
        GangZoneShowForPlayer(playerid, GZPosto, COR_SONS);
    }
    if(donoHotel == 3)
    {
        GangZoneShowForPlayer(playerid, GZPosto, COR_MAYANS);
    }
    if(donoFloresta == 0)
    {
        GangZoneShowForPlayer(playerid, GZFloresta, 0xC0C0C0AA);
    }
    if(donoFloresta  == 1)
    {
        GangZoneShowForPlayer(playerid, GZFloresta, COR_EXE);
    }
    if(donoFloresta  == 2)
    {
        GangZoneShowForPlayer(playerid, GZFloresta, COR_TAL);
    }
    if(donoFloresta  == 3)
    {
        GangZoneShowForPlayer(playerid, GZFloresta, COR_AL);
    }
    ClearChatbox(playerid, 100);
    if(fexist(string2))
    {
        gPlayerConta[playerid] = 1;
    }
    else
    {
        gPlayerConta[playerid] = 0;
    }
    return 1;
}
Reply
#4

Caralho que tanto de loops.
Reply
#5

lol gamemode do rjj tб deixando os creditos ?
Reply
#6

Nossa velho, da pra otimzar e muito esse seu OnPlayerConnect ai -.-
Reply
#7

Provavelmente й isso mesmo.

23 - 24 loops, oque poderia ser feito em somente um.
Reply
#8

ah й do gamemode do rjjj nгo tirei os creditos =D


Break se eu soubesse como transformar os loops em 1
Reply
#9

Else if.
Reply
#10

Break Tem Skype ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)