Raised This Month: $ Target: $400
 0% 

Detecting Server Startup


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 03-07-2006 , 21:48   Detecting Server Startup
Reply With Quote #1

How to detect server startup? Not when changing maps, but when the server is first started.
KCE is offline
filou
Junior Member
Join Date: Feb 2005
Location: France
Old 03-08-2006 , 00:34  
Reply With Quote #2

You can create a cvar "srv_started" and if this is empty , then your server start , after that you change the value of this cvar.
filou is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 03-08-2006 , 00:36  
Reply With Quote #3

Code:
public plugin_init() {     if(!cvar_exists("srv_startup"))     {         register_cvar("srv_startup","1")         log_amx("[AMXX] Server Stated Up")     } }
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
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 20:14.


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