Raised This Month: $32 Target: $400
 8% 

Command access by steamid


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shady101
Member
Join Date: Nov 2014
Location: USA
Old 12-11-2017 , 04:31   Command access by steamid
Reply With Quote #1

So i wanted a plugin that i can put steamid and the command, and that'll make the command only usable by that steamid. Sort of similar to the cmdaccess.ini file in the configs folder, but more specific accesses. I want it to work with any command, if the command is valid and theres a plugin for it. So it needs to be in a .ini file that goes to the configs folder.

Example:

"amx_ban" "steamid1" "steamid2" "steamid3"
"amx_rcon" "steamid1" "steamid2" "steamid3"

and so on. It should handle limitless amounts of steamid. If the command is in the .ini file then it is only usable by those steamids. If the command is not in the .ini file then the access for it would work regularly.

Is anyone willing to do this?


game: counter-strike 1.6
preferably compatible with both amxx 1.8.2 and 1.8.3

Last edited by shady101; 12-11-2017 at 04:35.
shady101 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 12-11-2017 , 12:56   Re: Command access by steamid
Reply With Quote #2

idk how to make the commands load from .ini file without editing original plugins. good luck
__________________
retired chump
DjSoftero is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-11-2017 , 13:03   Re: Command access by steamid
Reply With Quote #3

Quote:
Originally Posted by DjSoftero View Post
idk how to make the commands load from .ini file without editing original plugins. good luck
Easy. Register them in a new plugin (that is put above the original one in plugins.ini) and block the access (return PLUGIN_HANDLED) if the SteamID doesn't match.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
shady101
Member
Join Date: Nov 2014
Location: USA
Old 12-11-2017 , 20:45   Re: Command access by steamid
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
Easy. Register them in a new plugin (that is put above the original one in plugins.ini) and block the access (return PLUGIN_HANDLED) if the SteamID doesn't match.
would u do it?
shady101 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 12-12-2017 , 13:27   Re: Command access by steamid
Reply With Quote #5

Quote:
Originally Posted by shady101 View Post
would u do it?
You don't realise how much effort and time it would take to make this plugin. First to get used to the admincmd's code style, then to put your code and then to test and fix the bugs. Good luck!
__________________
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-12-2017 , 13:30   Re: Command access by steamid
Reply With Quote #6

Quote:
Originally Posted by shady101 View Post
would u do it?
Yes, I like the idea and I eventually will make it, but I can't promise when. I need to think of the best way to store the data first.

@edon1337 - admincmd has nothing to do with this.
__________________

Last edited by OciXCrom; 12-12-2017 at 13:30.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 12-12-2017 , 13:34   Re: Command access by steamid
Reply With Quote #7

Quote:
Originally Posted by OciXCrom View Post
@edon1337 - admincmd has nothing to do with this.
And where do you think these commands are located in? Yeah you can also make this in an external plugin but admincmd is the base of the commands.
__________________
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-12-2017 , 14:06   Re: Command access by steamid
Reply With Quote #8

Why does that even matter?! If you register the same commands in another plugin before that one does, you can still control them and fully block them.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 12-12-2017 , 14:37   Re: Command access by steamid
Reply With Quote #9

Quote:
Originally Posted by OciXCrom View Post
@edon1337 - admincmd has nothing to do with this.
You could've said 'admincmd can be excluded' but saying it has nothing to do with this makes no sense.
__________________

Last edited by edon1337; 12-12-2017 at 14:37.
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-12-2017 , 15:25   Re: Command access by steamid
Reply With Quote #10

You probably don't understand how the plugin is going to work. In simple words - it's going to work without having to edit/work with any other plugins, so don't worry about it.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 18:39.


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