SA-MP Forums Archive
plz help for Negative healt - 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: plz help for Negative healt (/showthread.php?tid=475471)



plz help for Negative healt - br155 - 13.11.2013

plz help for Negative healt script down bug
Quote:

SetPlayerHealth(playerid,-20);




Re: plz help for Negative healt - Chasm - 13.11.2013

I can't really understand what you want. You can't have negative health. Please explain more.


Re: plz help for Negative healt - br155 - 13.11.2013

i need script for Negative health


Re: plz help for Negative healt - zT KiNgKoNg - 13.11.2013

You CANNOT have negative health.


Re: plz help for Negative healt - Konstantinos - 13.11.2013

Negative health automatically kills the player. What you want (I believe) is to get -20 from the current health of the player. If so:
pawn Код:
new
    Float: amount
;
GetPlayerHealth( playerid, amount );
SetPlayerHealth( playerid, amount - 20 );



Re: plz help for Negative healt - br155 - 13.11.2013

mr Konstantinos tanx and tanx all