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 , 13:23   Re: Event_DeathMsg
Reply With Quote #1

He is right.
PHP Code:
 new iWeapon read_data(4ak47charsmax(ak47)) 
Where did I tell you to do new iWeapon = read_data? Read my post again.

PHP Code:
 if(iWeapon "weapon_ak47") { 
Compare the WeaponName as georgik57 said.
__________________

Last edited by HamletEagle; 03-11-2017 at 13:23.
HamletEagle is offline
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 03-11-2017 , 14:46   Re: Event_DeathMsg
Reply With Quote #2

Quote:
Originally Posted by HamletEagle View Post
He is right.
PHP Code:
 new iWeapon read_data(4ak47charsmax(ak47)) 
Where did I tell you to do new iWeapon = read_data? Read my post again.

PHP Code:
 if(iWeapon "weapon_ak47") { 
Compare the WeaponName as georgik57 said.
So this

PHP Code:
public Event_DeathMsg()
{
    new 
iKiller read_data(1)
    new 
iVictim read_data(2)
    new 
WeaponName[32]

    
read_data(4WeaponNamecharsmax(WeaponName)) 

    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(equali(WeaponName"ak47")) {
            
Achievement[iKiller][AK_DILETANTAS]++
        }
    }
    return 
PLUGIN_CONTINUE

__________________
Airkish is offline
Old 03-11-2017, 15:32
nea
This message has been deleted by nea.
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-11-2017 , 15:36   Re: Event_DeathMsg
Reply With Quote #4

Did you not see the second page?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
EFFx
Veteran Member
Join Date: Feb 2016
Location: Săo Paulo, Brasil
Old 03-11-2017 , 16:57   Re: Event_DeathMsg
Reply With Quote #5

Dude, you're not blind. So many peoples told you what It should be. Omg, test for see If It works. It's Scripting Help not Suggestions/Requests.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 03-11-2017 at 16:57.
EFFx is offline
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 03-11-2017 , 17:06   Re: Event_DeathMsg
Reply With Quote #6

Quote:
Originally Posted by EFFx View Post
Dude, you're not blind. So many peoples told you what It should be. Omg, test for see If It works. It's Scripting Help not Suggestions/Requests.
I tested and it works.

Why I asked? because I wanted to know if it's best/right way for it to do.

why you got to be so fkin mad towards newbies...
__________________
Airkish is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Săo Paulo, Brasil
Old 03-11-2017 , 19:31   Re: Event_DeathMsg
Reply With Quote #7

I'm not mad with you and I never will be, everyone here was newbie. An AMXX Approver told you the way, just follow it.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx 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