AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Temporary Admin (https://forums.alliedmods.net/showthread.php?t=13334)

GHW_Chronic 05-12-2005 18:26

Temporary Admin
 
2 Attachment(s)
  • 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.

nightscreem 05-12-2005 18:29

ok i love you man always wanted this i give you 5 :D :D :D
ok sry but how can i add someone with days in the users.ini itself so I don't need to go in the server or do it in server console to do it

GHW_Chronic 05-12-2005 19:09

*


If you wanted to add a tempadmin manually

you add the line to "users.ini" with his admin and flags and stuff
then you find out what line it is on
Click on the line and go to "edit - go to" and see what line it says, then subtract 1 from that number (since AMXX says that line 1 is actually line 0)
then you go to users2.ini and add the line "m?d?y?" to the end.
first "?" is the month (6,7,12) then the next "?" is the day(5,7,24) then the next "?" is the year (2005,2007)
last you add the last line to "users2.ini" with the line # that you added the user's admin to in "users.ini"

and that'll add their admin manually till whatever date you set it to.

Proach 05-13-2005 04:24

wooh this one was requested wasn't it?
very nice work especcialy for servers with "admin packages"

thanks

Front Line 05-13-2005 04:35

is this a plugin for ppl who are not organised?

Proach 05-13-2005 07:24

no.. it's a plugin for people who are to lazy to go into their users.ini I think

f1del1ty.oXi 05-13-2005 08:16

No, it's pretty much designed specifically for those people who have admins who pay to have it. You can give them temp admin for a month or howeevr long they pay for, and if they don't pay it automatically removes the admin, and then you must redo it.

If you read the topic about working on it you might have known.

Proach 05-13-2005 08:33

Quote:

wooh this one was requested wasn't it?
very nice work especcialy for servers with "admin packages"

thanks
yes I said that already
hmm scrolling 10 lines up... hard!!

NiGHTFiRE 05-13-2005 12:48

Thank you for this plugin:)

GHW_Chronic 05-13-2005 17:18

yeah, this took me a while to make, was requested by night scream and could be used for adding admins for a month if they pay for it for a month or you could use it if you were to lazy to go into users.ini file. you don't have to even mess with steam ids. If you wanted to add a permanent admin just do "amx_tempadmin name 9999 Flags". if you do to many 9s it will work but it will take longer for it to register his admin, but not too much longer, like 2 minutes or something with "99999999999".


All times are GMT -4. The time now is 18:59.

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