Negative number armour
#1

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
Reply
#2

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.
Reply
#3

if you can.. post this part of the script here.. cause i really didnt understand what u want.. and whats happening
Reply
#4

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.
Reply
#5

Are you using OnPlayerGive/TakeDamage to control damage?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)