AlliedModders

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

SkiesOFF 01-01-2009 12:02

without bind
 
Is there a way to, when someone press M for exemple, shows a menu? But without changing client bind?

Thanks :)

YamiKaitou 01-01-2009 12:43

Re: without bind
 
Unless the client has that key still bound to the default and you handle it that way, nope

kielor 01-01-2009 12:55

Re: without bind
 
you can assign a function to a command that is default on that key

L// 01-01-2009 15:05

Re: without bind
 
for example:

PHP Code:

register_clcmd("chooseteam""cmd_changeteam"

when you press the M (default)

PHP Code:

public cmd_changeteam(id)
{
    
your_menu(id)
    return 
PLUGIN_HANDLED;



SkiesOFF 01-01-2009 18:38

Re: without bind
 
hmm. thank you

i will try this.


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

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