Help vehicle health
#1

Help me :confuso::confuso::confuso::confuso::confuso:

What to do to not flood the message when the vehicle reaches 280 health



PHP код:
if(IsPlayerInAnyVehicle(playerid))
    {
    new 
Float:Vehicleid GetPlayerVehicleID(playerid);
        
GetVehicleHealth(idVehicle);
        if(
Vehicle <= 280.0 
        {
            
            
SetVehicleHealth(id280.0);
              new 
enginelightsalarmdoorsbonnetbootobjective;
              new 
vid GetPlayerVehicleID(playerid);
            
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
            if(
engineSetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective); // engine off
            
            
            
SendClientMessage(playerid, -1," Text flood ? :(");
            
        }
        
    
    } 
Reply


Messages In This Thread
Help vehicle health - by Alucynious - 16.04.2017, 20:10
Re: Help vehicle health - by Vince - 16.04.2017, 20:27
Re: Help vehicle health - by Alucynious - 16.04.2017, 20:47
Re: Help vehicle health - by DarkSkull - 16.04.2017, 20:54
Re: Help vehicle health - by Vince - 16.04.2017, 20:58
Re: Help vehicle health - by Alucynious - 16.04.2017, 21:05
Re: Help vehicle health - by DarkSkull - 16.04.2017, 21:07
Re: Help vehicle health - by Alucynious - 17.04.2017, 00:21
Re: Help vehicle health - by DarkSkull - 17.04.2017, 00:23

Forum Jump:


Users browsing this thread: 1 Guest(s)