/taser
#8

Quote:
Originally Posted by jlalt
Посмотреть сообщение
PHP код:
SetPlayerHealth(damagedid,health); 
sum damage with the health
PHP код:
SetPlayerHealth(damagedid,health amount); 
This won't be accurate, amount is made up of both health & armor and plus there are other possibilites that could effect this. One solution would be checking if the conditions for it being a taser are met within OnPlayerWeaponShot and if so, setting both players to the same team. Then set a quick timer to reset the teams within OnPlayerTakeDamage, which I think should still be called. Don't quote me on this, I might be thinking of something else.
Reply


Messages In This Thread
/taser - by pollo97 - 21.10.2017, 17:05
Re: /taser - by TheRohlikar - 21.10.2017, 17:07
Re: /taser - by pollo97 - 21.10.2017, 17:17
Re: /taser - by TheRohlikar - 21.10.2017, 17:18
Re: /taser - by pollo97 - 21.10.2017, 17:49
Re: /taser - by GoldenLion - 21.10.2017, 18:17
Re: /taser - by jlalt - 21.10.2017, 18:24
Re: /taser - by Abagail - 21.10.2017, 18:41
Re: /taser - by CodeStyle175 - 21.10.2017, 20:07
Re: /taser - by Bruno13 - 21.10.2017, 22:19

Forum Jump:


Users browsing this thread: 1 Guest(s)