Raised This Month: $ Target: $400
 0% 

He limit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Administrator
Member
Join Date: Jun 2014
Old 02-16-2017 , 06:09   He limit
Reply With Quote #1

Good afternoon.
Please tell me how to make the purchase of 2 he grenade?
Administrator is offline
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
Administrator
Member
Join Date: Jun 2014
Old 02-16-2017 , 08:29   Re: He limit
Reply With Quote #3

Quote:
Originally Posted by edon1337 View Post
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;

Without client_buy.amxx can not do?
Administrator is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-16-2017 , 08:41   Re: He limit
Reply With Quote #4

no
__________________
edon1337 is offline
Administrator
Member
Join Date: Jun 2014
Old 02-16-2017 , 08:58   Re: He limit
Reply With Quote #5

does not work
Administrator is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-16-2017 , 09:00   Re: He limit
Reply With Quote #6

I don't see how that would work.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Administrator
Member
Join Date: Jun 2014
Old 02-16-2017 , 09:04   Re: He limit
Reply With Quote #7

Quote:
Originally Posted by edon1337 View Post
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;

Buy first, I want to buy a second, but it says that I can not.
Message writes not of the plugin.
Administrator is offline
Administrator
Member
Join Date: Jun 2014
Old 02-16-2017 , 09:09   Re: He limit
Reply With Quote #8

Maybe you can catch a message that you can not buy more, give the player a 2 he, subtract money and add a check whether the player has 2 he?
Administrator is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-16-2017 , 09:56   Re: He limit
Reply With Quote #9

Quote:
Originally Posted by OciXCrom View Post
I don't see how that would work.
huh
__________________
edon1337 is offline
Administrator
Member
Join Date: Jun 2014
Old 02-16-2017 , 10:41   Re: He limit
Reply With Quote #10

Quote:
Originally Posted by Administrator View Post
Maybe you can catch a message that you can not buy more, give the player a 2 he, subtract money and add a check whether the player has 2 he?
This principle is real?
Administrator 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 21:03.


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