]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cl_client.qc
un-ignorable sv_notices system. set sv_notice important info 1| imprtant info 2 in...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cl_client.qc
index 6f7cda2b8c9ad328b9bde1d92666b2ff02f47d63..5fc08591397de3ecefd3a5208b5bafd140176a9e 100644 (file)
@@ -645,6 +645,7 @@ Called when a client spawns in the server
 =============
 */
 //void() ctf_playerchanged;
+
 void PutClientInServer (void)
 {
        if(clienttype(self) == CLIENTTYPE_BOT)
@@ -927,6 +928,18 @@ void PutClientInServer (void)
        } else if(self.classname == "observer" || (g_ca && !allowed_to_spawn)) {
                PutObserverInServer ();
        }
+    
+    // to-do: make sv_join_notices support per-entry times
+    if(!autocvar_sv_join_notices || autocvar_sv_join_notices == "")  
+        return;
+    
+    float argc = tokenizebyseparator(autocvar_sv_join_notices, "|");
+    if(argc > 0)
+    {
+        float i; 
+        for(i = argc - 1; i >= 0; --i)    
+            sv_notice_to(self, argv(i), autocvar_sv_join_notices_time, FALSE);
+    }
 
        //if(g_ctf)
        //      ctf_playerchanged();