Raised This Month: $ Target: $400
 0% 

Remove automatically admins


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
Slifer
Junior Member
Join Date: Sep 2010
Old 09-16-2010 , 08:29   Remove automatically admins
Reply With Quote #1

Remove Automatically Admins


Description:
Remove automatically administrators

Usage:
"amx_removeadmin" "Name" "Day to remove" "Month to remove" "Year to remove"

Modules/Requirements:
• Host
• Mysql

How remove this automatically admins?:
If the player is admin, and her name is in the file "Dates" ( file created when the plugin start, if the database is not created. ) the plugin automatically read the database and detect the days/month/year of the player and is compared with the current day/month/year.
If the player day/month/year is equal to the current day/moth/year, the plugin adds automatically a ";" before the name in "users.ini"

Example "amx_removeadmin" Slifer 20 10 16

Date to remove automatically admin = 20/10/2016


Access level required:
• ADMIN_LEVEL_A

Credits:
Before< ( idea )

ML:
Quote:
[EN] ~~~ Slifer
[ES] ~~~ EnterPrice62
[NL] ~~~ Drekes
[BP] ~~~ MrMaCEEE
[FR] ~~~ ConnorMcLeod
last modification applied in the plugin:

Change fvault to DBI.
Attached Files
File Type: sma Get Plugin or Get Source (RemoveAutomaticallyAdmin_MySQL.sma - 1213 views - 5.9 KB)
File Type: inc dbi.inc (4.0 KB, 363 views)
File Type: txt RemoveAdmin.txt (1.3 KB, 525 views)

Last edited by Slifer; 09-19-2010 at 05:42.
Slifer is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 09-16-2010 , 08:33   Re: Remove automatically admins
Reply With Quote #2

Good plugin, but add support for IP and steamid too..
Vechta is offline
Slifer
Junior Member
Join Date: Sep 2010
Old 09-16-2010 , 08:54   Re: Remove automatically admins
Reply With Quote #3

Quote:
Originally Posted by Vechta View Post
Good plugin, but add support for IP and steamid too..
Added support for steam.
Slifer is offline
EnterPrice62
Member
Join Date: Sep 2010
Location: Argentina
Old 09-16-2010 , 09:36   Re: Remove automatically admins
Reply With Quote #4

GJ!

Spanish translation.

Quote:
[es]
DATE_NOT_FOUND = El Dia/Mes/Año especificado no existe o ya paso.
DATE_TO_REMOVE = Nombre: %s - Dia a sacar: %i/%i/%i.
DATE_TO_REMOVE_2 = !yEl dia !g%i!y/!g%i!y/!g%i !yacaba tu admin.
ADMIN_EXPIRED = !yHoy !g%i!y/!g%i!y/!g%i !ytu admin caduco.
EnterPrice62 is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-16-2010 , 09:52   Re: Remove automatically admins
Reply With Quote #5

Code:
[nl]
DATE_NOT_FOUND = De dag/maand/jaar is niet gevonden of al gepasseerd.
DATE_TO_REMOVE = Naam: %s - Te verwijderen dag: %i/%i%i.
DATE_TO_REMOVE_2 = !yDag !g%i!y/!g%i!y/!g%i !yverloopt je admin.
ADMIN_EXPIRED = !yVandaag !g%i!y/!g%i!y/!g%i !y Je admin is verlopen.
Attach fvault.inc too.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 09-16-2010 , 11:31   Re: Remove automatically admins
Reply With Quote #6

Quote:
Originally Posted by Slifer View Post
Use:
amx_removeadmin "Day to remove" "Month to remove" "Year to remove"
And how exacly does it know wich admin to remove ? Or it just removes them all and be done with it ?
__________________
Hunter-Digital is offline
Slifer
Junior Member
Join Date: Sep 2010
Old 09-16-2010 , 11:44   Re: Remove automatically admins
Reply With Quote #7

Quote:
Originally Posted by drekes View Post
Code:
[nl]
DATE_NOT_FOUND = De dag/maand/jaar is niet gevonden of al gepasseerd.
DATE_TO_REMOVE = Naam: %s - Te verwijderen dag: %i/%i%i.
DATE_TO_REMOVE_2 = !yDag !g%i!y/!g%i!y/!g%i !yverloopt je admin.
ADMIN_EXPIRED = !yVandaag !g%i!y/!g%i!y/!g%i !y Je admin is verlopen.
Attach fvault.inc too.
Thanks, updating.

@Hunter-Digital
I wrote it wrong, sorry

"amx_removeadmin" "Steamid" "Day to remove" "Month to remove" "Year to remove"
Slifer is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 09-16-2010 , 12:54   Re: Remove automatically admins
Reply With Quote #8

Quote:
Originally Posted by Vechta View Post
Good plugin, but add support for IP
No Steam is No Support.
__________________
I am out of order!
grimvh2 is offline
DaxProxy
Senior Member
Join Date: Sep 2007
Old 09-16-2010 , 13:27   Re: Remove automatically admins
Reply With Quote #9

Quote:
Originally Posted by grimvh2 View Post
No Steam is No Support.
Oh my god, there are tons of reasons why i should add IP admin not name nor steamid admin in my steam server.
You can't assume that IP and NAME admin related plugins are designed for nonsteam.
__________________

Want ApolloRP for Counter-Strike? Show your support: http://forums.alliedmods.net/showthr...39#post1264739
DaxProxy is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 09-16-2010 , 15:49   Re: Remove automatically admins
Reply With Quote #10

Quote:
Originally Posted by DaxProxy View Post
Oh my god, there are tons of reasons why i should add IP admin not name nor steamid admin in my steam server.
You can't assume that IP and NAME admin related plugins are designed for nonsteam.
Give me 1 reason to use an IP instead of a unique steam id.
__________________
I am out of order!
grimvh2 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 22:52.


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