Ok, i did, but look what's the message now:
Player x killed you with weapon
22 and he has "x" hp
Player x killed you with weapon
19 and he has "x" hp
Why not showing me weapon m4a1/ak47 or something like that and it's showing me (19,22)
PHP Code:
public event_DeathMsg()
{
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 clip, ammo, weapon = get_user_weapon(iKiller,clip,ammo)
new health = get_user_health(iKiller);
chat_color(iVictim, "!nJucatorul !t%s !nte-a ucis cu !g%d !nsi a ramas cu !g%d !nhp", name, weapon, health)
}
return PLUGIN_HANDLED;
}