Amx Sql Management Plugin
devicenull
Join Date: 2003-04-30 Member: 15967Members, NS2 Playtester, Squad Five Blue
This will add 4 new commands
listadmin - lists all admins/reserved slots
addadmin <name> <pw> <access> <flags> - adds an admin..
deladmin <name> - deletes an admin
Sample Output: (dunno how well this will display)
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->listadmin
Reserved Slots:
ID
steam_test
STEAM_TEST
Admins:
ID Access
STEAM_0:1:1199 abcdefghijklmnopqrstu<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
Currently, you must have ADMIN_LEVEL_A (custom levels #1), however this can be easily changed when compiling.
Note: This does *NOT* require any special sql setup, other then your standard amx auth table, it reads all its configs from amx.
Note2: There is a bug here I don't know how to solve, any admin can delete any other admins account, regardless of access, choose your admins wisely.
listadmin - lists all admins/reserved slots
addadmin <name> <pw> <access> <flags> - adds an admin..
deladmin <name> - deletes an admin
Sample Output: (dunno how well this will display)
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->listadmin
Reserved Slots:
ID
steam_test
STEAM_TEST
Admins:
ID Access
STEAM_0:1:1199 abcdefghijklmnopqrstu<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
Currently, you must have ADMIN_LEVEL_A (custom levels #1), however this can be easily changed when compiling.
Note: This does *NOT* require any special sql setup, other then your standard amx auth table, it reads all its configs from amx.
Note2: There is a bug here I don't know how to solve, any admin can delete any other admins account, regardless of access, choose your admins wisely.
Comments
(Something prevented me from adding it to a modified post)
Reserved Slots:
ID
steam_test
STEAM_TEST
Admins:
ID Access
<span style='color:red'>STEAM_0:1:1199 abcdefghijklmnopqrstu</span> <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
So much for anti steam :O