Raised This Month: $1944 Target: $400
 486% 

Command Restrictions


Post New Thread Reply   
 
Thread Tools Display Modes
oldies
Junior Member
Join Date: Apr 2020
Old 04-23-2020 , 21:59   Re: Command Restrictions
Reply With Quote #21

Quote:
Originally Posted by oldies View Post
when i try to compile it with compile.exe, i receive an error;

i put the sma file where compile.exe and the cromchat.inc, double clicked the exe filed it compiled. no problem so far.
oldies is offline
oldies
Junior Member
Join Date: Apr 2020
Old 04-23-2020 , 22:14   Re: Command Restrictions
Reply With Quote #22

it did not worked, i know i did something wrong but what?
here is the allowed command
Code:
[amx_votemapmenu]
allow all
block "dead"
i put CommandRestriction.ini into amxmodx/config
and added crx_command_restrictions.amxx into plugins.ini
then i put crx_command_restrictions.amxx into amxmodx/plugins

and i tested with the user i never used in the server (made up some name), in the console i write amx_votemapmenu it says "You have no access to that command".
what did i wrong?
oldies is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-24-2020 , 07:27   Re: Command Restrictions
Reply With Quote #23

Quote:
Originally Posted by oldies View Post
when i try to compile it with compile.exe, i receive an error;

The compiler's "include" directory, not the plugin's...

Quote:
Originally Posted by oldies View Post
it did not worked, i know i did something wrong but what?
here is the allowed command
Code:
[amx_votemapmenu]
allow all
block "dead"
i put CommandRestriction.ini into amxmodx/config
and added crx_command_restrictions.amxx into plugins.ini
then i put crx_command_restrictions.amxx into amxmodx/plugins

and i tested with the user i never used in the server (made up some name), in the console i write amx_votemapmenu it says "You have no access to that command".
what did i wrong?
Did you give yourself access to the command via users.ini?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
oldies
Junior Member
Join Date: Apr 2020
Old 04-24-2020 , 09:14   Re: Command Restrictions
Reply With Quote #24

Quote:
Originally Posted by OciXCrom View Post
Did you give yourself access to the command via users.ini?
do i have to do that, i want every one on the server to do that, so i can not know who is joining who is leaving etc. My main point is not yo deal with permission settings on user.ini for [amx_votemapmenu] if i am going to use the plugin. what does the plugin do if i have to give Access Flag on user.ini? sorry if i annoying you, i want to learn.
oldies is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-24-2020 , 09:58   Re: Command Restrictions
Reply With Quote #25

The plugin can't overwrite what users.ini does. If you want to use this plugin for that command, simply set the command to use NO flag at all in users.ini - leave the flag blank - ""
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
theuser
Junior Member
Join Date: Jul 2020
Old 07-11-2020 , 06:21   Re: Command Restrictions
Reply With Quote #26

hi i use this plugin to restrict important cvars for admin cant change them.
but in my server if i add for exp

PHP Code:
[amx_cvar sv_restart
block all 
if admins use this command, it not blocked,,,
but it work great for say and non cvar commands.

how can i use this plugin for restrict cvars to??!
theuser is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-11-2020 , 15:13   Re: Command Restrictions
Reply With Quote #27

The command is "amx_cvar", not the entire thing. Specific values cannot be restricted. I will try to implement this feature in a future update.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

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 10:35.


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