Thread: Temporary Admin
View Single Post
Plugin Info:     Modification:          Category:          Approver:   EKS (166)
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 05-12-2005 , 18:26   Temporary Admin
Reply With Quote #1

  • This plugin allows you to add admins through console for X amount of days. After X days they are removed.

Set-Up:
  • Place "users2.ini" into your configs folder

Command:
  • amx_tempadmin <NAME> <Days to have admin (0=infinate)> <Flags(find out flags in users.ini file)>

  • This plugin modifies your users.ini. It adds 2 lines to it like below:
    • Example:
    Code:
    amx_tempadmin GHW.Chronic 7 bcdefghijklmnopqrstu
        - will give "GHW.Chronic" admin for 7 days with access of "bcdefghijklmnopqrstu".
    Will Add This Into Your Users.ini File:
    Code:
    ;GHW.Chronic
    "STEAM:0:Chronic" "" "bcdefghijklmnopqrstu" "ce"


If you ever need to append the users.ini file after you have added a temp-admin:
  • NEVER Add A New Line Into The File Unless The New Line Is Appended To The End Of The File.

    Example:

    From USERS.ini:
    Code:
    ; Guy1
    "STEAM_0:0:1234567" "" "bcdefghijklmnopqrstu" "ce" //Temp-Admin
    
    ADD NEW LINE HERE AT END
    If You Need To Remove An Admin Manually DO NOT REMOVE THE LINE WITH THEIR STEAM ID. Just Add A ";" Infront Of It.
Attached Files
File Type: sma Get Plugin or Get Source (ghw_temp_admin.sma - 6070 views - 10.7 KB)
File Type: zip users2.zip (118 Bytes, 3310 views)

Last edited by GHW_Chronic; 02-10-2007 at 00:58.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic