AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Questions about buyzones (https://forums.alliedmods.net/showthread.php?t=162580)

Doc-Holiday 07-20-2011 16:28

Questions about buyzones
 
As you can see from previous posts buyzones can be blocked and i have that code to do it.

How ever. can they be blocked on the fly? like by client comand /blockbz /enablebz??

Would that mean i need to create my own entity for func_buyzone? Or can it be done by whats already in the game

thanks.

bibu 07-20-2011 16:32

Re: Questions about buyzones
 
Use a boolean and hook the buy command?

nikhilgupta345 07-20-2011 16:41

Re: Questions about buyzones
 
You can hook StatusIcon and return PLUGIN_HANDLED when you want it to be blocked and return PLUGIN_CONTINUE when not blocked.

Doc-Holiday 07-20-2011 17:33

Re: Questions about buyzones
 
Quote:

Originally Posted by nikhilgupta345 (Post 1514807)
You can hook StatusIcon and return PLUGIN_HANDLED when you want it to be blocked and return PLUGIN_CONTINUE when not blocked.

not blocked on the fly though... doing that Blocks it on the next round

Quote:

Originally Posted by bibu (Post 1514796)
Use a boolean and hook the buy command?

Doing that still allows the menu to flash on the screen.


All times are GMT -4. The time now is 01:09.

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