diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-07-06 22:58:11 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-07-07 00:14:53 +0200 |
commit | 3c7d82c31bbed35af3f6c3ced53fe95e308934b9 (patch) | |
tree | 46f5a9a00a5e027d160db96b8bb7b7bbed561ddd /src/game/g_admin.c | |
parent | 357ec9764e523ddf2084a9f014922a3d10e22a25 (diff) |
Altair, GTFO!altairGtfo
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r-- | src/game/g_admin.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |