AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   +command not working (https://forums.alliedmods.net/showthread.php?t=236544)

urban_ninja 03-07-2014 08:27

+command not working
 
For the record I did try to use search for this question but search seems to ignore the + character.

How do you get +commands to work properly? I register a +command and a -command in register_clcmd() but the +command only gets sent to server once on hold and -command never gets sent at all when the key is let go.

Kiske 03-07-2014 14:35

Re: +command not working
 
Show the code please.

Black Rose 03-07-2014 17:07

Re: +command not working
 
Code:
#include <amxmodx> public plugin_init() {     register_plugin("Test Plugin 3", "", "[ --{-@ ]");         register_clcmd("+test", "test1");     register_clcmd("-test", "test2"); } public test1()     server_print("It..."); public test2()     server_print("...works!");

Code:

It...
...works!

We done here?


All times are GMT -4. The time now is 06:02.

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