Quote:
Originally Posted by fxfighter
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
|
I did everything but the 3rd part because im very sleepy
and i have to do other things. And u said it might bug, so yea.
__________________