Simple Math Help
#3

Couldn't you just check the health of the car,
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);
Reply


Messages In This Thread
Simple Math Help - by StrickenKid - 27.03.2009, 00:30
Re: Simple Math Help - by Nubotron - 27.03.2009, 01:07
Re: Simple Math Help - by Salmon - 27.03.2009, 01:09
Re: Simple Math Help - by StrickenKid - 27.03.2009, 01:46
Re: Simple Math Help - by yezizhu - 27.03.2009, 01:54
Re: Simple Math Help - by StrickenKid - 27.03.2009, 04:03
Re: Simple Math Help - by Salmon - 27.03.2009, 10:31

Forum Jump:


Users browsing this thread: 3 Guest(s)