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

[Req] Admin Activity/Expired Date


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TeddiBer
Senior Member
Join Date: Oct 2011
Old 04-06-2012 , 05:45   [Req] Admin Activity/Expired Date
Reply With Quote #1

Hello Every Buddy !

i have an idea:

when i adding a admin, i can all so add what days he will be admin or when his Expired Date.

Activity = what days he will be a admin.
Expired Date = what date he will be no longer a admin.

Activity Example:
Users.ini:
"STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce" "1247" ""

Like that the admin will be active only in days: Sunday, Monday, Wednesday, Saturday.
And He Don't Have an Expired Date.

Day configure:
1 = Sunday
2 = Monday
3 = Tuesday
4= Wednesday
5= Thursday
6= Friday
7= Saturday

Expired Date Example:
Users.ini:
"STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce" "" "5.7.2012"

Like that the admin will be active all days in the week. but he will be expired at: 5.7.2012.
Date configure:

From left to right:
Day.Month.Year

Admin Activity + Expired Date Example:

"STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce" "256" "24.11.2012"

Like that the admin will be active only in days: Monday, Thursday, Friday.
And he will be expired at: 24.11.2012.


I think that will be a grate plugin !

* Hey All Sorry For My Bad English ...
TeddiBer is offline
Alarm
Senior Member
Join Date: Jan 2011
Location: Shit World
Old 04-06-2012 , 07:48   Re: [Req] Admin Activity/Expired Date
Reply With Quote #2

WoW it's really a good idea !
Alarm is offline
Send a message via Skype™ to Alarm
Isstrati
Member
Join Date: Feb 2012
Location: Republic of Moldova/Chis
Old 04-06-2012 , 18:40   Re: [Req] Admin Activity/Expired Date
Reply With Quote #3

yah ...+1
Isstrati is offline
Send a message via Skype™ to Isstrati
NeedYourHelp
Member
Join Date: Dec 2011
Old 04-07-2012 , 08:31   Re: [Req] Admin Activity/Expired Date
Reply With Quote #4

+1
NeedYourHelp is offline
T-z3P
Senior Member
Join Date: Apr 2008
Location: Iasi, Romania
Old 04-07-2012 , 08:32   Re: [Req] Admin Activity/Expired Date
Reply With Quote #5

Activity days? Seriously? What is the point? The expiring day may be a good ideea but activity days not.
__________________


T-z3P is offline
Send a message via Yahoo to T-z3P Send a message via Skype™ to T-z3P
TeddiBer
Senior Member
Join Date: Oct 2011
Old 04-07-2012 , 10:54   Re: [Req] Admin Activity/Expired Date
Reply With Quote #6

Quote:
Originally Posted by T-z3P View Post
Activity days? Seriously? What is the point? The expiring day may be a good ideea but activity days not.
I think activity days and expired date is good, every one with his own opinion ....

if make it with expired date, so all so make with activity days ...

Pleas Scripters May You Guys Make IT ?
TeddiBer is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-07-2012 , 14:05   Re: [Req] Admin Activity/Expired Date
Reply With Quote #7

I may do it, but it will be a separate file than users.ini since it will be easier for plugin to manage it.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
TeddiBer
Senior Member
Join Date: Oct 2011
Old 04-07-2012 , 16:56   Re: [Req] Admin Activity/Expired Date
Reply With Quote #8

fine for me !
thank you exolent, and good Luck !
TeddiBer is offline
Alarm
Senior Member
Join Date: Jan 2011
Location: Shit World
Old 04-08-2012 , 07:14   Re: [Req] Admin Activity/Expired Date
Reply With Quote #9

Exolent, you will make it like he wrote ?
because i need activity+expired ...
Alarm is offline
Send a message via Skype™ to Alarm
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-08-2012 , 20:16   Re: [Req] Admin Activity/Expired Date
Reply With Quote #10

Alright, here we go.

Default cvars are used from the original admin system:
amx_mode
amx_default_access
amx_password_field

File location for admins:
addons/amxmodx/configs/users_custom.ini

Debug logging:
addons/amxmodx/logs/admin_custom/YYYY-MM-DD.log

The same functionality is used in the file as the normal users.ini, it just has the added "activity" and "expiration" functionality.
Expiration date must be in this format: DD.MM.YYYY
If expiration date is in any other format, there will be problems.

You can still use the users.ini for admins at the same time as this plugin is running.
If a player has admin from users.ini, then they will not be checked in the custom file.

There is no command for reloading the file or adding admins to the file.
You have to add admins manually and change map if you want them reloaded.
I may add this feature later, but I just want to see if the original idea works first.

You need AMX Mod X 1.8.1 or higher to run this plugin.

There is no SQL support.

Enjoy.
Attached Files
File Type: sma Get Plugin or Get Source (admin_custom.sma - 1934 views - 17.2 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 04-10-2012 at 09:57.
Exolent[jNr] 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 21:55.


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