Raised This Month: $ Target: $400
 0% 

Shouldn't this work for hooking the damage event?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 03-12-2004 , 13:53   Shouldn't this work for hooking the damage event?
Reply With Quote #1

Code:
#include <amxmodx> #include <amxmisc> #include <engine> new gmsgDamage public plugin_init(){     gmsgDamage = get_user_msgid("Damage")     register_message(gmsgDamage, "hookDamage") } public hookDamage(msgid){     new damage = get_msg_arg_int(2)     client_print(1,print_chat,"damage: %d",damage)     damage+=10     set_msg_arg_int(2,ARG_BYTE,damage) }

Shouldn't this add 10 to the damage? It doesn't.


edited by SniperBeamer:
changed bbcode to [ small ]
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
 



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 23:36.


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