when someone kills another person, this person just get XP and doesn't rise a level
PHP Code:
public eDeath()
{
static attacker; attacker = read_data(1)
static victim; victim = read_data(2)
g_bIsAlive[victim] = false
PlayerXP[attacker] += get_pcvar_num(XP_Kill)
client_print(attacker, print_chat, "%s XP", get_pcvar_num(XP_Kill))
while(PlayerXP[attacker] >= LEVELS[PlayerLevel[attacker]])
{
client_print(attacker, print_chat, "[AMXX] %L", LANG_PLAYER, "LEVEL_MESSAGE", PlayerLevel[attacker])
PlayerLevel[attacker] += 1
}
}
(sorry for the english)