Raised This Month: $ Target: $400
 0% 

Event_DeathMsg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-11-2017 , 12:07   Re: Event_DeathMsg
Reply With Quote #1

Show us what you did.
__________________
HamletEagle is offline
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 03-11-2017 , 12:11   Re: Event_DeathMsg
Reply With Quote #2

Quote:
Originally Posted by HamletEagle View Post
Show us what you did.
here

PHP Code:
public Event_DeathMsg()
{
    new 
iKiller read_data(1)
    new 
iVictim read_data(2)
    new 
iWeapon read_data(4ak47charsmax(ak47)) 

    new 
szName[33]; 
    
get_user_name(iKillerszNamecharsmax(szName))
    
    if(
is_user_alive(iKiller) && get_user_team(iKiller) != get_user_team(iVictim))
    {
        
Achievement[iKiller][EXECUTION]++
        
        if(
Achievement[iKiller][EXECUTION] == AchRequirement[EXECUTION])
        {
            
ColorChat(0RED"%s ^4%s ^1Sėkmingai atrakino ^4%s ^1pasiekimą ir gavo^3 500 ^1taškų!"prefixszNameAchName[EXECUTION])
            
set_user_points(iKillerget_user_points(iKiller) + 500);
        }
        
        if(
is_user_alive(iKiller) && get_user_team(iKiller) != get_user_team(iVictim))
        {
            
Achievement[iKiller][MURDER]++
        
            if(
Achievement[iKiller][MURDER] == AchRequirement[MURDER])
            {
                
ColorChat(0RED"%s ^4%s ^1Sėkmingai atrakino ^4%s ^1pasiekimą ir gavo^3 1000 ^1taškų!"prefixszNameAchName[MURDER])
                
set_user_points(iKillerget_user_points(iKiller) + 1000);
            }
        
        }
        
        if(
get_user_health(iKiller) == 1)
        {
            
Achievement[iKiller][ONEHPHERO]++
            
            if(
Achievement[iKiller][ONEHPHERO] == AchRequirement[ONEHPHERO])
            {
                
ColorChat(0RED"%s ^4%s ^1Sėkmingai atrakino ^4%s ^1pasiekimą ir gavo^3 2000 ^1taškų!"prefixszNameAchName[ONEHPHERO])
                
set_user_points(iKillerget_user_points(iKiller) + 2000);
            }
        }
        if(
read_data(3))
        {    
            
Achievement[iKiller][AIMKEY]++
            
            if(
Achievement[iKiller][AIMKEY] == AchRequirement[AIMKEY])
            {
                
ColorChat(0RED"%s ^4%s ^1Sėkmingai atrakino ^4%s ^1pasiekimą ir gavo^3 1000 ^1taškų!"prefixszNameAchName[AIMKEY])
                
set_user_points(iKillerget_user_points(iKiller) + 1000);

            }
            if( ++
Achievement[iKiller][HATTRICK] == AchRequirement[HATTRICK] ) {
                
ColorChat(0RED"%s ^4%s ^1Sėkmingai atrakino ^4%s ^1pasiekimą ir gavo^3 700 ^1taškų!"prefixszNameAchName[HATTRICK])
                
set_user_points(iKillerget_user_points(iKiller) + 700);
            }
        }
        else {
            
Achievement[iKiller][HATTRICK] = 0;
        }
        
//GUN PASIEKIMAI
        
if(iWeapon "weapon_ak47") {
            
Achievement[iKiller][AK_DILETANTAS]++
        }
    }
    return 
PLUGIN_CONTINUE

__________________
Airkish is offline
Reply



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 17:57.


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