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

CSDM He nade per kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
botz
AlliedModders Donor
Join Date: Jan 2015
Old 12-26-2015 , 04:38   CSDM He nade per kill
Reply With Quote #1

I need a plugin in which when you get a kill you get a nade, but i need it for CSDM, so what i need is that once you get a nade 1 time, you shouldnt get it again till you die, when you revive again after being dead than you should get a nade again when you get a kill, then you dont get a nade until u revive till next time

Please let me know if your confused about what i said

Thanks for helping me for this plugins
__________________
botz is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-26-2015 , 15:28   Re: CSDM He nade per kill
Reply With Quote #2

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

new bool:g_nadeMAX_PLAYERS ]

public 
plugin_init() 

    
register_plugin"CSDM NADES""0.1""botz" 

    
register_event"DeathMsg""death_event""a""1>0" )


public 
client_connectid )
{
    
g_nadeid ] = false
}

public 
death_event( )
{
    new 
iKiller read_data)
    new 
iVictim read_data)
    
    if( 
is_user_aliveiKiller ) && !user_has_weaponiKillerCSW_HEGRENADE ) && !g_nadeiKiller ] )
    {
        
give_itemiKiller"weapon_hegrenade" )
        
g_nadeiKiller ] = true
    

    
    
g_nadeiVictim ] = false

__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Reply


Thread Tools
Display Modes

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:33.


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