Raised This Month: $ Target: $400
 0% 

Double Knife Frag [SEARCH]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nonocorp
Junior Member
Join Date: Jan 2015
Location: Portugal
Old 05-12-2015 , 10:12   Re: Double Knife Frag [SEARCH]
Reply With Quote #1

Quote:
Originally Posted by indraraj striker View Post
here you go :
PHP Code:

#include <amxmodx>
#include <fun>

public plugin_init() {
    
register_event("DeathMsg""knife_death""a");
}

public 
knife_death()
{
    new 
id read_data(1)
    new 
weaponid[10]
    
read_data(4weaponidcharsmax(weaponid))
    
    if(
equal(weaponid"knife"))
    {
        
set_user_frags(id,get_user_frags(id)+2)// you can edit your self now it will add 2 frag
    
}

Thanks man!
__________________
TeamSpeak 3 || Public & Free Channels


* Sry for my bad english, i am portuguese.
nonocorp is offline
Send a message via Skype™ to nonocorp
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-12-2015 , 13:24   Re: Double Knife Frag [SEARCH]
Reply With Quote #2

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

public plugin_init() 
{
    
register_event"DeathMsg" "knife_death" "a" "4=knife" );
}

public 
knife_death()
{
    
//The 2 is the extra points awarded
    
ExecuteHamHam_AddPoints read_data) , true );

__________________

Last edited by Bugsy; 05-12-2015 at 14:05.
Bugsy is offline
stekiwnl
Junior Member
Join Date: May 2022
Old 05-22-2022 , 07:18   Re: Double Knife Frag [SEARCH]
Reply With Quote #3

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

public plugin_init() 
{
    
register_event"DeathMsg" "knife_death" "a" "4=knife" );
}

public 
knife_death()
{
    
//The 2 is the extra points awarded
    
ExecuteHamHam_AddPoints read_data) , true );

How to make this plugins work with all weapons and make it for certain admin flag?
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 20:13.


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