Raised This Month: $32 Target: $400
 8% 

[HELP] Hook Armor Event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 09-02-2016 , 10:49   [HELP] Hook Armor Event
Reply With Quote #1

Any way to hook cs_set_user_armor ? not take damage
__________________

Last edited by Depresie; 09-02-2016 at 10:49.
Depresie is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 09-02-2016 , 11:09   Re: [HELP] Hook Armor Event
Reply With Quote #2

Technically it is "Battery" event. But I guess it won't hook stuff from cs_set_user_armor.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 09-02-2016 , 14:40   Re: [HELP] Hook Armor Event
Reply With Quote #3

You can check for armor change in task every 1.0 seconds or less.

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

Last edited by KiLLeR.; 09-02-2016 at 14:41.
KiLLeR. is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 09-19-2017 , 08:12   Re: [HELP] Hook Armor Event
Reply With Quote #4

PHP Code:
register_message(get_user_msgid("Battery"), "hook_message_armor"
Works, ty

Any idea what kind of damage the armor ignores ?
__________________

Last edited by Depresie; 09-19-2017 at 08:29.
Depresie is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 09-19-2017 , 08:42   Re: [HELP] Hook Armor Event
Reply With Quote #5

Look at this.
https://forums.alliedmods.net/showpo...25&postcount=5
KiLLeR. is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:29.


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