AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Open Menu without bind (https://forums.alliedmods.net/showthread.php?t=164193)

extreem 08-08-2011 10:58

Open Menu without bind
 
Hello, can you help me with opining menu with out bind. Surc as Zombie plague.
Open menu on key "M" wih out bind ???

Hunter-Digital 08-08-2011 11:00

Re: Open Menu without bind
 
Hook "chooseteam" command ?
You can also hook some of other player's default commands... you can see commands by testing them on your client, just type "bind key" and you'll see the command, if it has a + in front, it's most likely it can't be hooked, but be sure you're testing keys on a DEFAULT layout.
Also have a look into hlsdk_const.inc at IN_* defines, those are actions, like IN_SCORE is when player is holding scoreboard button, you can check those against get_user_button() with &... if(get_user_button(id) & IN_ATTACK) and you should do that in FM_CmdStart.

extreem 08-08-2011 11:02

Re: Open Menu without bind
 
hmm thanks Hunter.


All times are GMT -4. The time now is 03:27.

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