Add in register_event filter "1>0" so you won't collect when killer is 0
In callback, check killer against maxplayers value
PHP Code:
new g_iMaxPlayers;
public plugin_init()
{
register_event("DeathMsg", "Event_DeathMsg", "a", "1>0");
g_iMaxPlayers = get_players();
}
public Event_DeathMsg()
{
new killer = read_data(1);
if( killer > g_iMaxPlayers )
{
return;
}
g_iKills[ killer ] ++;
}
__________________