AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Hook Armor Event (https://forums.alliedmods.net/showthread.php?t=287172)

Depresie 09-02-2016 10:49

[HELP] Hook Armor Event
 
Any way to hook cs_set_user_armor ? not take damage

NiHiLaNTh 09-02-2016 11:09

Re: [HELP] Hook Armor Event
 
Technically it is "Battery" event. But I guess it won't hook stuff from cs_set_user_armor.

KiLLeR. 09-02-2016 14:40

Re: [HELP] Hook Armor Event
 
You can check for armor change in task every 1.0 seconds or less.

P.S. It seems this is not the best way.

Depresie 09-19-2017 08:12

Re: [HELP] Hook Armor Event
 
PHP Code:

register_message(get_user_msgid("Battery"), "hook_message_armor"

Works, ty

Any idea what kind of damage the armor ignores ?

KiLLeR. 09-19-2017 08:42

Re: [HELP] Hook Armor Event
 
Look at this.
https://forums.alliedmods.net/showpo...25&postcount=5


All times are GMT -4. The time now is 13:20.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.