How to Disable Vehicle (Can't be Driven) [+Rep]
#1

Alright, so first of all what i'm trying to do is when the Vehicle's HP is below 240 it gets set to 250 (So that it won't blow up, and its kinda Engine Failure).

Quote:

public OnPlayerUpdate(playerid)
{
new Float:health;
new veh;
veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
if(health <240) return SetVehicleHealth(veh,250);
return 1;
}

EDIT: Disregard, Thanks anyway
Reply
#2

Might be usefull:
https://sampwiki.blast.hk/wiki/SetVehicleParamsEx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)