[Ajuda] Lag no GM
#1

eu estou com um problema no meu servidor toda vez que dou respawn nos carros o servidor da rt uns 15 segundos para todos os players

codigo:
PHP код:
    if(strcmp(cmd"/respawncarros"true) == || strcmp(cmd"/rc"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pAdmin] < 1337)
            {
                
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб autorizado a usar este comando !");
                return 
1;
            }
            if(
AdminTrabalhando[playerid] < && PlayerInfo[playerid][pAdmin] != 1340 && PlayerInfo[playerid][pAdmin] != 1342 && PlayerInfo[playerid][pAdmin] != 1341)
            {
                
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб trabalhando! (/trabalhar)");
                return 
1;
            }
               
GetPlayerName(playeridplayernamesizeof(playername));
            new 
bool:unwanted[CAR_AMOUNT];
            for(new 
player=0player<MAX_PLAYERSplayer++)
             {
                if(
IsPlayerInAnyVehicle(player))
                {
                     
unwanted[GetPlayerVehicleID(player)] = true;
                }
             }
            for(new 
car 1car <= CAR_RESPAWcar++)
            {
                if(!
unwanted[car])
                {
                     
SetVehicleToRespawn(car);
                }
            }
            
format(stringsizeof(string), "[BPF]: Todos os carros foram para seus locais de inicio. By: %s."playername);
            
SendClientMessageToAll(0x80FF8096,string);
        }
        return 
1;
    } 
e quando vo ligar o servidor ele demora um pouco para ligar tambem... demora um pouco mais do que os outros gm de RPG e no /gmx ele tambem demora mais para dar o gmx

codigo:
PHP код:
    if(strcmp(cmd"/gmx"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
             if(
PlayerInfo[playerid][pAdmin] >= 1340)
            {
                if(
AdminTrabalhando[playerid] < && PlayerInfo[playerid][pAdmin] != 1340 && PlayerInfo[playerid][pAdmin] != 1341 && PlayerInfo[playerid][pAdmin] != 1342) { return SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб trabalhando! (/trabalhar)"); }
                for(new 
0MAX_PLAYERSi++)
                {
                    if(
IsPlayerConnected(i))
                    {
                       
OnPlayerSave(i);
                       
SaveCofreGov();
                       
EventoAcontecendo 0;
                       
PlayerInfo[i][pTiroteio] = 0;
                    }
                    new 
gmx[100];
                    
getdate(yearmonthday);
                    
gettime(hourminute);
                    
GetPlayerName(playeridplayernamesizeof(playername));
                    
format(gmx,sizeof(gmx),"Admin : %s Reiniciou o Servidor !"playername);
                    
SendClientMessage(iCOLOR_YELLOWgmx);
                    
StopAudioStreamForPlayer(i);
                    
KillTimer(TempoAdministrador);
                }
                
GameModeExitFunc();
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo tem autorizaзгo para usar este comando !");
            }
        }
        return 
1;
    } 
OBS: as plugins e as include estгo atualizadas
quem puder me ajudar agradeзo deis de ja
Reply


Messages In This Thread
Lag no GM - by igor97m - 24.08.2015, 03:52
Re: Lag no GM - by Wellington1999 - 24.08.2015, 04:43
Re: Lag no GM - by n0minal - 24.08.2015, 06:40
Re: Lag no GM - by PT - 24.08.2015, 12:29
Re: Lag no GM - by igor97m - 26.08.2015, 02:31

Forum Jump:


Users browsing this thread: 2 Guest(s)