summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_admin.c13
-rw-r--r--src/game/g_admin.h1
2 files changed, 14 insertions, 0 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index 7635b86..4271dd8 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -488,6 +488,11 @@ g_admin_cmd_t g_admin_cmds[ ] =
"warn", G_admin_warn, "warn",
"Warn a player to cease or face admin intervention",
"[^3name|slot#^7] [reason]"
+ },
+
+ {"print",G_admin_print2, "print",
+ "prints text",
+ "[text to print]"
}
};
@@ -10830,3 +10835,11 @@ qboolean G_admin_showff(gentity_t *ent, int skiparg)
return qtrue;
}
+
+qboolean G_admin_print2(gentity_t *ent, int skiparg )
+{
+ char *text;
+ text = G_SayConcatArgs( 1 + skiparg );
+ AP( va( "print \"%s\n\"", text ));
+ return qtrue;
+}
diff --git a/src/game/g_admin.h b/src/game/g_admin.h
index 042fc22..58ae857 100644
--- a/src/game/g_admin.h
+++ b/src/game/g_admin.h
@@ -353,6 +353,7 @@ qboolean G_admin_flaglist( gentity_t *ent, int skiparg );
qboolean G_admin_flag( gentity_t *ent, int skiparg );
qboolean G_admin_immunity( gentity_t *ent, int skiparg );
qboolean G_admin_cp( gentity_t *ent, int skiparg );
+qboolean G_admin_print2( gentity_t *ent, int skiparg );
qboolean G_admin_invisible( gentity_t *ent, int skiparg );
qboolean G_admin_slap( gentity_t *ent, int skiparg );