View Single Post
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 02-02-2008 , 05:10   Re: New XP Mod tutorial
Reply With Quote #7

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(idprint_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] += 
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 02-02-2008 at 05:48.
fxfighter is offline
Send a message via MSN to fxfighter