hey people, i need some help with faking a death message,
i tried it, but it always shows the "splash" like suicide instead
of the gun (garand in my case.)
so i would be really glad if someone could help me out here.
here's the code part:
Code:
public client_damage(attacker,victim,damage,wpnindex,hitplace,TA){
if(get_cvar_num("amx_ubergarand") == 1){
if((wpnindex == DODW_GARAND) && (is_user_alive(victim) == 1)){
new gunname[32]
xmod_get_wpnname(wpnindex,gunname,31)
set_user_health(victim,0)
new aKills = dod_get_user_kills(attacker)
dod_set_user_kills(attacker,(aKills += 1))
message_begin( MSG_ALL, get_user_msgid("DeathMsg"),{0,0,0},0)
write_byte(attacker)
write_byte(victim)
write_byte(0)
write_string(gunname)
message_end()
}
}
}
i already tried "xmod_get_wpnlogname" instead, but it doesn't work either.
thanks for your help!