How to disable buy menu?
Im working on a plugin where you get weapons on round start. How do i disable the buy menu like on fy maps?
Thanks |
The way fy_ maps disable buying is a mapping technique and is compiled into the map itself...
|
kk, but is there still a way to disable the buy menu? I'm 90% sure ive seen it in a other metamod or amxx plugin.
|
You could try this:
Code:
It may not work. |
I'll try now.
Thanks :up: btw, if it works... where can i put the print when they try to buy? like "This server is running with RuneScape Mod. You cant buy anything!" |
It works! :D
But where do i place that print? (I tryed at the end of the function, but then i get 4 errors) People can go on the menu and choose weapon, but then it comes "Counter-Terrorits cant buy weapons on this map" (or something like that... just like on fy maps) Is there anyway to make it so they cant even get in to the menu? |
I don't think you can stop it from coming up at all. You could try registering the text message that says CTs can't buy weapons on this map and then use your own client_print on print_center to override it.
|
you could register the buy command, and make it do a PLUGIN_HANDLED
also btw... RuneScape mod? me is interested. |
off topic section... sounds cool
|
Hrmm, you could try doing what Avalanche said as well as searching for and deleting any "func_buyzone" entities... Some maps dont have them and use the user spawns as a buyzone radius, but maybe that will help?
|
| All times are GMT -4. The time now is 14:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.