PHP Code:
public Ev_DeathMsg()
{
new g_attacker = read_data(1)
new g_victim = read_data(2)
if (g_attacker && (g_attacker != g_victim))
{
new XPGain
if (PlayerLevel[g_attacker] < 1)
{
XPGain = get_pcvar_num(xp_per_kill)
}
else
{
XPGain = get_pcvar_num(xp_per_kill) * PlayerLevel[g_attacker]
}
set_hudmessage(255, 0, 50, 0.50, 0.33, 1, 2.0, 2.0)
show_hudmessage(g_attacker, "+%i Experience For Kill!", XPGain)
PlayerXP[g_attacker] += XPGain
}
if (get_user_team(g_attacker) == 2)
{
PlayerZombieDeaths[g_victim] += 1
PlayerZombieKills[g_attacker] += 1
}
if (get_user_team(g_attacker) == 1)
{
PlayerHumanDeaths[g_victim] += 1
PlayerHumanKills[g_attacker] += 1
}
LevelUP(g_attacker)
}
try this..