View Single Post
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 02-02-2008 , 05:51   Re: New XP Mod tutorial
Reply With Quote #8

Quote:
Originally Posted by fxfighter View Post
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] += 

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.
__________________

flyeni6 is offline
Send a message via AIM to flyeni6