Raised This Month: $51 Target: $400
 12% 

Default Access Level


  
 
 
Thread Tools Display Modes
Author Message
Smiley123
Junior Member
Join Date: Mar 2007
Old 03-04-2007 , 13:22   Default Access Level
#1

How do you change a plugins default access level? For example:
" Default access is ADMIN_BAN, so basically anyone with access to amx_ban will be able to use these commands." How do I edit or change c this to new settings?

Thank You
Smiley123 is offline
stranger
Member
Join Date: Feb 2007
Old 03-04-2007 , 13:27   Re: Default Access Level
#2

do it in users.ini
stranger is offline
Smiley123
Junior Member
Join Date: Mar 2007
Old 03-04-2007 , 13:33   Re: Default Access Level
#3

Yeah but how do I change the PLUGIN'S access level from amx_ban to lets say amx_slay?
Smiley123 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-04-2007 , 15:14   Re: Default Access Level
#4

You would have to edit the source code. Ask in that plugins topic for more help
YamiKaitou is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 03-04-2007 , 17:42   Re: Default Access Level
#5

Code:
    register_concmd("amx_kick", "cmdKick", ADMIN_KICK, "<name or #userid> [reason]")     register_concmd("amx_ban", "cmdBan", ADMIN_BAN, "<name or #userid> <minutes> [reason]")     register_concmd("amx_banip", "cmdBanIP", ADMIN_BAN, "<name or #userid> <minutes> [reason]")     register_concmd("amx_addban", "cmdAddBan", ADMIN_BAN, "<authid or ip> <minutes> [reason]")     register_concmd("amx_unban", "cmdUnban", ADMIN_BAN, "<authid or ip>")     register_concmd("amx_slay", "cmdSlay", ADMIN_SLAY, "<name or #userid>")     register_concmd("amx_slap", "cmdSlap", ADMIN_SLAY, "<name or #userid> [power]")     register_concmd("amx_leave", "cmdLeave", ADMIN_KICK, "<tag> [tag] [tag] [tag]")     register_concmd("amx_pause", "cmdPause", ADMIN_CVAR, "- pause or unpause the game")     register_concmd("amx_who", "cmdWho", ADMIN_ADMIN, "- displays who is on server")     register_concmd("amx_cvar", "cmdCvar", ADMIN_CVAR, "<cvar> [value]")     register_concmd("amx_plugins", "cmdPlugins", ADMIN_ADMIN)     register_concmd("amx_modules", "cmdModules", ADMIN_ADMIN)     register_concmd("amx_map", "cmdMap", ADMIN_MAP, "<mapname>")     register_concmd("amx_cfg", "cmdCfg", ADMIN_CFG, "<filename>")     register_concmd("amx_nick", "cmdNick", ADMIN_SLAY, "<name or #userid> <new nick>")     register_clcmd("amx_rcon", "cmdRcon", ADMIN_RCON, "<command line>")     register_clcmd("amx_showrcon", "cmdShowRcon", ADMIN_RCON, "<command line>")     register_clcmd("pauseAck", "cmdLBack")

You're looking or admincmd.sma. Change the third parameter to what suits.

http://wiki.amxmodx.org/index.php/Ad...#Access_Levels
http://wiki.amxmodx.org/index.php/Co...28AMX_Mod_X%29

Custom flags are defined as ADMIN_LEVEL_A, ADMIN_LEVEL_B and so on.

Last edited by Lee; 03-04-2007 at 17:48.
Lee is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 03-04-2007 , 19:32   Re: Default Access Level
#6

Quote:
Originally Posted by Lee View Post
Code:
&nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_kick", "cmdKick", ADMIN_KICK, "<name or #userid> [reason]") &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_ban", "cmdBan", ADMIN_BAN, "<name or #userid> <minutes> [reason]") &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_banip", "cmdBanIP", ADMIN_BAN, "<name or #userid> <minutes> [reason]") &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_addban", "cmdAddBan", ADMIN_BAN, "<authid or ip> <minutes> [reason]") &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_unban", "cmdUnban", ADMIN_BAN, "<authid or ip>") &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_slay", "cmdSlay", ADMIN_SLAY, "<name or #userid>") &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_slap", "cmdSlap", ADMIN_SLAY, "<name or #userid> [power]") &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_leave", "cmdLeave", ADMIN_KICK, "<tag> [tag] [tag] [tag]") &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_pause", "cmdPause", ADMIN_CVAR, "- pause or unpause the game") &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_who", "cmdWho", ADMIN_ADMIN, "- displays who is on server") &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_cvar", "cmdCvar", ADMIN_CVAR, "<cvar> [value]") &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_plugins", "cmdPlugins", ADMIN_ADMIN) &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_modules", "cmdModules", ADMIN_ADMIN) &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_map", "cmdMap", ADMIN_MAP, "<mapname>") &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_cfg", "cmdCfg", ADMIN_CFG, "<filename>") &nbsp;&nbsp;&nbsp;&nbsp;register_concmd("amx_nick", "cmdNick", ADMIN_SLAY, "<name or #userid> <new nick>") &nbsp;&nbsp;&nbsp;&nbsp;register_clcmd("amx_rcon", "cmdRcon", ADMIN_RCON, "<command line>") &nbsp;&nbsp;&nbsp;&nbsp;register_clcmd("amx_showrcon", "cmdShowRcon", ADMIN_RCON, "<command line>") &nbsp;&nbsp;&nbsp;&nbsp;register_clcmd("pauseAck", "cmdLBack")


You're looking or admincmd.sma. Change the third parameter to what suits.

http://wiki.amxmodx.org/index.php/Ad...#Access_Levels
http://wiki.amxmodx.org/index.php/Co...28AMX_Mod_X%29

Custom flags are defined as ADMIN_LEVEL_A, ADMIN_LEVEL_B and so on.
Not what he meant.

He wants to edit the 3rd party plugin. Open the source code and replace access levels as you want. If you want someone who has amx_kick to use a command that's amx_ban, replace all ADMIN_BAN with ADMIN_KICK.
__________________

Last edited by vvg125; 03-04-2007 at 21:21.
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 03-04-2007 , 20:14   Re: Default Access Level
#7

Indeed I misunderstood, but I still provided the information he sought - and not inaccuracies such as confusing 'amx_kick' with 'ADMIN_KICK'. ;)
Lee is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 03-04-2007 , 21:22   Re: Default Access Level
#8

Yea, I just realized my little typo. Sorry if it seemed like I was annoyed at you. Just pointing it out, no hard feelings.
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
 



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:07.


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