AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Request of adding admin flags for specific time duration. (https://forums.alliedmods.net/showthread.php?t=286897)

bobis 08-27-2016 08:19

Request of adding admin flags for specific time duration.
 
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!

boomix 08-27-2016 10:05

Re: Request of adding admin flags for specific time duration.
 
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 :D)
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.

bobis 08-27-2016 11:00

Re: Request of adding admin flags for specific time duration.
 
Is this independent from server crashes? I mean , if the server restarts/crash , do the timer of 1 month for example reset?

boomix 08-27-2016 11:17

Re: Request of adding admin flags for specific time duration.
 
Quote:

Originally Posted by bobis (Post 2448712)
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.

bobis 08-28-2016 04:34

Re: Request of adding admin flags for specific time duration.
 
Quote:

Originally Posted by boomix (Post 2448715)
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 , 11:33 am) , and the server crashes/restarts after 20 hours. Does the due date remain the same , exactly as 28/09/2016 , 11:33 am ?

boomix 08-28-2016 05:11

Re: Request of adding admin flags for specific time duration.
 
Quote:

Originally Posted by bobis (Post 2448903)
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 , 11:33 am) , and the server crashes/restarts after 20 hours. Does the due date remain the same , exactly as 28/09/2016 , 11:33 am ?

Sorry, I was bit tired when I wrote that post, thats why it is written so shitty. :D 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.

bobis 08-28-2016 06:42

Re: Request of adding admin flags for specific time duration.
 
Quote:

Originally Posted by boomix (Post 2448912)
Sorry, I was bit tired when I wrote that post, thats why it is written so shitty. :D 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!


All times are GMT -4. The time now is 11:46.

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