Raised This Month: $ Target: $400
 0% 

He limit


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-16-2017 , 08:23   Re: He limit
Reply With Quote #2

You must have client_buy.amxx activated https://forums.alliedmods.net/showthread.php?t=149380
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <cl_buy>

public plugin_init() 
register_plugin("Block HE Buy""1.0""DoNii");

public 
client_buy(idiItem)
{
    if( 
iItem == CSW_HEGRENADE && cs_get_user_bpammo(idCSW_HEGRENADE) > )
    {
        
        
client_print(idprint_chat"You Can't Buy More HE Grenades");
        return 
PLUGIN_HANDLED;
    }
    
    return 
PLUGIN_CONTINUE;

__________________

Last edited by edon1337; 02-16-2017 at 08:24.
edon1337 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 21:03.


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