Sell Vehicle with less money on damage?
#1

Heey all,

I used a part of a script for sell vehicles for lees money if they are damaged.
But its not working because i sell the vehicle for the full price while my vehicle is damaged.
Код:
new Float:VHealth;
GetVehicleHealth(vehicleid,VHealth);
print("d");
GivePlayerMoney(playerid,floatround(VehicleInfo[modelid-400][VehiclePrice]*(VHealth/1000)));
print("e");
format(str,sizeof(str),"* You sold %s for $%d *",VehicleInfo[modelid-400][VehicleName],floatround(VehicleInfo[modelid-400][VehiclePrice]*(VHealth/1000)));
How can i fix this?

Thanks Admigo
Reply
#2

Fixed! Thread Closed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)