Raised This Month: $ Target: $400
 0% 

Hook/Block grenade buy.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-28-2013 , 16:43   Re: Hook/Block grenade buy.
Reply With Quote #2

I remember in a request i made, i used client_buy forward, and procedeed in plugin the money and give item.
Also, if player has already 1 HE or 2 Flash, you can use this :

PHP Code:
GiveOnMoreNade(iditem)
{
    switch( 
item )
    {
        case 
CSW_HEGRENADE:
        {
            
ExecuteHamB(Ham_GiveAmmoid1"HEGrenade"get_pcvar_num(g_pMaxHeGren))
        }
        case 
CSW_FLASHBANG:
        {
            
ExecuteHamB(Ham_GiveAmmoid1"Flashbang"get_pcvar_num(g_pCvarMaxFlashGren))
        }
        case 
CSW_SMOKEGRENADE:
        {
            
ExecuteHamB(Ham_GiveAmmoid1"SmokeGrenade"get_pcvar_num(g_pCvarMaxSmokeGren))
        }
    }
    
emit_sound(idCHAN_ITEMPICKUP_SOUNDVOL_NORMATTN_NORM0PITCH_NORM)

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 10:54.


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