PlayerHealth - 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)
+--- Thread: PlayerHealth (
/showthread.php?tid=334689)
PlayerHealth -
Gooday - 15.04.2012
I would make a SIMPLE system like: VehicleHEalth=PlayerHealth
AKA when you crash you lose some health...
Re: PlayerHealth -
ViniBorn - 15.04.2012
You can use
OnVehicleDamageStatusUpdate
Re: PlayerHealth -
DR3AD - 15.04.2012
Код:
new Float:health;
new Float:VehHealth = (GetPlayerHealth(playerid, health)) * 100;
SetVehicleHealth(vehicleid, VehHealth);
I think if you put this in under OnPlayerUpdate(playerid) it should work