SA-MP Forums Archive
SetVehicleHealth - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetVehicleHealth (/showthread.php?tid=250503)



SetVehicleHealth - dud - 23.04.2011

How to set vehicle Health more then 1000??
i want that vehicle be undestroyble

how to make this?


Re: SetVehicleHealth - Sascha - 23.04.2011

SetVehicleHealth(vehicleid, 9999);
or just use a timer to auto-repair it each millisecond ^^


Re: SetVehicleHealth - dud - 23.04.2011

i dont want to use timer


Re: SetVehicleHealth - Vince - 23.04.2011

pawn Код:
#define FLOAT_INFINITY      (Float:0x7F800000)
SetVehicleHealth(vehicleid, FLOAT_INFINITY);



Re: SetVehicleHealth - DRIFT_HUNTER - 23.04.2011

Quote:
Originally Posted by Vince
Посмотреть сообщение
pawn Код:
#define FLOAT_INFINITY      (Float:0x7F800000)
SetVehicleHealth(vehicleid, FLOAT_INFINITY);
I see someone checked WIKI


Re: SetVehicleHealth - dud - 23.04.2011

SetVehicleHealth(vehicleid, 9999);
or this
SetVehicleHealth(vehicleid, FLOAT_INFINITY);


this dont work

its still vehicle hp 1000