AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Detecting Server Startup (https://forums.alliedmods.net/showthread.php?t=25109)

KCE 03-07-2006 21:48

Detecting Server Startup
 
How to detect server startup? Not when changing maps, but when the server is first started.

filou 03-08-2006 00:34

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. :wink:

GHW_Chronic 03-08-2006 00:36

Code:
public plugin_init() {     if(!cvar_exists("srv_startup"))     {         register_cvar("srv_startup","1")         log_amx("[AMXX] Server Stated Up")     } }


All times are GMT -4. The time now is 20:14.

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