What i have to change in this
Code:
public eventDeathMsg()
{
new iKiller = read_data(1);
if (iKiller == read_data(2))
{
g_iKills[iKiller] = 0;
return;
}
g_iKills[iKiller] += 1;
for (new i = 0; i < sizeof(g_szSnds); i++)
{
if (g_bMultiKill[iKiller] && g_iKills[iKiller] == g_iLvls[i])
{
new name[32];
get_user_name(iKiller, name, 31);
client_cmd(iKiller, "spk %s", g_szSnds[i]);
client_print(iKiller, print_chat, "%s %s", name, g_szMsgs[i]);
}
}
g_bMultiKill[iKiller] = true;
set_task(KILL_TIME, "taskEndMultiKills", iKiller);
}
to show the message i want to all the players and they to hear the sound too because when someone do double kill or triple kill only he hears the sound and he can see the message Player made DOUBLE KILL !
Here is the plugin