Code:
#include <amxmodx>
new g_iKills[33], g_iMaxPlayers;
public plugin_init()
{
register_event("DeathMsg", "ev_Death", "a");
register_event("HLTV", "ev_newRound", "a", "1=0", "2=0");
g_iMaxPlayers = get_maxplayers();
}
public ev_Death()
{
static iAtt ; iAtt = read_data(1);
if((1 <= iAtt <= g_iMaxPlayers))
{
g_iKills[iAtt]++;
}
}
public ev_newRound()
{
for(new i = 1 ; i <= g_iMaxPlayers ; i++)
{
if(is_user_connected(i))
{
static name[32] ; get_user_name(i, name, charsmax(name));
client_print(0, print_chat, "[Kill Test] %s had %d kills this round.", name, g_iKills[i]);
g_iKills[i] = 0;
}
}
}
public client_disconnect(id)
{
g_iKills[id] = 0;
}
__________________