їQuй puede ser?
#1

Tengo un problema, al loguearme en el servidor aparece el mensaje tнpico de "Bienvenido, te has logueado" pero el jugador tarda en spawnear, se laguea el servidor y luego de 20 segundos el jugador spawnea y se va el lag. Vн si habнa timers pero no hay, algъno sabe que puede ser? No creo que sean los datos.
Reply
#2

Postea el callback OnPlayerSpawn(playerid)
Reply
#3

mejor la callback de el login
Reply
#4

PHP код:
public OnPlayerLogin(playerid,password[])
{
    new 
tmp2[256];
    new 
string2[64];
    new 
playername2[MAX_PLAYER_NAME];
    new 
playernamesplit[3][MAX_PLAYER_NAME];
    
GetPlayerName(playeridplayername2sizeof(playername2));
    
split(playername2playernamesplit'_');
    
format(string2sizeof(string2), "users/%s.ini"playername2);
    new 
FileUserFile fopen(string2io_read);
    if ( 
UserFile )
    {
        new 
PassData[256];
        new 
keytmp[256], valtmp[256];
        
freadUserFile PassData sizeofPassData ) );
        
keytmp ini_GetKeyPassData );
        if( 
strcmpkeytmp "Key" true ) == )
        {
            
valtmp ini_GetValuePassData );
            
strmid(PlayerInfo[playerid][pKey], valtmp0strlen(valtmp)-1255);
        }
        if(
strcmp(PlayerInfo[playerid][pKey],passwordtrue ) == 0)
        {
                new 
key256 ] , val256 ];
                new 
Data256 ];
                while ( 
freadUserFile Data sizeofData ) ) )
                {
                    
key ini_GetKeyData );
                    if( 
strcmpkey "Level" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLevel] = strvalval ); }
                    if( 
strcmpkey "AdminLevel" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAdmin] = strvalval ); }
                    if( 
strcmpkey "DonateRank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPremium] = strvalval ); }
                    if( 
strcmpkey "UpgradePoints" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][gPupgrade] = strvalval ); }
                    if( 
strcmpkey "ConnectedTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pConnectTime] = strvalval ); }
                    if( 
strcmpkey "Registered" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pReg] = strvalval ); }
                    if( 
strcmpkey "Sex" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSex] = strvalval ); }
                    if( 
strcmpkey "Age" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAge] = strvalval ); }
                    if( 
strcmpkey "Origin" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pOrigin] = strvalval ); }
                    if( 
strcmpkey "Origin2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pOrigin2] = strvalval ); }
                    if( 
strcmpkey "CK" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCK] = strvalval ); }
                    if( 
strcmpkey "Muted" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMuted] = strvalval ); }
                    if( 
strcmpkey "Respect" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pExp] = strvalval ); }
                    if( 
strcmpkey "Money" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCash] = strvalval ); }
                    if( 
strcmpkey "Bank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAccount] = strvalval ); }
                    if( 
strcmpkey "Crimes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCrimes] = strvalval ); }
                    if( 
strcmpkey "Kills" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pKills] = strvalval ); }
                    if( 
strcmpkey "Deaths" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDeaths] = strvalval ); }
                    if( 
strcmpkey "Arrested" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pArrested] = strvalval ); }
                    if( 
strcmpkey "PHospital" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][PHospital] = strvalval ); }
                    if( 
strcmpkey "PLSPD" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][PLSPD] = strvalval ); }
                    if( 
strcmpkey "PCheckpoints" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][PCheckpoints] = strvalval ); }
                    if( 
strcmpkey "WantedDeaths" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWantedDeaths] = strvalval ); }
                    if( 
strcmpkey "Phonebook" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPhoneBook] = strvalval ); }
                    if( 
strcmpkey "LottoNr" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLottoNr] = strvalval ); }
                    if( 
strcmpkey "Fishes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishes] = strvalval ); }
                    if( 
strcmpkey "BiggestFish" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBiggestFish] = strvalval ); }
                    if( 
strcmpkey "Job" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJob] = strvalval ); }
                    if( 
strcmpkey "Paycheck" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPayCheck] = strvalval ); }
                    if( 
strcmpkey "HeadValue" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHeadValue] = strvalval ); }
                    if( 
strcmpkey "Jailed" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJailed] = strvalval ); }
                    if( 
strcmpkey "JailTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJailTime] = strvalval ); }
                    if( 
strcmpkey "Materials" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMats] = strvalval ); }
                    if( 
strcmpkey "Drugs" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrugs] = strvalval ); }
                    if( 
strcmpkey "Leader" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLeader] = strvalval ); }
                    if( 
strcmpkey "Member" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMember] = strvalval ); }
                    if( 
strcmpkey "FMember" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFMember] = strvalval ); }
                    if( 
strcmpkey "Rank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pRank] = strvalval ); }
                    if( 
strcmpkey "Char" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pChar] = strvalval ); }
                    if( 
strcmpkey "ContractTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pContractTime] = strvalval ); }
                    if( 
strcmpkey "DetSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDetSkill] = strvalval ); }
                    if( 
strcmpkey "SexSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSexSkill] = strvalval ); }
                    if( 
strcmpkey "BoxSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBoxSkill] = strvalval ); }
                    if( 
strcmpkey "LawSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLawSkill] = strvalval ); }
                    if( 
strcmpkey "MechSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMechSkill] = strvalval ); }
                    if( 
strcmpkey "JackSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJackSkill] = strvalval ); }
                    if( 
strcmpkey "CarSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarSkill] = strvalval ); }
                    if( 
strcmpkey "NewsSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pNewsSkill] = strvalval ); }
                    if( 
strcmpkey "DrugsSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrugsSkill] = strvalval ); }
                    if( 
strcmpkey "CookSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCookSkill] = strvalval ); }
                    if( 
strcmpkey "FishSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishSkill] = strvalval ); }
                    if( 
strcmpkey "pSHealth" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSHealth] = floatstrval ); }
                    if( 
strcmpkey "pHealth" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHealth] = floatstrval ); }
                    if( 
strcmpkey "Int" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pInt] = strvalval ); }
                    if( 
strcmpkey "Local" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLocal] = strvalval ); }
                    if( 
strcmpkey "Team" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTeam] = strvalval ); }
                    if( 
strcmpkey "Model" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pModel] = strvalval ); }
                    if( 
strcmpkey "PhoneNr" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPnumber] = strvalval ); }
                    if( 
strcmpkey "Car" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPcarkey] = strvalval ); }
                    if( 
strcmpkey "Car2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPcarkey2] = strvalval ); }
                    if( 
strcmpkey "Car3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPcarkey3] = strvalval ); }
                    if( 
strcmpkey "House" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPhousekey] = strvalval ); }
                    if( 
strcmpkey "Bizz" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPbiskey] = strvalval ); }
                    if( 
strcmpkey "Pos_x" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_x] = floatstrval ); }
                    if( 
strcmpkey "Pos_y" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_y] = floatstrval ); }
                    if( 
strcmpkey "Pos_z" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_z] = floatstrval ); }
                    if( 
strcmpkey "CarLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarLic] = strvalval ); }
                    if( 
strcmpkey "FlyLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFlyLic] = strvalval ); }
                    if( 
strcmpkey "BoatLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBoatLic] = strvalval ); }
                    if( 
strcmpkey "FishLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishLic] = strvalval ); }
                    if( 
strcmpkey "GunLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGunLic] = strvalval ); }
                    if( 
strcmpkey "Gun1" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun1] = strvalval ); }
                    if( 
strcmpkey "Gun2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun2] = strvalval ); }
                    if( 
strcmpkey "Gun3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun3] = strvalval ); }
                    if( 
strcmpkey "Gun4" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun4] = strvalval ); }
                    if( 
strcmpkey "Ammo1" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo1] = strvalval ); }
                    if( 
strcmpkey "Ammo2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo2] = strvalval ); }
                    if( 
strcmpkey "Ammo3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo3] = strvalval ); }
                    if( 
strcmpkey "Ammo4" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo4] = strvalval ); }
                    if( 
strcmpkey "CarTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarTime] = strvalval ); }
                    if( 
strcmpkey "PayDay" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPayDay] = strvalval ); }
                    if( 
strcmpkey "PayDayHad" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPayDayHad] = strvalval ); }
                    if( 
strcmpkey "Watch" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWatch] = strvalval ); }
                    
//if( strcmp( key , "Crashed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrashed] = strval( val ); }
                    
if( strcmpkey "Wins" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWins] = strvalval ); }
                    if( 
strcmpkey "Loses" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLoses] = strvalval ); }
                    if( 
strcmpkey "AlcoholPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAlcoholPerk] = strvalval ); }
                    if( 
strcmpkey "DrugPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrugPerk] = strvalval ); }
                    if( 
strcmpkey "MiserPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMiserPerk] = strvalval ); }
                    if( 
strcmpkey "PainPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPainPerk] = strvalval ); }
                    if( 
strcmpkey "TraderPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTraderPerk] = strvalval ); }
                    if( 
strcmpkey "Tutorial" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTut] = strvalval ); }
                    if( 
strcmpkey "Mission" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMissionNr] = strvalval ); }
                    if( 
strcmpkey "Warnings" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWarns] = strvalval ); }
                    if( 
strcmpkey "VirWorld" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pVirWorld] = strvalval ); }
                    if( 
strcmpkey "Fuel" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFuel] = strvalval ); }
                    if( 
strcmpkey "Married" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMarried] = strvalval ); }
                    if( 
strcmpkey "MarriedTo" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pMarriedTo], val0strlen(val)-1255); }
                    if( 
strcmpkey "FishTool" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishTool] = strvalval ); }
                    if( 
strcmpkey "Note1" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pNote1], val0strlen(val)-1255); }
                    if( 
strcmpkey "Note1s" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pNote1s] = strvalval ); }
                    if( 
strcmpkey "Note2" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pNote2], val0strlen(val)-1255); }
                    if( 
strcmpkey "Note2s" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pNote2s] = strvalval ); }
                    if( 
strcmpkey "Note3" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pNote3], val0strlen(val)-1255); }
                    if( 
strcmpkey "Note3s" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pNote3s] = strvalval ); }
                    if( 
strcmpkey "Note4" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pNote4], val0strlen(val)-1255); }
                    if( 
strcmpkey "Note4s" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pNote4s] = strvalval ); }
                    if( 
strcmpkey "Note5" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pNote5], val0strlen(val)-1255); }
                    if( 
strcmpkey "Note5s" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pNote5s] = strvalval ); }
                    if( 
strcmpkey "InvWeapon" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pInvWeapon] = strvalval ); }
                    if( 
strcmpkey "InvAmmo" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pInvAmmo] = strvalval ); }
                    if( 
strcmpkey "Lighter" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLighter] = strvalval ); }
                    if( 
strcmpkey "Cigarettes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCigarettes] = strvalval ); }
                    if( 
strcmpkey "Locked" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLocked] = strvalval ); }
                    }
//end while
                
fclose(UserFile);//close the file after everything has been read in the while
                
}
        else
        {
            new 
loginstring[128];
            new 
loginname[64];
            
GetPlayerName(playerid,loginname,sizeof(loginname));
            
format(loginstring,sizeof(loginstring),"Contraseсa Incorrecta \nPor favor introduzca la contraseсa correcta:",loginname);
            
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_PASSWORD,"Loguear",loginstring,"Loguear","Salir");
            
fclose(UserFile);
            
gPlayerLogTries[playerid] += 1;
            if(
gPlayerLogTries[playerid] == 4) { Kick(playerid); }
         return 
1;
         }
        
//PlayerInfo[playerid][pAdjustable] = 0;
        
Z_ResetPlayerMoney(playerid);
        
//ConsumingMoney[playerid] = 1;
        
Z_GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
        
CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
        if(
PlayerInfo[playerid][pReg] == 0)
        {
            
PlayerInfo[playerid][pLevel] = 1;
            
PlayerInfo[playerid][pSHealth] = 0.0;
            
PlayerInfo[playerid][pHealth] = 50.0;
            
PlayerInfo[playerid][pPos_x] = 1612.3240;
            
PlayerInfo[playerid][pPos_y] = -2330.1670;
            
PlayerInfo[playerid][pPos_z] = 13.5469;
            
PlayerInfo[playerid][pInt] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
            
PlayerInfo[playerid][pTeam] = 3;
            
PlayerInfo[playerid][pModel] = 135;
            new 
randphone 100000 random(899999);//minimum 1000  max 9999 //giving one at the start
            
PlayerInfo[playerid][pPnumber] = randphone;
            
PlayerInfo[playerid][pPhousekey] = 255;
            
PlayerInfo[playerid][pPcarkey] = 999;
            
PlayerInfo[playerid][pPcarkey2] = 999;
            
PlayerInfo[playerid][pPcarkey3] = 999;
            
PlayerInfo[playerid][pPbiskey] = 255;
            
PlayerInfo[playerid][pAccount] = 0;
            
PlayerInfo[playerid][pReg] = 1;
        }
        
ClearChatbox(playerid8);
     
format(string2sizeof(string2), "Bienvenido %s.",playernamesplit[0]);
     
SendClientMessage(playeridCOLOR_YELLOWstring2);
    
printf("%s ha logueado.",playername2);
    
// Reset the FirstSpawn variable
    
SetTimerEx("UnsetFirstSpawn"5000false"i"playerid);
    
// Set pCrashed variable
    //SetTimerEx("SetCrashed", 5000, false, "i", playerid);
    
SetSpawnInfo(playeridPlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
 if(
gTeam[playerid] == 0)
    {
        
gTeam[playerid] = 3;
    }
    else
    {
        
gTeam[playerid] = PlayerInfo[playerid][pTeam];
    }
    
gPlayerLogged[playerid] = 1;
    
SpawnPlayer(playerid);
    
    
//if(PlayerInfo[playerid][pCrashed] == 0)
    
DateProp(playerid);
    
GameTextForPlayer(playeridtmp220003);
    
//SendClientMessage(playerid, COLOR_YELLOW, motd);
    
if(PlayerInfo[playerid][pFMember] < 255)
    {
        
format(tmp2sizeof(tmp2), "Familia: %s."FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
        
SendClientMessage(playeridCOLOR_YELLOWtmp2);
    }
    for(new 
0MAX_PLAYERSi++)
    {
           if(
IsPlayerConnected(i))
           {
               if(
PlayerInfo[i][pMaskuse] == 1)
               {
                   
ShowPlayerNameTagForPlayer(playeridi0);
               }
            }
        }
    }
    return 
1;

Ahн estб, yo no le veo nada raro.
Reply
#5

Ўayъda, nadie sabe!?
Reply
#6

Podes mostrarnos el codigo de "OnPlayerSpawn"/"OnPlayerConnect" (Donde el jugador sea forzado a loguearse). Creo que 'OnPlayerLogin' esta tardando demasiado debido al sistema de archivos que utilizas y la cantidad de keys que lee pero no puedo asegurarlo todabia.
Reply
#7

PHP код:
public OnPlayerConnect(playerid)
{
TextDrawHideForPlayer(playeridAutos[playerid]);
Create3DTextLabel("Guнa de Turismo",BLUE,1479.7161,-1718.7177,14.0469,100.0,0);
    
gActivePlayers[playerid]++;
    
numplayers++;MensajeMuriendo[playerid]=0EnBus[playerid] = 0;  PasajeroBus[playerid] = 0;
    new 
string[64];IntentarTimmer[playerid] = 0ZundireD[playerid] = 0;
    
pveh2[playerid] = GetVehicleModel(GetPlayerVehicleID(playerid)); pveh2[playerid] = 0;
    
SelectChar[playerid] = 0HidePM[playerid] = 0PhoneOnline[playerid] = 0;
    
SelectCharID[playerid] = 0SelectCharPlace[playerid] = 0ChosenSkin[playerid] = 0;
    
GettingJob[playerid] = 0GuardOffer[playerid] = 999GuardPrice[playerid] = 0;
    
ApprovedLawyer[playerid] = 0CallLawyer[playerid] = 0WantLawyer[playerid] = 0;
    
KickPlayer[playerid] = 0CurrentMoney[playerid] = 0UsedFind[playerid] = 0;
    
CP[playerid] = 0Robbed[playerid] = 0SpawnChange[playerid] = 1;
    
CarOffer[playerid] = 999CarPrice[playerid] = 0CarID[playerid] = 0CarCalls[playerid] = 0;
    
RobbedTime[playerid] = 0MoneyMessage[playerid] = 0Condom[playerid] = 0Rope[playerid] = 0;
    
STDPlayer[playerid] = 0SexOffer[playerid] = 999SexPrice[playerid] = 0;
    
RepairOffer[playerid] = 999RepairPrice[playerid] = 0RepairCar[playerid] = 0;
    
AdminDuty[playerid] = 0;
    
PlayerInfo[playerid][pFStyle] = 4;
    
TalkingLive[playerid] = 255LiveOffer[playerid] = 999TakingLesson[playerid] = 0;
    
RefillOffer[playerid] = 999RefillPrice[playerid] = 0MapIconsShown[playerid] = 0;
    
DrugOffer[playerid] = 999PlayerCuffed[playerid] = 0PlayerCuffedTime[playerid] = 0;
    
DrugPrice[playerid] = 0RegistrationStep[playerid] = 0OnCK[playerid] = 999GettingCK[playerid] = 999;
    
DrugGram[playerid] = 0ConnectedToPC[playerid] = 0OrderReady[playerid] = 0;
    
JailPrice[playerid] = 0MedicTime[playerid] = 0NeedMedicTime[playerid] = 0MedicBill[playerid] = 0GotHit[playerid] = 0;
    
WantedPoints[playerid] = 0GoChase[playerid] = 999GetChased[playerid] = 999PlacedNews[playerid] = 0;
    
OnDuty[playerid] = 0WantedLevel[playerid] = 0tactical[playerid] = 0swat[playerid] = 0TestFishes[playerid] = 0Cuchilla[playerid] = 0Soga[playerid] = 0;
    
BoxWaitTime[playerid] = 0SchoolSpawn[playerid] = 0ChangePos2[playerid][1] = 0Alambre[playerid] = 0// Item Ladron
    
SafeTime[playerid] = 60TransportDuty[playerid] = 0PlayerTied[playerid] = 0PlayerFull[playerid] = 0;
    
BusCallTime[playerid] = 0TaxiCallTime[playerid] = 0MedicCallTime[playerid] = 0MechanicCallTime[playerid] = 0;
    
BusrouteEast[playerid][0] = 0BusrouteWest[playerid][0] = 0BusShowLocation[playerid][0] = 0BusShowLocationC[playerid] = 0;
    
FindTimePoints[playerid] = 0FindTime[playerid] = 0JobDuty[playerid] = 0;
    
Mobile[playerid] = 255/*Music[playerid] = 0;*/ BoxOffer[playerid] = 999PlayerBoxing[playerid] = 0;
    
Spectate[playerid] = 255PlayerDrunk[playerid] = 0PlayerDrunkTime[playerid] = 0;
    
Unspec[playerid][sLocal] = 255FishCount[playerid] = 0;
    
WritingPaper[playerid] = 0WritingPaperNumber[playerid] = 999WritingLine[playerid] = 0BringingPaper[playerid] = 0GotPaper[playerid] = 0;
    
PaperOffer[playerid] = 999/*ConsumingMoney[playerid] = 0;*/
    
ScriptMoney[playerid] = 0ScriptMoneyUpdated[playerid] = 0;
    for (new 
c=0c<13c++) ScriptWeapons[playerid][c] = 0;
    
ScriptWeaponsUpdated[playerid] = 0;
    
gLastCar[playerid] = 0FirstSpawn[playerid] = 1;
    
gOoc[playerid] = 0gNews[playerid] = 0BigEar[playerid] = 0gDice[playerid] = 0gFam[playerid] = 0;
    
gSpeedo[playerid] = 0gGas[playerid] = 0;
    
gPlayerLogged[playerid] = 0gPlayerLogTries[playerid] = 0VecesIntentar[playerid] = 0gPlayerAccount[playerid] = 0;
    
gPlayerSpawned[playerid] = 0PlayerKarting[playerid] = 0PlayerInKart[playerid] = 0;
    
PlayerTazeTime[playerid] = 0PlayerStoned[playerid] = 0;
    
StartTime[playerid] = 0TicketOffer[playerid] = 999TicketMoney[playerid] = 0;
    
MatsHolding[playerid] = 0TutTime[playerid] = 0;
    
gPlayerMission[playerid] = 0TaxiAccepted[playerid] = 999BusAccepted[playerid] = 999;
    
PlayerInfo[playerid][pCash] = dollahNoFuel[playerid] = 0;
    
HireCar[playerid] = 299GangCar[playerid] = 512PlayersChannel[playerid] = 999;
    
TransportValue[playerid] = 0TransportMoney[playerid] = 0TransportTime[playerid] = 0TransportCost[playerid] = 0TransportDriver[playerid] = 999;
    
Locator[playerid] = 0PlayerOnMission[playerid] = 0MissionCheckpoint[playerid] = 0;
    
WatchingTV[playerid] = 0PlayerPaintballing[playerid] = 0PlayerPaintballKills[playerid] = 0;
    
Fishes[playerid][pLastFish] = 0Fishes[playerid][pFishID] = 0;
    
ProposeOffer[playerid] = 999MarryWitness[playerid] = 999MarryWitnessOffer[playerid] = 999MarriageCeremoney[playerid] = 0ProposedTo[playerid] = 999GotProposedBy[playerid] = 999DivorceOffer[playerid] = 999;
    
Z_GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); tactical[playerid] = 0swat[playerid] = 0authorizeswat 0authorizetactical 0;
    
PizzaCallTime[playerid] = 0bPizza[playerid] = 0sPizza[playerid] = 0gEngine[playerid] = 0FarmerVar[playerid] = 0FarmerPickup[playerid][0] = 0SmugglerWork[playerid] = 0SmuggledDrugs[playerid] = 0JustDied[playerid] = 0KnockedDown[playerid] = 0UnidentifedCall[playerid] = 0;
    
LicenseOffer[playerid] = 999LicensePrice[playerid] = 0LicenseType[playerid] = 0UsingDrugs[playerid] = 0AfterTutorial[playerid] = 0;
    
OwnableCarOffer[playerid] = 999OwnableCarID[playerid] = 0OwnableCarPrice[playerid] = 0BlindFold[playerid] = 0PlayerIsSweeping[playerid] = 0PlayerIsGarbageing[playerid] = 0AdminDuty[playerid] = 0JustReported[playerid] = 0PlayerNeedsHelp[playerid] = 0AdminSpec[playerid] = 0IsSmoking[playerid] = 0UsingSmokeAnim[playerid] = 0ReduceTime[playerid] = 0;
    
CreatingGun[playerid] = 0CreatingGunAmmo[playerid] = 0CreatingGunPrice[playerid] = 0IsPuttingMaterials[playerid] = 0IsTakingGun[playerid] = 0;
    
InAFoodPlace[playerid] = 0;
    
MandoDuda[playerid] = 0;
    
PlayerInfo[playerid][pLevel] = 0;
    
PlayerInfo[playerid][pAdmin] = 0;
    
PlayerInfo[playerid][pKamikaze] = 0;
    
PlayerInfo[playerid][pBomba] = 0;
    
PlayerInfo[playerid][pPremium] = 0;
    
PlayerInfo[playerid][gPupgrade] = 0;
    
PlayerInfo[playerid][pConnectTime] = 0;
    
PlayerInfo[playerid][pReg] = 0;
    
NewbieTimer[playerid] = 0;
    
PlayerInfo[playerid][pSex] = 0;
    
PlayerInfo[playerid][pAge] = 0;
    
PlayerInfo[playerid][pOrigin] = 0;
 
PlayerInfo[playerid][pOrigin2] = 0;
    
PlayerInfo[playerid][pLlegada] = 0;
    
PlayerInfo[playerid][pExp] = 0;
    
PlayerInfo[playerid][pAccount] = 0;
    
PlayerInfo[playerid][pCrimes] = 0;
    
PlayerInfo[playerid][pDeaths] = 0;
    
PlayerInfo[playerid][pArrested] = 0;
    
PlayerInfo[playerid][pWantedDeaths] = 0;
    
PlayerInfo[playerid][pPhoneBook] = 0;
    
PlayerInfo[playerid][pLottoNr] = 0;
    
PlayerInfo[playerid][pFishes] = 0;
    
PlayerInfo[playerid][pBiggestFish] = 0;
    
PlayerInfo[playerid][pJob] = 0;
    
PlayerInfo[playerid][pPayCheck] = 0;
    
PlayerInfo[playerid][pHeadValue] = 0;
    
PlayerInfo[playerid][pJailed] = 0;
    
PlayerInfo[playerid][pJailTime] = 0;
    
PlayerInfo[playerid][pMats] = 0;
    
PlayerInfo[playerid][pDrugs] = 0;
    
PlayerInfo[playerid][pLeader] = 0;
    
PlayerInfo[playerid][pMember] = 0;
    
PlayerInfo[playerid][pFMember] = 255;
    
PlayerInfo[playerid][pRank] = 0;
    
PlayerInfo[playerid][pChar] = 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][pJackSkill] = 0;
    
PlayerInfo[playerid][pCarSkill] = 0;
    
PlayerInfo[playerid][pNewsSkill] = 0;
    
PlayerInfo[playerid][pDrugsSkill] = 0;
    
PlayerInfo[playerid][pCookSkill] = 0;
    
PlayerInfo[playerid][pFishSkill] = 0;
    
PlayerInfo[playerid][pSHealth] = 0.0;
    
PlayerInfo[playerid][pHealth] = 50.0;
 
PlayerInfo[playerid][pPos_x] = 1612.3240;
    
PlayerInfo[playerid][pPos_y] = -2330.1670;
    
PlayerInfo[playerid][pPos_z] = 13.5469;
    
PlayerInfo[playerid][pInt] = 0;
    
PlayerInfo[playerid][pLocal] = 255;
    
PlayerInfo[playerid][pTeam] = 3;
    
PlayerInfo[playerid][pModel] = 7;
    new 
randphone 100000 random(899999);//minimum 1000  max 9999 //giving one at the start
    
PlayerInfo[playerid][pPnumber] = randphone;
    
PlayerInfo[playerid][pPcarkey] = 999;
    
PlayerInfo[playerid][pPcarkey2] = 999;
    
PlayerInfo[playerid][pPcarkey3] = 999;
    
PlayerInfo[playerid][pPhousekey] = 255;
    
PlayerInfo[playerid][pGangKey] = 255;
    
PlayerInfo[playerid][pPbiskey] = 255;
    
PlayerInfo[playerid][pCarLic] = 0;
    
PlayerInfo[playerid][pFlyLic] = 0;
    
PlayerInfo[playerid][pBoatLic] = 0;
    
PlayerInfo[playerid][pFishLic] = 0;
    
PlayerInfo[playerid][pGunLic] = 0;
    
PlayerInfo[playerid][pGun1] = 0;
    
PlayerInfo[playerid][pGun2] = 0;
    
PlayerInfo[playerid][pGun3] = 0;
    
PlayerInfo[playerid][pGun4] = 0;
    
PlayerInfo[playerid][pAmmo1] = 0;
    
PlayerInfo[playerid][pAmmo2] = 0;
    
PlayerInfo[playerid][pAmmo3] = 0;
    
PlayerInfo[playerid][pAmmo4] = 0;
    
PlayerInfo[playerid][pCarTime] = 0;
    
PlayerInfo[playerid][pPayDay] = 0;
    
PlayerInfo[playerid][pPayDayHad] = 0;
    
PlayerInfo[playerid][pWatch] = 0;
    
//PlayerInfo[playerid][pCrashed] = 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][pMissionNr] = 0;
    
PlayerInfo[playerid][pWarns] = 0;
    
PlayerInfo[playerid][pFuel] = 0;
    
PlayerInfo[playerid][pVirWorld] = 0;
    
PlayerInfo[playerid][pRequestingBackup] = 0;
    
PlayerInfo[playerid][pRoadblock] = 0;
    
PlayerInfo[playerid][pFishTool] = 0;
    
strmid(PlayerInfo[playerid][pNote1], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote1s] = 0;
    
strmid(PlayerInfo[playerid][pNote2], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote2s] = 0;
    
strmid(PlayerInfo[playerid][pNote3], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote3s] = 0;
    
strmid(PlayerInfo[playerid][pNote4], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote4s] = 0;
    
strmid(PlayerInfo[playerid][pNote5], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote5s] = 0;
    
PlayerInfo[playerid][pInvWeapon] = 0;
    
PlayerInfo[playerid][pInvAmmo] = 0;
    
PlayerInfo[playerid][pLighter] = 0;
    
PlayerInfo[playerid][pCigarettes] = 0;
    
PlayerInfo[playerid][pMask] = 0;
    
PlayerInfo[playerid][pMaskuse] = 0;
    
PlayerInfo[playerid][pHideNumber] = 0;
    
PlayerInfo[playerid][pSpeaker] = 0;
    
PlayerInfo[playerid][PHospital] = 0;
    
PlayerInfo[playerid][PLSPD] = 0;
    
PlayerInfo[playerid][PCheckpoints] = 0;
    
PlayerInfo[playerid][pLocked] = 0;
    
//PlayerInfo[playerid][pSQLID] = 0;
    
ClearCrime(playerid);
    
ClearFishes(playerid);
    
ClearCooking(playerid);
    
ClearGroceries(playerid);
    
ClearMarriage(playerid);
    
SetPlayerColor(playerid,COLOR_GRAD2);
    
HouseEntered[playerid] = 255;
    {
        
SetVehicleParamsForPlayer(h,playerid,0,CarInfo[h][cLock]);
    
SetTimerEx("Loadmsg",3000,false"d"playerid);
 }
GetPlayerName(playeridplnamesizeof(plname));
    
format(stringsizeof(string), "users/%s.ini"plname);
    
SendClientMessage(playeridCOLOR_YELLOW"ЎCargando Datos!");
 if(
fexist(string))
    {
        
gPlayerAccount[playerid] = 1;
        return 
1;
    }
    else
    {
        
gPlayerAccount[playerid] = 0;
    }
    return 
1;

Reply
#8

el equipo en donde esta arrancado tu servidor es una pc o normal o es un DEDICADO? ya que yo donde suelo hacer test de mis codigos es en pc personal y por la velocidad de mi internet tarda en hacer spawn pero cuando entro al dedicado sin problemas
Diagnostico: falla en equipo o falla en ISP (servicio de internet) velocidad baja

Esa es mi teoria
Reply
#9

Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
Podes mostrarnos el codigo de "OnPlayerSpawn"/"OnPlayerConnect" (Donde el jugador sea forzado a loguearse). Creo que 'OnPlayerLogin' esta tardando demasiado debido al sistema de archivos que utilizas y la cantidad de keys que lee pero no puedo asegurarlo todabia.
IDEM, creo que es eso, mediante bucles puedes hacer la carga mas rapida.
Reply
#10

Quote:
Originally Posted by LuisGraph
Посмотреть сообщение
IDEM, creo que es eso, mediante bucles puedes hacer la carga mas rapida.
їCуmo un bucle?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)