AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   AMX Super (https://forums.alliedmods.net/forumdisplay.php?f=111)
-   -   Amx_Super /SPEC (https://forums.alliedmods.net/showthread.php?t=120258)

RuleZ. 03-02-2010 13:54

Amx_Super /SPEC
 
Hello there!

I have installed amx_super on my server. I'ave the problem that all people can go /spec, the command are doing so you can go spectate, and still play. How can i fix/remove it so it's only admins that can go /spec?

Hope you understood my bad english... :|

Thanks

RuleZ.

bmann_420 03-02-2010 15:38

Re: Amx_Super /SPEC
 
If you want to remove it, simply go into the .sma (in the commands section under plugin_init) and where you find:

Code:

register_clcmd("say /spec", "cmd_spec")
register_clcmd("say /unspec", "cmd_unspec")

Example:

Code:

//register_clcmd("say /spec", "cmd_spec")
//register_clcmd("say /unspec", "cmd_unspec")

Comment it out like so. Then recompile using your local compiler, or at amxmodx.org

Unless you want to keep it, then you would add a check in the function for an admin.

DarkGod 03-03-2010 03:27

Re: Amx_Super /SPEC
 
//Allow /spec command
allow_public_spec 1 // Enable/Disable the public use of /spec command (to send you to Spectator)

amx_super.cfg is amazing.

http://www.supercentral.net/wiki/wik...=Amx_super_cfg

bmann_420 03-04-2010 00:50

Re: Amx_Super /SPEC
 
o boies, der der der ( i was having a great day)

I miss you DG

DarkGod 03-04-2010 05:28

Re: Amx_Super /SPEC
 
Quote:

Originally Posted by bmann_420 (Post 1106956)
I miss you DG

Hit me up on Steam sometime then, and we'll catch up.

RuleZ. 03-07-2010 08:50

Re: Amx_Super /SPEC
 
Quote:

Originally Posted by DarkGod (Post 1106158)
//Allow /spec command
allow_public_spec 1 // Enable/Disable the public use of /spec command (to send you to Spectator)

amx_super.cfg is amazing.

http://www.supercentral.net/wiki/wik...=Amx_super_cfg

Oh xD Im acctually not understanding that much of it.. :/ Im not that good at scripting things yet :S

bmann_420 03-09-2010 15:06

Re: Amx_Super /SPEC
 
That will disable the capability of using /spec. In the amx_super.cfg file.


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

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