Raised This Month: $ Target: $400
 0% 

Server auto unlock


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
s33k
Senior Member
Join Date: Jul 2009
Location: club420
Old 11-20-2015 , 12:23   Server auto unlock
Reply With Quote #1

Hi,

Can someone make(or its already make) plugin for automatic unlock server
if there is no players online.
Plugin checks every 2 min is players online, if is number of players 0 its just set
cvar sv_password ""

Its for cw server becouse same my frends forget to unlock server after match.
__________________
s33k is offline
Send a message via MSN to s33k
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-20-2015 , 18:12   Re: Server auto unlock
Reply With Quote #2

Search "Automatic Password".
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
CreePs
Member
Join Date: Mar 2011
Old 11-22-2015 , 04:29   Re: Server auto unlock
Reply With Quote #3

here you go
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Password Remover"
#define VERSION "1.0"
#define AUTHOR "CreePs"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_disconnectclient )
{
    
set_task1.0"checkPlayers" );
}

public 
checkPlayers( )
{
    new 
players;
    
    for( new 
1<= get_maxplayers( ); i++ )
    {
        if( 
is_user_connected) )
        {
            
players++;
        }
    }
    
    if( ! 
players )
    {
        
server_cmd"sv_password ^"^"" );
    }

__________________
My Plugin's:
CreePs 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 20:51.


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