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

Admin remove after x day!


Post New Thread Reply   
 
Thread Tools Display Modes
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-13-2017 , 04:10   Re: Admin remove after x day!
Reply With Quote #11

Quote:
Originally Posted by D3XT3R View Post
why you care about the code lines it can be 2 lines, and that code i gived u it only code block every one is not a normal player mean admins etc ... by a cvar if cvar 1 it kick every admin and vip and if it 0 it not kick
That's not what he asked for.
__________________
HamletEagle is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 12-13-2017 , 04:41   Re: Admin remove after x day!
Reply With Quote #12

Damn guys all said to me that not what he asked for so tell me what exactly he asked and why you didnt help HIM?!! and could u tell me what exactly he need because i didnt understand any thing from him topic because title not like what in description....
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-13-2017 , 07:44   Re: Admin remove after x day!
Reply With Quote #13

Quote:
Originally Posted by D3XT3R View Post
Damn guys all said to me that not what he asked for so tell me what exactly he asked and why you didnt help HIM?!! and could u tell me what exactly he need because i didnt understand any thing from him topic because title not like what in description....
Because I don't have time and I am not forced to solve every single request from this forums. He wants to remove admins from users.ini if they don't login in x days. For example, if you have admin and you don't login at least once in 7 days your access is removed.
__________________
HamletEagle is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 12-13-2017 , 10:01   Re: Admin remove after x day!
Reply With Quote #14

ohh ty i will try to slove it
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-13-2017 , 10:11   Re: Admin remove after x day!
Reply With Quote #15

Not all the requests should be applied...

Its not a service most of requests gets done if its only a simple request.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 12-14-2017 , 04:03   Re: Admin remove after x day!
Reply With Quote #16

Hello.
Try this.

Though I haven't done much testing so make sure to create a backup file of your users.ini.

When an admin connects (flag: a), the plugin checks if the user has connected in X amount of days.
If they haven't, their admin privileges should be removed.

PHP Code:
// After how many days of inactivity should admins be removed? 
amx_inactive_days "15" 
Attached Files
File Type: sma Get Plugin or Get Source (expire_admins.sma - 192 views - 5.0 KB)
__________________

Last edited by Rohanlogs; 12-14-2017 at 23:43.
Rohanlogs is offline
Syncron.
Member
Join Date: Dec 2014
Location: Iasi,Romania
Old 12-14-2017 , 14:44   Re: Admin remove after x day!
Reply With Quote #17

Quote:
Originally Posted by Rohanlogs View Post
Hello.
Try this.

Though I haven't done much testing so make sure to create a backup file of your users.ini.

When an admin connects (flag: a), the plugin checks if the user has connected in X amount of days.
If they haven't, their admin privileges should be removed.

PHP Code:
// After how many days of inactivity should admins be removed? 
amx_inactive_days "15" 
Thanks, very much for effort!
I put on my server and now just wait to past 1 day...i'll come back tomorrow.
Syncron. is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 12-15-2017 , 23:11   Re: Admin remove after x day!
Reply With Quote #18

Quote:
Originally Posted by Syncron. View Post
Thanks, very much for effort!
I put on my server and now just wait to past 1 day...i'll come back tomorrow.
I realised that I haven't thought about if a new admin is added.
It currently won't work if you're going to add a new admin.
Maybe someone else could look into that, I'm going to be busy for few days at work.
__________________
Rohanlogs is offline
Syncron.
Member
Join Date: Dec 2014
Location: Iasi,Romania
Old 12-16-2017 , 06:12   Re: Admin remove after x day!
Reply With Quote #19

Quote:
Originally Posted by Rohanlogs View Post
I realised that I haven't thought about if a new admin is added.
It currently won't work if you're going to add a new admin.
Maybe someone else could look into that, I'm going to be busy for few days at work.
Yes, i see + when admin have access on steam_id they didn't recive remove.
One more thing i think the best way to write in nvault an admin is to check this at connect if exist in nvault.
Syncron. 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 17:26.


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