Raised This Month: $ Target: $400
 0% 

[HELP] if server is empty


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-19-2009 , 11:46   Re: [HELP] if server is empty
Reply With Quote #2

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.
__________________
xPaw 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