Raised This Month: $ Target: $400
 0% 

Achievements Stop Counting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 08-19-2012 , 05:16   Re: Achievements Stop Counting
Reply With Quote #2

PHP Code:
public Event_DeathMsg()
{
    new 
iKiller read_data(1)
    new 
iVictim read_data(2)
    
    new 
weapon_name[24]
    
    
get_user_name(iKillerszName32)
    
    if(
is_user_alive(iKiller) && get_user_team(iKiller) != get_user_team(iVictim))
    {
        if(
Achievement[iKiller][MURDER] == AchRequirement[MURDER])
        {
            
TotalAchievements[iKiller]++
            
emit_sound(iKillerCHAN_STATICgSoundAch1.0ATTN_NORM0PITCH_NORM);
            
ColorChat(0GREY"%s^4 %s^3 successfully unlocked the achievement^4 %s^3 and earned ^4%i $."prefixszNameAchName[MURDER], AchPoints[MURDER])
            
jbcash_add_user_cash(iKillerjbcash_get_user_cash(iKiller) + AchPoints[MURDER])    
            
            
SaveData(iKiller)
        } else {
            
Achievement[iKiller][MURDER]++
        }
    }
    return 
PLUGIN_CONTINUE

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
 



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 05:50.


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