Raised This Month: $ Target: $400
 0% 

Amx_Super /SPEC


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RuleZ.
Junior Member
Join Date: Feb 2010
Location: Denmark
Old 03-02-2010 , 13:54   Amx_Super /SPEC
Reply With Quote #1

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.
RuleZ. is offline
Send a message via Skype™ to RuleZ.
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 03-02-2010 , 15:38   Re: Amx_Super /SPEC
Reply With Quote #2

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.
__________________
bmann_420 is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 03-03-2010 , 03:27   Re: Amx_Super /SPEC
Reply With Quote #3

//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
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 03-04-2010 , 00:50   Re: Amx_Super /SPEC
Reply With Quote #4

o boies, der der der ( i was having a great day)

I miss you DG
__________________
bmann_420 is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 03-04-2010 , 05:28   Re: Amx_Super /SPEC
Reply With Quote #5

Quote:
Originally Posted by bmann_420 View Post
I miss you DG
Hit me up on Steam sometime then, and we'll catch up.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
RuleZ.
Junior Member
Join Date: Feb 2010
Location: Denmark
Old 03-07-2010 , 08:50   Re: Amx_Super /SPEC
Reply With Quote #6

Quote:
Originally Posted by DarkGod View Post
//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
RuleZ. is offline
Send a message via Skype™ to RuleZ.
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 03-09-2010 , 15:06   Re: Amx_Super /SPEC
Reply With Quote #7

That will disable the capability of using /spec. In the amx_super.cfg file.
__________________
bmann_420 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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