Negative number armour - 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: Negative number armour (
/showthread.php?tid=337123)
Negative number armour -
peterory - 25.04.2012
i shoot a player and will set he hp - 20 but if the armour is 99 then will get a negative number
and the system will auto set he's armour to 255
how to let the player armour < 0 then set it to 0
Re: Negative number armour -
SuperViper - 25.04.2012
Every time you set the player's armor, check if it's below 0 and if it is then set it to 0 or you can hook SetPlayerArmour and implement the check there.
Re: Negative number armour -
spd_sahil - 25.04.2012
if you can.. post this part of the script here.. cause i really didnt understand what u want.. and whats happening
Re: Negative number armour -
Ballu Miaa - 25.04.2012
Quote:
Originally Posted by spd_sahil
if you can.. post this part of the script here.. cause i really didnt understand what u want.. and whats happening
|
Exactly Sahil bhai. We can help you mate. But we need to understand you better.
Re: Negative number armour -
MP2 - 25.04.2012
Are you using OnPlayerGive/TakeDamage to control damage?