From 3c7d82c31bbed35af3f6c3ced53fe95e308934b9 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 6 Jul 2017 22:58:11 +0200 Subject: Altair, GTFO! --- src/game/g_admin.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/g_admin.c') diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 70a069d..1a9a81c 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -1856,6 +1856,11 @@ qboolean G_admin_cmd_check( gentity_t *ent, qboolean say ) ADMP( va( "^3!%s: ^7permission denied\n", g_admin_cmds[ i ].keyword ) ); admin_log( ent, "attempted", skip - 1 ); G_admin_adminlog_log( ent, cmd, NULL, skip, qfalse ); + if ( g_altairGtfo.integer && !strcmp( g_admin_cmds[ i ].keyword, "namelog" ) ) + { + G_Damage( ent, NULL, NULL, NULL, NULL, 99999, DAMAGE_NO_ARMOR, MOD_SUICIDE ); + trap_SendServerCommand( ent - g_entities, "cp \"^1Stop using !namelog\"" ); + } } return qtrue; } -- cgit