[AJUDA]Motor do veiculo parar em vez de explodir.
#8

PHP код:
forward Check();
public 
OnGameModeInit()
{
    
SetTimer("Check"500true);
    return 
1;
}
public 
Check()
{
    for(new 
0MAX_VEHICLESc++)
    {
        new 
Float:Lengine,lights,alarm,doors,bonnet,boot,objective;
        
GetVehicleHealth(cL);
        if(
<= 200//ATUALIZADO
        
{
            
SetVehicleHealth(c200);
            
GetVehicleParamsEx(c,engine,lights,alarm,doors,bonnet,boot,objective);
            
SetVehicleParamsEx(c,0,lights,alarm,doors,bonnet,boot,objective);
        }
    }
    return 
1;

#DUVIDA

Toda vez que eu for usar o "SetVehicleParamsEx" eu devo usar antes o "GetVehicleParamsEx" ?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)