Car health - 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: Car health (
/showthread.php?tid=218574)
Car health -
ZaaRawwR - 30.01.2011
How do I make it so that when a player enters a vehicle, the car's hp is set to 1500? What callback, etc.
Re: Car health -
ricardo178 - 30.01.2011
Mybe;
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SetVehicleHealth(vehicleid, 1500.0);
return 1;
}
Not Sure and not tested!
Re: Car health -
ZaaRawwR - 30.01.2011
Worked
I could of sworn that I tried that -_-
Re: Car health -
ricardo178 - 30.01.2011
I am happy of help XD!