Raised This Month: $29 Target: $400
 7% 

Admin remove after x day!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Syncron.
Member
Join Date: Dec 2014
Location: Iasi,Romania
Old 12-08-2017 , 02:45   Admin remove after x day!
Reply With Quote #1

hello to everyone I would like to know if there is a plug-in that can perform the following function, all admins that do not enter the server after a certain time set by cvar for example: I do not within 3 days, get eliminated for inactivity.
I'm sorry for the English that I own is not a native speaker.
Syncron. is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 12-08-2017 , 05:53   Re: Admin remove after x day!
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=13334 just search....
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
klippy
AlliedModders Donor
Previously known as:
KliPPy
Join Date: May 2013
Location: Serbia
Old 12-08-2017 , 06:04   Re: Admin remove after x day!
Reply With Quote #3

Quote:
Originally Posted by D3XT3R View Post
That's not what the OP has asked for.
klippy is offline
Syncron.
Member
Join Date: Dec 2014
Location: Iasi,Romania
Old 12-08-2017 , 06:30   Re: Admin remove after x day!
Reply With Quote #4

Quote:
Originally Posted by D3XT3R View Post
Thx for answear but what u gave me isn't what i ask.
thanks!
About, search i search very much, before i make this topic, trust me.
Syncron. is offline
Syncron.
Member
Join Date: Dec 2014
Location: Iasi,Romania
Old 12-10-2017 , 00:04   Re: Admin remove after x day!
Reply With Quote #5

Bummmmpppp.
Syncron. is offline
Syncron.
Member
Join Date: Dec 2014
Location: Iasi,Romania
Old 12-11-2017 , 15:36   Re: Admin remove after x day!
Reply With Quote #6

Bumppp someone?
Syncron. is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 12-12-2017 , 09:49   Re: Admin remove after x day!
Reply With Quote #7

this could help? not tested because no time and just if u want kick every admin from connecting make cvar 1 and if u want disable make it 0
PHP Code:
#include <amxmodx>
#include <amxmisc>

new g_cvar_block

public plugin_init()
{
    
g_cvar_block register_cvar("cvar_block_admins_time""1");
}

public 
client_putinserver(id)
{
    if(!
get_pcvar_num(g_cvar_block))
        return 
0;
    
    if(!
get_user_flags(sndr) & ADMIN_USER)
    {
        
server_cmd("amx_kick #%d ^"Owner have blocked admins from connecting to server for X days!^""get_user_userid(id));
    }

__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
klippy
AlliedModders Donor
Previously known as:
KliPPy
Join Date: May 2013
Location: Serbia
Old 12-12-2017 , 10:09   Re: Admin remove after x day!
Reply With Quote #8

You failed to understand what the OP asked for again.
klippy is offline
Syncron.
Member
Join Date: Dec 2014
Location: Iasi,Romania
Old 12-12-2017 , 23:38   Re: Admin remove after x day!
Reply With Quote #9

Quote:
Originally Posted by D3XT3R View Post
this could help? not tested because no time and just if u want kick every admin from connecting make cvar 1 and if u want disable make it 0
PHP Code:
#include <amxmodx>
#include <amxmisc>

new g_cvar_block

public plugin_init()
{
    
g_cvar_block register_cvar("cvar_block_admins_time""1");
}

public 
client_putinserver(id)
{
    if(!
get_pcvar_num(g_cvar_block))
        return 
0;
    
    if(!
get_user_flags(sndr) & ADMIN_USER)
    {
        
server_cmd("amx_kick #%d ^"Owner have blocked admins from connecting to server for X days!^""get_user_userid(id));
    }

Thanks for try appriciete!
But, code for this plugin is much than 50 lines!

Can u lock this topic i try to make myself.
Syncron. is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 12-13-2017 , 02:45   Re: Admin remove after x day!
Reply With Quote #10

Quote:
Originally Posted by Syncron. View Post
Thanks for try appriciete!
But, code for this plugin is much than 50 lines!

Can u lock this topic i try to make myself.
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
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Reply


Thread Tools
Display Modes

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 06:27.


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