Not sure what you mean, like this?:
Code:
#include <amxmodx>
#include <amxmisc>
new xp[33];
public plugin_init()
{
register_plugin("spam","hat","pants");
register_cvar("amx_xp_per_kill","30");
register_event("DeathMsg","CheckDeath","a");
}
public CheckDeath()
{
new atk = read_data(1), vic = read_data(2);
if(!atk)
{
return;
}
xp[atk] += get_cvar_num("amx_xp_per_kill");
return;
}
public client_disconnect(id)
{
xp[id] = 0;
}
__________________