AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] Buy Command (https://forums.alliedmods.net/showthread.php?t=270814)

Syturi0 08-30-2015 06:28

[Help] Buy Command
 
PHP Code:

register_clcmd("buy" "testcommand"

I want to bind something to the "B" key (buy)
But it only works when iam in BuyZone, i want it to work outside of buyzones too.
Is it possible?

HamletEagle 08-30-2015 06:38

Re: [Help] Buy Command
 
It may be:
  • Modify the size of the buyzone to cover the entire map.
  • Create a fake one and force touch(poor way).

Syturi0 08-30-2015 07:37

Re: [Help] Buy Command
 
Quote:

Originally Posted by HamletEagle (Post 2338247)
It may be:
  • Modify the size of the buyzone to cover the entire map.
  • Create a fake one and force touch(poor way).

Okey, the whole map have buyzone.
I made a Touch Entety in one Zone.
When player is outside, Menu 1 opens.
When player is inside Zone, Menu 2 opens.

The only problem is once the player enters the Zone, even if he goes outside, he can still open Menu 2, instead of Menu 1.

HamletEagle 08-30-2015 07:41

Re: [Help] Buy Command
 
Show what you did.


All times are GMT -4. The time now is 22:16.

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