Raised This Month: $ Target: $400
 0% 

Grenade Bonus


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 05-08-2010 , 02:00   Re: Grenade Bonus
Reply With Quote #4

Why you didn't use the original natives? If you use give_item then you must not check the backpack ammo.

PHP Code:
#define PLUGIN     "Nade Giver or something else"
#define AUTHOR     "me"
#define VERSION     "0.1"

#include <amxmodx>
#include <fun>

public plugin_init(){
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_death(iKilleriVictimiWeaponiHitplaceTK){
    if (!
TK && is_user_alive(iKiller)){
        if (
iWeapon == CSW_HEGRENADE){
            
give_item(iKiller"weapon_hegrenade")
        }
    }


Last edited by Leon M.; 05-08-2010 at 02:05.
Leon M. 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 03:45.


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