Raised This Month: $ Target: $400
 0% 

Fix one small xp bug


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 01-03-2010 , 10:36   Re: Fix one small xp bug
Reply With Quote #6

PHP Code:
public Ev_DeathMsg() 

    new 
g_attacker read_data(1
    new 
g_victim read_data(2

    if (
g_attacker && (g_attacker != g_victim)) 
    { 
        new 
XPGain 
        
if (PlayerLevel[g_attacker] < 1
        { 
            
XPGain get_pcvar_num(xp_per_kill
        } 

        else  
        { 
            
XPGain get_pcvar_num(xp_per_kill) * PlayerLevel[g_attacker
        } 
        
set_hudmessage(2550500.500.3312.02.0
        
show_hudmessage(g_attacker"+%i Experience For Kill!"XPGain
        
PlayerXP[g_attacker] += XPGain 
    


    if (
get_user_team(g_attacker) == 2
    { 
        
PlayerZombieDeaths[g_victim] += 
        PlayerZombieKills
[g_attacker] += 
    


    if (
get_user_team(g_attacker) == 1
    { 
        
PlayerHumanDeaths[g_victim] += 
        PlayerHumanKills
[g_attacker] += 
    

    
LevelUP(g_attacker

try this..
Empowers is offline
Send a message via ICQ to Empowers
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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