Whenever i switch the team then also the message display. please see the attached screenshot & also the my code.. Below
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Attacker Shower"
#define VERSION "1.0"
#define AUTHOR "LOL ?"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg", "event_dead", "a", "1>0")
}
public event_dead()
{
new iKiller = read_data(1)
new iVictim = read_data(2)
new iHskill = read_data(3)
new vicname[32], attackername[32];
get_user_name(iVictim, vicname, 31)
get_user_name(iKiller, attackername, 31)
new weapon[32]
read_data(4, weapon, 31)
if (iHskill)
{
client_print(0, print_chat, "%s Had Just Killed %s with (%s) Headshot", attackername, vicname, weapon)
}
else
{
client_print(iKiller, print_chat, "You Had Just Killed %s with (%s)", vicname, weapon)
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/