Raised This Month: $ Target: $400
 0% 

[HELP] Making Public SM Commands (Admin Only)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SolidSnake916
Member
Join Date: Feb 2010
Old 08-23-2010 , 07:58   [HELP] Making Public SM Commands (Admin Only)
Reply With Quote #1

I Cannot Edit the Source, Nor Post it. Because i don't have it. I want to be able to make commands which are public in other plugins admin only. For instance lets say i want "say_team" to be an admin command, how would i go about doing that, without editing files and compiling files. Remember "say_team" is only an example and not really a command i want to make admin only.

http://forums.alliedmods.net/showthread.php?p=648834 - Command Blocker
if i were to use sm_blockcommand "say_team" would that allow admins with cheats or root be able to use it, and no one else?

EDIT: THIS DIDN'T MAKE THEM ADMIN ONLY!!!
http://forums.alliedmods.net/showthread.php?p=600521 - Cheat Control
If i were to put the command "say_team" in the blocked list, would that allow admins with cheats or root be able to use them.

EDIT: I have no idea how this can be done, but i need a whole list of commands admin only, and not work unless your admin.

Last edited by SolidSnake916; 08-24-2010 at 00:26.
SolidSnake916 is offline
cybersquare420
Veteran Member
Join Date: Nov 2008
Old 08-25-2010 , 09:21   Re: [HELP] Making Public SM Commands (Admin Only)
Reply With Quote #2

To make a command available to only Premium Members,
Quote:
open up tf/addons/sourcemod/configs/admin_overrides.cfg. Make a new line and add:

Code:
"commandname" "o"
For example, to make sm_laserbeams a Premium Member-only command, it would look like this:

Code:
"sm_laserbeams" "o"
i took this from the OP of the premium plugin but it works for any commands you want to assign to any admin flag in sm

have fun
__________________
cybersquare420 is offline
SolidSnake916
Member
Join Date: Feb 2010
Old 08-25-2010 , 21:49   Re: [HELP] Making Public SM Commands (Admin Only)
Reply With Quote #3

Didnt' Work, i tried this... and restarted the entire server.

Overrides
{
"+copy" "o"
"-copy" "o"
"+move" "o"
"-move" "o"
"+v_back" "o"
"-v_back" "o"
"+v_forward" "o"
"-v_forward" "o"
}

Last edited by SolidSnake916; 08-25-2010 at 22:04.
SolidSnake916 is offline
Kevin_b_er
SourceMod Donor
Join Date: Feb 2009
Old 08-25-2010 , 23:10   Re: [HELP] Making Public SM Commands (Admin Only)
Reply With Quote #4

Note that buttons are not commands, in spite of appearing similar. They're actually transmitted on a separate "channel" than the console commands.
__________________
Kevin_b_er is offline
SolidSnake916
Member
Join Date: Feb 2010
Old 08-25-2010 , 23:15   Re: [HELP] Making Public SM Commands (Admin Only)
Reply With Quote #5

How do i block them and how about this one than.
v_sound... no - or + and they are are used via console.
SolidSnake916 is offline
richard85moon
BANNED
Join Date: Aug 2010
Old 08-26-2010 , 03:44   Re: [HELP] Making Public SM Commands (Admin Only)
Reply With Quote #6

I thought anyone can use with it. Just for available to Premium Members. How much we can pay to become a Premium member?
richard85moon is offline
SolidSnake916
Member
Join Date: Feb 2010
Old 08-26-2010 , 04:37   Re: [HELP] Making Public SM Commands (Admin Only)
Reply With Quote #7

Thanks for spamming my topic which clearly states nothing about premium commands in sourcemod.

Back on topic.

What are button commands, "All of the commands i want blocked are send via console"

I need the -/+ commands blocked as such regular commands too. I have attempted what cybersquare420 has said, and no result was given except non admins still being able to run them commands. and making me more angry about it. I have tried several attempts on this, is there no way to block a Source Mod Plugin command from being accessed. Shouldn't this overrides work, am i doing it wrong?
SolidSnake916 is offline
Frus
Senior Member
Join Date: Aug 2009
Old 08-28-2010 , 03:40   Re: [HELP] Making Public SM Commands (Admin Only)
Reply With Quote #8

You will need a plugin to block +/- commands.

And you will most likely only be able to block commands that the server uses, not the client. So things that change graphics or sound settings, etc. I wouldn't expect to work with overrides. Only things like text chat, voice commands, etc.

The only way to tell if you are doing something wrong is if you post your overrides file.
Frus is offline
SolidSnake916
Member
Join Date: Feb 2010
Old 08-28-2010 , 03:51   Re: [HELP] Making Public SM Commands (Admin Only)
Reply With Quote #9

Well the override file is above, the rest is // so that means it wont read. Thats all that matters in the file is that. Also these are commands that go through the server, there arent graphics nor sound. How can i block them.
SolidSnake916 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 05:41.


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