Raised This Month: $ Target: $400
 0% 

Request of adding admin flags for specific time duration.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bobis
Senior Member
Join Date: Jun 2010
Location: Athens, Greece
Old 08-27-2016 , 08:19   Request of adding admin flags for specific time duration.
Reply With Quote #1

Hello , is there any plugin that allows me to add a STEAM_ID with several admin flags (a-z) for a specific time duration (1 day , 1 week or 1 month)? Of course , when the specific time period expires, the STEAM_ID loses the specified flags.

Thank you!
bobis is offline
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 08-27-2016 , 10:05   Re: Request of adding admin flags for specific time duration.
Reply With Quote #2

Some time ago I made something simular to this for one friend

It allows you to add admin groups for time. All admin groups you can add/fine in (sourcemod/configs/admin_groups.cfg) . Then you just need to use command

Quote:
!addadmin [username] [steamid] [group] [time]

example: !addadmin boomix STEAM_0:1:55473534 1d12h (that will set admin for me for 1 day and 12 hours. Support is only for days and hours, I was too lazy to make it for seconds and weeks )
Make sure, when you add first admin, you copy the admins that you already have in the file, because adding first admin is baisicly clearing the admin file (I don't remember why).

Also, just to add, those who have this group set for time, when they come in server, they will see how long they still will have their group.



EDIT: was made for friend, but he didn't want to post the plugin, so I delete it. Atleast the author got it, so it's fine.
__________________

Last edited by boomix; 08-27-2016 at 16:36.
boomix is offline
bobis
Senior Member
Join Date: Jun 2010
Location: Athens, Greece
Old 08-27-2016 , 11:00   Re: Request of adding admin flags for specific time duration.
Reply With Quote #3

Is this independent from server crashes? I mean , if the server restarts/crash , do the timer of 1 month for example reset?
bobis is offline
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 08-27-2016 , 11:17   Re: Request of adding admin flags for specific time duration.
Reply With Quote #4

Quote:
Originally Posted by bobis View Post
Is this independent from server crashes? I mean , if the server restarts/crash , do the timer of 1 month for example reset?
no, it saves everything in admin.cfg, so you can restart the server how many times you want, and it will not restart anything.
__________________
boomix is offline
bobis
Senior Member
Join Date: Jun 2010
Location: Athens, Greece
Old 08-28-2016 , 04:34   Re: Request of adding admin flags for specific time duration.
Reply With Quote #5

Quote:
Originally Posted by boomix View Post
no, it saves everything in admin.cfg, so you can restart the server how many times you want, and it will not restart anything.
Sorry , but I didn't understand well (maybe english is not your native language but I don't care)

For example, I set my friend admin for 1 month with your plugin (until 28/09/2016 , 113 am) , and the server crashes/restarts after 20 hours. Does the due date remain the same , exactly as 28/09/2016 , 113 am ?
bobis is offline
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 08-28-2016 , 05:11   Re: Request of adding admin flags for specific time duration.
Reply With Quote #6

Quote:
Originally Posted by bobis View Post
Sorry , but I didn't understand well (maybe english is not your native language but I don't care)

For example, I set my friend admin for 1 month with your plugin (until 28/09/2016 , 113 am) , and the server crashes/restarts after 20 hours. Does the due date remain the same , exactly as 28/09/2016 , 113 am ?
Sorry, I was bit tired when I wrote that post, thats why it is written so shitty. And yes, in your example it will remain to the same date. That means any server crash or restart will not change any date that you have set already.
__________________
boomix is offline
bobis
Senior Member
Join Date: Jun 2010
Location: Athens, Greece
Old 08-28-2016 , 06:42   Re: Request of adding admin flags for specific time duration.
Reply With Quote #7

Quote:
Originally Posted by boomix View Post
Sorry, I was bit tired when I wrote that post, thats why it is written so shitty. And yes, in your example it will remain to the same date. That means any server crash or restart will not change any date that you have set already.
Ok , can you send me a link in PM to this plugin? Unless you don't have problem to post the link here. Thank you!

Last edited by bobis; 08-28-2016 at 06:43.
bobis is offline
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 11:46.


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