SA-MP Forums Archive
help and its needed - 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: help and its needed (/showthread.php?tid=597908)



help and its needed - Barnwell - 06.01.2016

Hello All

how to make this When i box player will not -hp and when he jumping will not -hp or armour?

and Paycheck timer for player for RP Server +rep who help me with this.

Thanks.


Re: help and its needed - Barnwell - 06.01.2016

Please anyone help me with -hp?


Re: help and its needed - saffierr - 06.01.2016

what is box player?


Re: help and its needed - lucamsx - 06.01.2016

https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
Check if weaponid is 0 (fist, at least i hope this is what you meant) and give the player (do it by getting actual player's health + damage taken) the amount of lost health/armour.
I think you need to check player's animation to prevent health loss from jumping.


Re: help and its needed - Joron - 07.01.2016

Do u mean godmode?


Re: help and its needed - lucamsx - 07.01.2016

Nah, i think he just wants to prevent players from losing health from these specific reasons.