Thanks!
But look what server print in my chat:
[IMG]http://s28.************/5caqodp5p/img.png[/IMG]
PHP Code:
public event_DeathMsg(id)
{
new iKiller = read_data(1)
new iVictim = read_data(2)
if(iKiller == iVictim)
{
return PLUGIN_HANDLED;
}
else
{
new name[32];
get_user_name(iKiller, name, 31)
new szWeapon[ 32 ], iWeapon = get_user_weapon( iKiller );
get_weaponname( iWeapon, szWeapon, charsmax( szWeapon ) );
new health = get_user_health(iKiller);
chat_color(iVictim, "!nKilled by !t%s !nwith !g%d !nand remained with !g%d !nhp", name, szWeapon, health)
}
return PLUGIN_HANDLED;
}
As i said i need to print weapon name not weapon string ...