Car engine off
#4

Quote:
Originally Posted by dani18
Посмотреть сообщение
Exactly, as Lokii says.
We will make it easier for you.
PHP код:
public OnVehicleDamageStatusUpdate(vehicleidplayerid)
{
    new 
Float:hpvehicleid GetPlayerVehicleID(playerid), enginelightsalarmdoorsbonnetbootobjective;
    
GetVehicleHealth(vehicleidhp);
    if(
hp <= 400)
    {
    
GetVehicleParamsEx(vehicleidenginelightsalarmdoorsbonnetbootobjective);
    
SetVehicleParamsEx(vehicleidVEHICLE_PARAMS_OFFlightsalarmdoorsbonnetbootobjective);
    }
    return 
1;

Also if you want to find how to configure another part of the vehicle, go to this link: https://sampwiki.blast.hk/wiki/SetVehicleParamsEx
Why you are defining a new vehicleid? it will give him error
Reply


Messages In This Thread
Car engine off - by ZigGamerx - 01.09.2018, 20:46
Re: Car engine off - by Lokii - 01.09.2018, 22:13
Re: Car engine off - by dani18 - 02.09.2018, 00:44
Re: Car engine off - by Shinja - 02.09.2018, 00:48
Re: Car engine off - by ZigGamerx - 02.09.2018, 09:42

Forum Jump:


Users browsing this thread: 1 Guest(s)