Raised This Month: $32 Target: $400
 8% 

Double Knife Frag [SEARCH]


Post New Thread Reply   
 
Thread Tools Display Modes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-26-2022 , 12:30   Re: Double Knife Frag [SEARCH]
Reply With Quote #11

Might want to add a "1>0" condition and maybe a read_data(1) != read_data(2) check.
__________________

Last edited by Bugsy; 06-26-2022 at 12:31.
Bugsy is offline
stekiwnl
Junior Member
Join Date: May 2022
Old 06-26-2022 , 14:17   Re: Double Knife Frag [SEARCH]
Reply With Quote #12

Quote:
Originally Posted by Bugsy View Post
Might want to add a "1>0" condition and maybe a read_data(1) != read_data(2) check.
Please put this in the code that TribalBlood made, I don't have any knowledge of amxx scripting, I will pay if necessary
stekiwnl is offline
stekiwnl
Junior Member
Join Date: May 2022
Old 06-26-2022 , 14:22   Re: Double Knife Frag [SEARCH]
Reply With Quote #13

Quote:
Originally Posted by Bugsy View Post
Might want to add a "1>0" condition and maybe a read_data(1) != read_data(2) check.
I tried this but I told you im noob at this

Code:
#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

public plugin_init()
{
    register_event( "DeathMsg" , "Kill" , "a" );
}

public Kill()
{
    new Attacker = read_data(1);

    if(!zp_get_user_zombie(Attacker) && get_user_flags(Attacker) & ADMIN_LEVEL_H)
    {
        ExecuteHam( Ham_AddPoints , read_data( 1 ) , 2 , true );
    }
}
stekiwnl is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-26-2022 , 23:04   Re: Double Knife Frag [SEARCH]
Reply With Quote #14

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

public plugin_init()
{
    
register_event"DeathMsg" "Kill" "a" "1>0" );
}

public 
Kill()
{
    new 
Attacker read_data);
    
    if ( ( 
Attacker != read_data) ) && !zp_get_user_zombieAttacker ) && ( get_user_flagsAttacker ) & ADMIN_LEVEL_H ) )
    {
        
ExecuteHamHam_AddPoints Attacker 10 true );
    }

__________________
Bugsy is offline
stekiwnl
Junior Member
Join Date: May 2022
Old 06-27-2022 , 09:27   Re: Double Knife Frag [SEARCH]
Reply With Quote #15

Quote:
Originally Posted by Bugsy View Post
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

public plugin_init()
{
    
register_event"DeathMsg" "Kill" "a" "1>0" );
}

public 
Kill()
{
    new 
Attacker read_data);
    
    if ( ( 
Attacker != read_data) ) && !zp_get_user_zombieAttacker ) && ( get_user_flagsAttacker ) & ADMIN_LEVEL_H ) )
    {
        
ExecuteHamHam_AddPoints Attacker 10 true );
    }

Thank you for updating the code, have a great day
stekiwnl 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 14:28.


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