Vehicle engine damage help!
#3

this..
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:health,vid=GetPlayerVehicleID(playerid);
GetVehicleHealth(vid, health);
if(health<=300)//enter the value to be when engine of here
{
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);
}
}
return 1;
}
Reply


Messages In This Thread
Vehicle engine damage help! - by LostGaming2014 - 11.04.2014, 06:20
Re: Vehicle engine damage help! - by Flake. - 11.04.2014, 06:33
Re: Vehicle engine damage help! - by BroZeus - 11.04.2014, 06:36

Forum Jump:


Users browsing this thread: 1 Guest(s)