08.01.2012, 02:43
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).
EDIT: Disregard, Thanks anyway
Quote:
public OnPlayerUpdate(playerid) { new Float:health; new veh; veh = GetPlayerVehicleID(playerid); GetVehicleHealth(veh, health); if(health <240) return SetVehicleHealth(veh,250); return 1; } |