20.05.2012, 18:55
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.
How can i fix this?
Thanks Admigo
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)));
Thanks Admigo