Raised This Month: $ Target: $400
 0% 

Temporary Admin - Add admin for x days


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-14-2016 , 21:26   Re: Temporary Admin - Add admin for x days
Reply With Quote #9

Since these admins are temporary, I wouldn't even bother with adding them to users.ini. Store them with a method of your choice (nvault, SQL, etc.). When the user connects and he has temporary admin status, call set_user_flags() with the appropriate flags. With nvault, you can set the timestamp to his expire date and when he connects after this expire date, you can remove the nvault record and not give him admin flags. This would essentially be an entire re-write.
__________________

Last edited by Bugsy; 10-14-2016 at 21:28.
Bugsy is offline
 



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 17:15.


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