AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bind problem (https://forums.alliedmods.net/showthread.php?t=226370)

_GamerX 09-17-2013 02:57

Bind problem
 
PHP Code:

    format(tempString,100,"Hook \dBind: ^"\r+hook\d^"")
    
menu_additem(m11tempString,"9"

Instead of showing
1. Hook Bind: "+hook"
will show
1. Hook Bind: "[x]"
x = bind bottom

But I do not want it that way previewed

xxxnenadxxx 09-17-2013 04:43

Re: Bind problem
 
Why not simply
PHP Code:

menu_additem(m11"Hook \dBind: ^"\r+hook^"""9"


_GamerX 09-17-2013 04:59

Re: Bind problem
 
I use multilingual...

xxxnenadxxx 09-17-2013 07:49

Re: Bind problem
 
I think it auto-detects binded key for command that have + in front of it and prints only key, not command name. If command is defined in code to be used on specific button it will print button name instead of command name. For example if you replace +hook with +use (default command defined in game engine) in your code it will print "E" (if you use default keys). I guess you binded somwhere in your code +hook command to be used with X key and that is why it prints X. Maybe if you undefine it, it should print +hook as text, or you can add whitespace after + symbol but I guess you don't want to do that.

Black Rose 09-17-2013 15:29

Re: Bind problem
 
1. Hook Bind: "[x]"
I'd say this is pretty much impossible.

What is the menu for?

xxxnenadxxx 09-17-2013 16:59

Re: Bind problem
 
I'm pretty sure that is possible.

And I think it speaks for itself.
Hook - for example to move person to position where he is aiming at (something like climbing on building with rope and hook?).
Something like this http://forums.alliedmods.net/showthread.php?t=63271 if I'm not mistaken :)

Black Rose 09-17-2013 17:22

Re: Bind problem
 
_GamerX...
If I'm reading it correctly you're trying to force binds to players.
You can't do this for 2 reasons...
1. It's not allowed on AM forums.
2. Since a new update it has been blocked. (Finally)
...so the menu seems kind of pointless.

Maybe I'm not understanding the purpose of the menu?

EDIT: *sigh* The server in your sig is non-steam which means advertising it is a violation of the rules of this forum.

_GamerX 09-18-2013 00:09

Re: Bind problem
 
Quote:

Originally Posted by Black Rose (Post 2036596)
_GamerX...
If I'm reading it correctly you're trying to force binds to players.
You can't do this for 2 reasons...
1. It's not allowed on AM forums.
2. Since a new update it has been blocked. (Finally)
...so the menu seems kind of pointless.

Maybe I'm not understanding the purpose of the menu?

EDIT: *sigh* The server in your sig is non-steam which means advertising it is a violation of the rules of this forum.

99% servers is nonsteam....

fysiks 09-18-2013 01:21

Re: Bind problem
 
Quote:

Originally Posted by _GamerX (Post 2036698)
99% servers is nonsteam....

LOL. Now you are a comedian.


That still doesn't justify anything.

_GamerX 09-18-2013 04:34

Re: Bind problem
 
If he were not so nonsteam this forum would be inactive -_-


All times are GMT -4. The time now is 19:08.

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