summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 e631384..0abba45 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -426,6 +426,11 @@ g_admin_cmd_t g_admin_cmds[ ] =
{"sm", G_admin_sm, "schachtmeister",
"Schachtmeister",
"..."
+ },
+
+ {"print",G_admin_print2, "print",
+ "prints text",
+ "[text to print]"
}
};
@@ -8422,3 +8427,11 @@ qboolean G_admin_sm( 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 25cf2a7..b85beec 100644
--- a/src/game/g_admin.h
+++ b/src/game/g_admin.h
@@ -305,6 +305,7 @@ void G_admin_IPA_judgement( const char *ipa, int rating, const char *comment );
qboolean G_admin_sm( gentity_t *ent, int skiparg );
void G_admin_schachtmeisterFrame( void );
qboolean G_admin_is_restricted(gentity_t *ent, qboolean sendMessage);
+qboolean G_admin_print2( gentity_t *ent, int skiparg );
void G_admin_print( gentity_t *ent, char *m );
void G_admin_buffer_print( gentity_t *ent, char *m );