Raised This Month: $ Target: $400
 0% 

buy menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
warchild690
Junior Member
Join Date: Mar 2006
Old 11-13-2006 , 22:04   buy menu
Reply With Quote #1

Ok, I wrote a plugin that, in short(very short)strips all weapoms but and gives u a pistol, but the problem is, people can rebuy their weapons after they have been stripped. I know there is a way to restrict the buy menu for a map, but i want this to work on any map. I've looked around a bit and all i could find had to do with the map.

so my question: How would I go about restricting the buy menuso that you cant buy anything? set the buy time to 0? or is there something more complex than that?
warchild690 is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 11-13-2006 , 22:19   Re: buy menu
Reply With Quote #2

Code:
 
register_clcmd("buy", "generic_block")
register_clcmd("buyammo1", "generic_block")
register_clcmd("buyammo2", "generic_block")
register_clcmd("buyequip", "generic_block")
register_clcmd("cl_autobuy", "generic_block")
register_clcmd("cl_rebuy", "generic_block")
register_clcmd("cl_setautobuy", "generic_block")
register_clcmd("cl_setrebuy", "generic_block")
code from csdm_misc.sma
 
public generic_block(id, level, cid)
{
return PLUGIN_HANDLED // block any buy command, menu won't be shown.
}
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
warchild690
Junior Member
Join Date: Mar 2006
Old 11-13-2006 , 22:23   Re: buy menu
Reply With Quote #3

thank you very much.
warchild690 is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-14-2006 , 00:14   Re: buy menu
Reply With Quote #4

also another way is to remove the buy zones , or set all the players money to 0 on spawn .
The Specialist is offline
Send a message via AIM to The Specialist
VEN
Veteran Member
Join Date: Jan 2005
Old 11-14-2006 , 13:28   Re: buy menu
Reply With Quote #5

jim_yang: this will not block buying fully, there is also numerous buy aliases like ak47, m4a1, etc...

The Specialist: this will not work in the all cases, not all maps use buyzone entities.

warchild690: You can use for example plugin "Buyzone Range", it able to restrict buying fully and it easy to use.
VEN is offline
warchild690
Junior Member
Join Date: Mar 2006
Old 11-15-2006 , 21:08   Re: buy menu
Reply With Quote #6

ah, thank you everybody. I will check out that plugin VEN.
warchild690 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 06:49.


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