11.09.2013, 19:49
pawn Код:
new engine, lights, alarm, doors, bonnet, boot, objective;
new Float:health;
new vehicle = GetPlayerVehicleID(playerid)
GetVehicleHealth(vehicle, health);
if(health < 250)
{
SetVehicleHealth(vehicle, 251)
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, 0, lights, alarm, doors, bonnet, boot, objective);
}
if(health = 251)
{
GameTextForPlayer(playerid, "~r~Totalled", 10000, 3);
}