Amx Sql Management Plugin

devicenulldevicenull Join Date: 2003-04-30 Member: 15967Members, NS2 Playtester, Squad Five Blue
edited November 2003 in General Server Discussion
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.

Comments

  • devicenulldevicenull Join Date: 2003-04-30 Member: 15967Members, NS2 Playtester, Squad Five Blue
    This is the plugin:
    (Something prevented me from adding it to a modified post)
  • QwertyQwerty Join Date: 2003-06-30 Member: 17817Members
    <!--QuoteBegin--devicenull+Nov 12 2003, 05:59 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (devicenull @ Nov 12 2003, 05:59 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> listadmin

    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
  • devicenulldevicenull Join Date: 2003-04-30 Member: 15967Members, NS2 Playtester, Squad Five Blue
    Yea, theres really no avoiding it.. I still don't like it, but there really isn't much I can do <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo--> I had steam up and running in about 2 minutes, I just don't like valve forcing crap programs down our throats
Sign In or Register to comment.