Raised This Month: $ Target: $400
 0% 

[HELP] if server is empty


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xlenonz
Member
Join Date: Jun 2007
Old 01-19-2009 , 15:23   Re: [HELP] if server is empty
Reply With Quote #6

Quote:
Originally Posted by xPaw View Post
PHP Code:
#include <amxmodx>

public plugin_init() {
    
set_task(1.0"CheckPlayers"_,_,_"b");
}

public 
CheckPlayers() {
    new 
g_iPlayers get_playersnum();
    
    if( 
g_iPlayers == )
        
server_cmd("mp_timelimit 0");
    else
        
server_cmd("mp_timelimit 40");
    
    return 
PLUGIN_CONTINUE;

but i dont reccomend to use this.
thats work thanks, and Exolent[jNr]
xlenonz is offline
 



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 01:41.


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