Raised This Month: $ Target: $400
 0% 

[HELP] if server is empty


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-19-2009 , 12:27   Re: [HELP] if server is empty
Reply With Quote #3

Code:
#include <amxmodx> #include <amxmisc> new g_player_count; new mp_timelimit; public plugin_init() {     register_plugin("Plugin Name", "0.1", "Exolent");         register_event("TeamInfo", "EventPlayerLeave", "a", "2=UNASSIGNED");         mp_timelimit = get_cvar_pointer("mp_timelimit"); } public client_putinserver(client) {     if( ++g_player_count == 1 )     {         set_pcvar_num(mp_timelimit, 40);     } } public EventPlayerLeave() {     if( --g_player_count == 0 )     {         set_pcvar_num(mp_timelimit, 0);     } }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 01-19-2009 at 12:34.
Exolent[jNr] 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