View Single Post
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-12-2004 , 14:03   Re: Shouldn't this work for hooking the damage event?
Reply With Quote #2

Quote:
Originally Posted by pimp daddy
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 ]
as far as i know, this should only tell the client you got damaged +10 hp, but it doesnt do any actual damage
__________________
hello, i am pm
PM is offline