Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[FilterScript] r_armour

$
0
0
This filterscript is GTA-V styled armour system. It replenishes your armour when it's lower than 20. It detects this from `OnPlayerGiveDamage > damagedid`.

For example,
PHP Code:

#define armourLight_PROTECTION 1 

This means your armour will only be replenished only ONCE, so in total it's 2 (one armour regularly, and one when it replenishes = 2)

There are 3 types of armour:
  • Light Armour
  • Standard Armour
  • Heavy Armour
#define armourLight_PROTECTION 1
#define armourStandard_PROTECTION 2
#define armourHeavy_PROTECTION 4




Credits:
<a_samp>
<izcmd> - originally by Zeex

Kar - Helped with an issue with bools, array

Pawn File:

Pastebin - https://pastebin.com/raw/LaQqE3RN
Hastebin - https://hastebin.com/raw/nifecosero

Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>