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
__________________