[AJUDA] OnPlayerEnterVehicle causando lag
#2

Timers em loop ? obvio que vai dar lag...
PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    new 
newcar GetPlayerVehicleID(playerid);
    if(
Avioes(newcar))
    {
        
SetTimer("DarPontos"100001);
        
TimerAtivado[playerid] = 1;
    }
    if(
BaggageCar(newcar))
    {
        
SendClientMessage(playeridCOLOR_GREEN"Para consertar um Aviгo digite: /reparar [id]");
        
SendClientMessage(playeridCOLOR_GREEN"Para soltar o Trailer digite: /detach");
    }
    
VelocidadeB SetTimer("Barras"1501);
    
TimerG SetTimer("GasolinA"300001);
    
TextDrawShowForPlayer(playeridText:VelocidadeText);
    
ShowProgressBarForPlayer(playeridVelocidade[playerid]);
    
TextDrawShowForPlayer(playeridText:Gaso1);
    
TextDrawShowForPlayer(playeridText:Gaso2);
    
TextDrawShowForPlayer(playeridText:Altitude);
    
TextDrawShowForPlayer(playeridText:Altitude2);
    return 
1;

Reply


Messages In This Thread
[AJUDA] OnPlayerEnterVehicle causando lag - by GuikBretas - 14.07.2011, 00:27
Re: [AJUDA] OnPlayerEnterVehicle causando lag - by RockFire - 14.07.2011, 00:37
Re: [AJUDA] OnPlayerEnterVehicle causando lag - by Transferencia - 14.07.2011, 00:37
Re: [AJUDA] OnPlayerEnterVehicle causando lag - by RockFire - 14.07.2011, 00:39
Re: [AJUDA] OnPlayerEnterVehicle causando lag - by GuikBretas - 14.07.2011, 11:50

Forum Jump:


Users browsing this thread: 1 Guest(s)