AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with level plz (https://forums.alliedmods.net/showthread.php?t=113228)

Zapdos1 12-24-2009 15:51

Help with level plz
 
when someone kills another person, this person just get XP and doesn't rise a level
PHP Code:

 public eDeath() 
 {
     static 
attackerattacker read_data(1)
     static 
victimvictim read_data(2)
     
g_bIsAlive[victim] = false
 
     PlayerXP
[attacker] += get_pcvar_num(XP_Kill)
     
client_print(attackerprint_chat"%s XP"get_pcvar_num(XP_Kill))
 
     while(
PlayerXP[attacker] >= LEVELS[PlayerLevel[attacker]]) 
     { 
         
client_print(attackerprint_chat"[AMXX] %L"LANG_PLAYER"LEVEL_MESSAGE"PlayerLevel[attacker]) 
         
PlayerLevel[attacker] += 
     

 } 

(sorry for the english)


All times are GMT -4. The time now is 04:07.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.