View Full Version : /park command

Ld Est Ld
24/11/2011, 07:13 PM
If i type incar /park the command park and fixes my car.

But I want add that, if my car health is below 90% then you can't park.

Is it possible?

Thank You! 8)

24/11/2011, 07:26 PM
Yes it is.

Post your /park code.

24/11/2011, 07:29 PM
under the park command, add;

new float:vHealth;
GetVehicleHealth(GetPlayerVehicleID(playerid), vHealth);
if(vHealth < 900) return SendClientMessage(playerid, color, "You cannot park your now.");

then continue the park command.

PS: Remember the health on vehicles are being counted in 1000. Not 100.
Nearly all cars catches on fire and blow up under 200 in HP. So instead of 90 in health, put 900. (which is 90% of 1000)