When I do do_deathmsg with szWeaponLong = "weapon_hegrenade" instead of bomb icon for deathmsg I get skull icon...
Error log is empty :
EDIT: Rest of the code
I want to do custom deathmsg with normal icon
Code:
if(equali(szWeapon, "grenade"))
szWeaponLong = "weapon_grenade"
else
formatex(szWeaponLong, 31, "weapon_%s", szWeapon)
new args[4]
args[0] = iVictim
args[1] = iKiller
args[2] = iHS
args[3] = get_weaponid(szWeaponLong)
set_task(0.1, "player_diePost", 0, args, 4)
Code:
public player_diePost(arg[])
{
new szWeapon[24]
new iKiller = arg[1]
get_weaponname(arg[3], szWeapon, 23)
replace(szWeapon, 23, "weapon_", "")
do_deathmsg(iKiller, arg[0], arg[2], szWeapon)
set_msg_block(msgID_sayText, BLOCK_ONCE)
set_user_info(iKiller, "name", g_szName[iKiller])
return PLUGIN_CONTINUE
}