03.04.2012, 21:07
I would like to: When a player is in a vehicle is health is the same of the car, Car totalled = Player
+REP! So when he crash he loses life, more Rp
+REP! So when he crash he loses life, more Rp
public OnVehicleDamageStatusUpdate(vehicleid,playerid)
{
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health-10);
return true;
}
public OnVehicleDamageStatusUpdate(vehicleid, playerid) { new Float:HP; GetVehicleHealth(vehicleid, HP); SetPlayerHealth(playerid, HP / 10); }