From d11fce952dda332d54d94f1d086649c925193ba8 Mon Sep 17 00:00:00 2001 From: IronClawTrem Date: Fri, 8 May 2020 18:08:21 +0100 Subject: print g_outdatedClientMessage with !register If a player has no GUID and attempts to !register, this cvar string will be printed instead. --- src/game/g_admin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/g_admin.c b/src/game/g_admin.c index e001bc2..b35971e 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -6111,7 +6111,8 @@ qboolean G_admin_register(gentity_t *ent, int skiparg ){ if( !Q_stricmp( ent->client->pers.guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) ) { - ADMP( va( "^3!register: ^7 You cannot register for name protection until you update your client. Please replace your client executable with the one at http://trem.tjw.org/backport/ and reconnect. Updating your client will also allow you to have faster map downloads.\n" ) ); + trap_SendServerCommand( ent->client->ps.clientNum, va( + "print \"%s\n\"", g_outdatedClientMessage.string ) ); return qfalse; } -- cgit