Raised This Month: $51 Target: $400
 12% 

Is here way to add admin for limited time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wingblack
Junior Member
Join Date: Jan 2013
Old 01-03-2013 , 10:32   Is here way to add admin for limited time
Reply With Quote #1

I need to add option in SourceBans to remove user`s permitions (or delete user from some group or delete it at all, or something else) after some time then user was granted this permitions by adding to group (after week, month, and etc).
It is need to automate managment of donators.
Can somebody help me?
Thanks for replies.
wingblack is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 01-09-2013 , 19:04   Re: Is here way to add admin for limited time
Reply With Quote #2

This is a common request and planned for some future release. But as of right now no estimated time, nor does current version support it.
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 01-11-2013 , 09:20   Re: Is here way to add admin for limited time
Reply With Quote #3

no there isn't a way to do this on a timer - I just put mine in a google spreadsheet and between myself and someone else we watch the dates each day. If someone gets an extra day cause we were busy then ohh well not a big deal.
Horsedick is offline
animalnots
Senior Member
Join Date: Dec 2012
Old 01-11-2013 , 15:14   Re: Is here way to add admin for limited time
Reply With Quote #4

Quote:
Originally Posted by Horsedick View Post
no there isn't a way to do this on a timer - I just put mine in a google spreadsheet and between myself and someone else we watch the dates each day. If someone gets an extra day cause we were busy then ohh well not a big deal.
maan haven't you heard about cron tasks ?
__________________
STEAM is the best of the west
Quote:
Never argue with an idiot. He lowers you to his level and then wins on experience!
animalnots is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 01-12-2013 , 11:18   Re: Is here way to add admin for limited time
Reply With Quote #5

Quote:
Originally Posted by animalnots View Post
maan haven't you heard about cron tasks ?
if you wish to go thru that yes...but we are talking plugins which in this case no you can't.

Last edited by Horsedick; 01-12-2013 at 11:18.
Horsedick is offline
animalnots
Senior Member
Join Date: Dec 2012
Old 01-12-2013 , 12:44   Re: Is here way to add admin for limited time
Reply With Quote #6

Then you can do next:
1) Alter sb_admins table to add a endtime column that will refer to end date of admin privileges.
2) Write a plugin that connects to sb_admins table on mapchange and checks if nowtime >= endtime. If true, admin is removed, otherwise he remains untouched. nowtime is returned by GetTime function.
__________________
STEAM is the best of the west
Quote:
Never argue with an idiot. He lowers you to his level and then wins on experience!
animalnots 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 07:04.


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