]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/player.qc
Added more useful PrintToChat functions.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / player.qc
index 091b97862913b1dbc95f65ed98bad5607eb88e7b..c0460aedc88767b50023a1c5928f9ffa52ce26dd 100644 (file)
@@ -692,6 +692,23 @@ void DebugPrintToChat(entity player, string text)
        }
 }
 
+void PrintToChatAll(string text)
+{
+       text = strcat("\{1}^7", text, "\n");
+       FOREACH_CLIENT(IS_REAL_CLIENT(it),
+       {
+               sprint(it, text);
+       });
+}
+
+void DebugPrintToChatAll(string text)
+{
+       if (autocvar_developer)
+       {
+               PrintToChatAll(text);
+       }
+}
+
 /**
  * message "": do not say, just test flood control
  * return value: