Raised This Month: $32 Target: $400
 8% 

Temporary Admin


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        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 - 6068 views - 10.7 KB)
File Type: zip users2.zip (118 Bytes, 3309 views)

Last edited by GHW_Chronic; 02-10-2007 at 00:58.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 05-12-2005 , 18:29  
Reply With Quote #2

ok i love you man always wanted this i give you 5
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
__________________
- Bye bye!
nightscreem is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 05-12-2005 , 19:09  
Reply With Quote #3

*


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.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 05-13-2005 , 04:24  
Reply With Quote #4

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

thanks
__________________

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
Front Line
Senior Member
Join Date: Jan 2005
Old 05-13-2005 , 04:35  
Reply With Quote #5

is this a plugin for ppl who are not organised?
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 05-13-2005 , 07:24  
Reply With Quote #6

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

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
f1del1ty.oXi
Veteran Member
Join Date: Nov 2004
Old 05-13-2005 , 08:16  
Reply With Quote #7

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.
__________________
f1del1ty.oXi is offline
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 05-13-2005 , 08:33  
Reply With Quote #8

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!!
__________________

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
NiGHTFiRE
Senior Member
Join Date: Dec 2004
Location: Sweden
Old 05-13-2005 , 12:48  
Reply With Quote #9

Thank you for this plugin
NiGHTFiRE is offline
Send a message via AIM to NiGHTFiRE Send a message via MSN to NiGHTFiRE
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 05-13-2005 , 17:18  
Reply With Quote #10

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".
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Reply



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 19:12.


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