Raised This Month: $ Target: $400
 0% 

[ALL] Override acces to a command ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 02-20-2013 , 03:41   [ALL] Override acces to a command ?
Reply With Quote #1

How do you override a acces to a command ? Because now I tryed with this plugin :

https://forums.alliedmods.net/showthread.php?t=106709

And in admin_overrides.cfg in have put this : "sm_grant_critboost" "" And i have restart server but it does change nothing, player (except admin) don't have acces to this command
Arkarr is offline
Wazman
AlliedModders Donor
Join Date: Oct 2012
Location: Unknown place ????
Old 02-20-2013 , 04:00   Re: [ALL] Override acces to a command ?
Reply With Quote #2

Simple, Just enter into your admin_overrides.cfg
It will look like this.
Overrides
{
/**
* By default, commands are registered with three pieces of information:
* 1)Command Name (for example, "csdm_enable")
* 2)Command Group Name (for example, "CSDM")
* 3)Command Level (for example, "changemap")
*
* You can override the default flags assigned to individual commands or command groups in this way.
* To override a group, use the "@" character before the name. Example:
* Examples:
* "@CSDM" "b" // Override the CSDM group to 'b' flag
* "csdm_enable" "bgi" // Override the csdm_enable command to 'bgi' flags
*
* Note that for overrides, order is important. In the above example, csdm_enable overwrites
* any setting that csdm_enable previously had.
*
* You can make a command completely public by using an empty flag string.
*/
"Type the command you want to be overridden here" "Then the Admin flag it's gonna be set to"
FOR EXAMPLE \/
"sm_god" "o"
}


That's all you have to do to override a command to another flag.

Last edited by Wazman; 02-20-2013 at 04:01.
Wazman is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 02-21-2013 , 03:25   Re: [ALL] Override acces to a command ?
Reply With Quote #3

Quote:
Originally Posted by Wazman View Post
Simple, Just enter into your admin_overrides.cfg
It will look like this.
Overrides
{
/**
* By default, commands are registered with three pieces of information:
* 1)Command Name (for example, "csdm_enable")
* 2)Command Group Name (for example, "CSDM")
* 3)Command Level (for example, "changemap")
*
* You can override the default flags assigned to individual commands or command groups in this way.
* To override a group, use the "@" character before the name. Example:
* Examples:
* "@CSDM" "b" // Override the CSDM group to 'b' flag
* "csdm_enable" "bgi" // Override the csdm_enable command to 'bgi' flags
*
* Note that for overrides, order is important. In the above example, csdm_enable overwrites
* any setting that csdm_enable previously had.
*
* You can make a command completely public by using an empty flag string.
*/
"Type the command you want to be overridden here" "Then the Admin flag it's gonna be set to"
FOR EXAMPLE \/
"sm_god" "o"
}


That's all you have to do to override a command to another flag.
Already done this, but doesn't work ! Maybe try it by your self with this plugin and chek if it's work in your server.
Arkarr is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-21-2013 , 13:33   Re: [ALL] Override acces to a command ?
Reply With Quote #4

Quote:
Originally Posted by Arkarr View Post
How do you override a acces to a command ?
One way is, add admin command in admin_overrides.cfg, inside parentheses
{
here
}

admin_overrides.cfg

* Another way is override for certain admin groups in admin_groups.cfg.
Quote:
Originally Posted by Arkarr View Post
Because now I tryed with this plugin :

https://forums.alliedmods.net/showthread.php?t=106709

And in admin_overrides.cfg in have put this : "sm_grant_critboost" "" And i have restart server but it does change nothing, player (except admin) don't have acces to this command
Once you manage to override cmd to public use, there is still one problem... targeting at other players.
When plugin use ProcessTargetString or FindTarget, it will check player(s) immunity, can he execute that action to another player.

Non-admin player, who is not added in admin list or admin cache,
(rcon sm_dump_admcache, you get current admins in dump file ...addons\sourcemod\data\admin_cache_dump.txt),
is able to use command, but can't get it work to another players! Bug 5025
Code:
"cannot target this player"
You could "fix" this editing plugin source code and change command executer to server/"console".
Spoiler

But then @me and @!me would not work.

-----------------
I did help someone about this and the method was add non-admin player temporary to admin cache.
Admin for all who Connect - Experiment

So, if you are interested, you could try this, post #7
- When you create admin group called "public", it will add non-admins in there and allow them use commands what you override inside that group.

sry my bad english, hope you did understand something of this
__________________
Do not Private Message @me
Bacardi is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 02-21-2013 , 17:51   Re: [ALL] Override acces to a command ?
Reply With Quote #5

Quote:
Originally Posted by bacardi View Post
one way is, add admin command in admin_overrides.cfg, inside parentheses
{
here
}

admin_overrides.cfg

* another way is override for certain admin groups in admin_groups.cfg.

once you manage to override cmd to public use, there is still one problem... targeting at other players.
When plugin use processtargetstring or findtarget, it will check player(s) immunity, can he execute that action to another player.

non-admin player, who is not added in admin list or admin cache,
(rcon sm_dump_admcache, you get current admins in dump file ...addons\sourcemod\data\admin_cache_dump.txt),
is able to use command, but can't get it work to another players! bug 5025
Code:
"cannot target this player"
you could "fix" this editing plugin source code and change command executer to server/"console".
Spoiler

but then @me and @!me would not work.

-----------------
i did help someone about this and the method was add non-admin player temporary to admin cache.
admin for all who connect - experiment

so, if you are interested, you could try this, post #7
- when you create admin group called "public", it will add non-admins in there and allow them use commands what you override inside that group.

Sry my bad english, hope you did understand something of this :d
oh my god it's bacardi
hi bacardi
edit: i'm pretty sure i typed all the above in caps...
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING

Last edited by minimoney1; 02-21-2013 at 17:51.
minimoney1 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 02-22-2013 , 03:19   Re: [ALL] Override acces to a command ?
Reply With Quote #6

Quote:
Originally Posted by Bacardi View Post
One way is, add admin command in admin_overrides.cfg, inside parentheses
{
here
}

admin_overrides.cfg

* Another way is override for certain admin groups in admin_groups.cfg.

Once you manage to override cmd to public use, there is still one problem... targeting at other players.
When plugin use ProcessTargetString or FindTarget, it will check player(s) immunity, can he execute that action to another player.

Non-admin player, who is not added in admin list or admin cache,
(rcon sm_dump_admcache, you get current admins in dump file ...addons\sourcemod\data\admin_cache_dump.txt),
is able to use command, but can't get it work to another players! Bug 5025
Code:
"cannot target this player"
You could "fix" this editing plugin source code and change command executer to server/"console".
Spoiler

But then @me and @!me would not work.

-----------------
I did help someone about this and the method was add non-admin player temporary to admin cache.
Admin for all who Connect - Experiment

So, if you are interested, you could try this, post #7
- When you create admin group called "public", it will add non-admins in there and allow them use commands what you override inside that group.

sry my bad english, hope you did understand something of this

OMFG, thanks for this small wiki about : "How to override acces for a specific plugin". I will try it right now and, thank you again ! -----> WORK ! (i used @all instand @me)

PS :

Quote:
i did help someone about this and the method was add non-admin player temporary to admin cache.
admin for all who connect - experiment

so, if you are interested, you could try this, post #7
- when you create admin group called "public", it will add non-admins in there and allow them use commands what you override inside that group.
Can we edit your plugin and add a timer to limit the acces to admin command and not just a connections ? (same as a "test premium account")

Last edited by Arkarr; 02-22-2013 at 03:38. Reason: Just found a new idea when i read your : admin for all who connect - experiment
Arkarr is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-22-2013 , 08:18   Re: [ALL] Override acces to a command ?
Reply With Quote #7

Quote:
Originally Posted by Arkarr View Post
Can we edit your plugin...
Yes you can.
Quote:
Originally Posted by Arkarr View Post
and add a timer to limit the acces to admin command and not just a connections ? (same as a "test premium account")
Aaaa ok ?
Maybe better do that "timer" in one of plugins what use those commands...
good luck, I just visiting here
Bacardi is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 02-24-2013 , 12:01   Re: [ALL] Override acces to a command ?
Reply With Quote #8

Quote:
Originally Posted by Bacardi View Post
Yes you can.

Aaaa ok ?
Maybe better do that "timer" in one of plugins what use those commands...
good luck, I just visiting here
Yay, maybe I need some times (and help :S) to learn how to use Sourcemode because now, I don't know a lot about Sourcemode script ): But I will learn soon as possible.

Last edited by Arkarr; 02-24-2013 at 12:55.
Arkarr 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 04:24.


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