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


Messages In This Thread
How to Disable Vehicle (Can't be Driven) [+Rep] - by Aira - 08.01.2012, 02:43
AW: How to Disable Vehicle (Can't be Driven) [+Rep] - by BigETI - 08.01.2012, 02:50

Forum Jump:


Users browsing this thread: 3 Guest(s)