27.03.2009, 01:09
Couldn't you just check the health of the car,
Didn't test it but something like
Didn't test it but something like
Код:
new intial; new payout; intial = '50000'; new Float:health; new veh; new string[32]; veh = GetPlayerVehicleID(playerid); GetVehicleHealth(veh, health); payout = 'health / 100'; payout = 'payout * intial'; GivePlayerMoney(playerid, payout); format(string, sizeof(string), "You have gained %d for your car.", payout); SendClientMessage(playerid, 0xFFFFFFAA, string);