Raised This Month: $51 Target: $400
 12% 

Disable buy menu fore terrorists ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
valio_skull
Senior Member
Join Date: Jan 2013
Location: at home
Old 12-09-2015 , 16:20   Disable buy menu fore terrorists ?
Reply With Quote #1

Can someone help me ? I want to disable "buy, rebuy, autobuy" commands for terrorists.
I can compile it myself.
__________________
valio_skull is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 12-09-2015 , 17:12   Re: Disable buy menu fore terrorists ?
Reply With Quote #2

Why are you trying to code Furien mode.. when you dont have enough experience ? Just start with easy plugins.. anyway... I sent you my fully works Furien and you are asking for things which mine includes.
ESK0 is offline
valio_skull
Senior Member
Join Date: Jan 2013
Location: at home
Old 12-10-2015 , 06:40   Re: Disable buy menu fore terrorists ?
Reply With Quote #3

Quote:
Originally Posted by ESK0 View Post
Why are you trying to code Furien mode.. when you dont have enough experience ? Just start with easy plugins.. anyway... I sent you my fully works Furien and you are asking for things which mine includes.
Because my furien already has some functions that I need, and I am too lazy to combine it with your furien mod...I just need to disable that buy menu.
__________________
valio_skull is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 12-10-2015 , 06:54   Re: Disable buy menu fore terrorists ?
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?t=275881
ESK0 is offline
valio_skull
Senior Member
Join Date: Jan 2013
Location: at home
Old 12-10-2015 , 07:09   Re: Disable buy menu fore terrorists ?
Reply With Quote #5

That doesn't help me, It's so hard to disable that buy menu ?...
__________________
valio_skull is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 12-10-2015 , 07:18   Re: Disable buy menu fore terrorists ?
Reply With Quote #6

Quote:
Originally Posted by valio_skull View Post
That doesn't help me, It's so hard to disable that buy menu ?...
You cannot exactly disable buy menu because its client sided.
ESK0 is offline
valio_skull
Senior Member
Join Date: Jan 2013
Location: at home
Old 12-12-2015 , 10:14   Re: Disable buy menu fore terrorists ?
Reply With Quote #7

FOR THOSE WHO WANT TO DISABLE BUY MENU FOR ALL TEAMS
mp_buytime 0
I didn't find a way to disable it for a specific team, but I can make a Class Plugin for my Anti-Furiens. And also, I got the brilliant idea to make it for furiens too xD
__________________
valio_skull is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 12-12-2015 , 14:01   Re: Disable buy menu fore terrorists ?
Reply With Quote #8

https://sm.alliedmods.net/new-api/cs...S_OnBuyCommand. Doesnt disable the menu but blocks players from buying something. Requires <cstrike> include (comes with sourcemod).
xerox8521 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-12-2015 , 22:58   Re: Disable buy menu fore terrorists ?
Reply With Quote #9

PHP Code:
public void OnPluginStart() {
    
HookEvent("round_start"Event_RoundStart);
}

public 
Action Event_RoundStart(Event event, const char[] namebool dontBroadcast) {
    
GameRules_SetProp("m_bTCantBuy"true__true); // T Can't buy
    
GameRules_SetProp("m_bCTCantBuy"true__true); // CT can't buy

I didnt test it, just an idea.

Last edited by Mitchell; 12-12-2015 at 22:58.
Mitchell is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 12-15-2015 , 18:23   Re: Disable buy menu fore terrorists ?
Reply With Quote #10

Quote:
Originally Posted by Mitchell View Post
PHP Code:
public void OnPluginStart() {
    
HookEvent("round_start"Event_RoundStart);
}

public 
Action Event_RoundStart(Event event, const char[] namebool dontBroadcast) {
    
GameRules_SetProp("m_bTCantBuy"true__true); // T Can't buy
    
GameRules_SetProp("m_bCTCantBuy"true__true); // CT can't buy

I didnt test it, just an idea.
+1

or loop func_buyzone and set desired team.
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
Reply



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 19:39.


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