think you shuld add this to the death event so you cant get xp whit class none.
PHP Code:
if(PlayerClass[attacker] == 0)
return PLUGIN_CONTINUE
And plz remove my old mistake^^
PHP Code:
public client_connect(id)
{
// cant print he is not in yet
client_print(id, print_chat, "[AnimalMod] XP Loaded!")
}
small future i wuld like to see^^ but it might get buged on max lv.
PHP Code:
show_hudmessage(id, "Level: %i^nXP: %i/%i^nClass: %s",PlayerLevel[id],PlayerXP[id],LEVELS[PlayerLevel[id]],CLASSES[PlayerClass[id]])
if you get to much xp then you will have a bug that you lv up once instead of twice this will solve it.
PHP Code:
while(PlayerXP[attacker] >= LEVELS[PlayerLevel[attacker]])
PlayerLevel[attacker] += 1
__________________