Raised This Month: $ Target: $400
 0% 

Knife Reward


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Vechta
Veteran Member
Join Date: Jun 2010
Old 12-03-2010 , 08:28   Re: Knife Reward
Reply With Quote #3

PHP Code:
#include <amxmodx>

new g_kills[33]

public 
plugin_init() 
    
register_event("DeathMsg""Event_Deathmsg""a")
    
public 
Event_DeathMsg()
{
    new 
attacker read_data(1)
    
    if (
get_user_weapon(attacker) == CSW_KNIFE)
    {
        
g_kills[attacker]++
        
        if (
g_kills[attacker] == 3)
        {
            
g_kills[attacker] -= 3
            server_cmd
("molotov_give %s"attacker)
        }
    }

Maybe this work?
Vechta is offline
 



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 11:23.


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