From 614048ad69df746e078416398204f05f1be0781e Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Sat, 26 Dec 2009 20:13:24 +0100 Subject: [PATCH] Removed redundant check for class menu command. Fixed suicide intercept message not displayed in chat. Text from chat will still appear in console if written from console. --- src/zr/damage.inc | 2 +- src/zr/playerclasses/classcommands.inc | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/zr/damage.inc b/src/zr/damage.inc index 6d7d194..e264db9 100644 --- a/src/zr/damage.inc +++ b/src/zr/damage.inc @@ -418,7 +418,7 @@ public Action:DamageSuicideIntercept(client, argc) } // Tell client their command has been intercepted. - TranslationReplyToCommand(client, "Damage suicide intercept"); + TranslationPrintToChat(client, "Damage suicide intercept"); // Log suicide interception LogEvent(false, LogType_Normal, LOG_GAME_EVENTS, LogModule_Damage, "Suicide Intercept", "Player \"%L\" attempted suicide.", client); diff --git a/src/zr/playerclasses/classcommands.inc b/src/zr/playerclasses/classcommands.inc index 5ad6a87..353b825 100644 --- a/src/zr/playerclasses/classcommands.inc +++ b/src/zr/playerclasses/classcommands.inc @@ -59,14 +59,7 @@ public Action:ZClassCommand(client, argc) // If client is console, then stop and tell them this feature is for players only. if (ZRIsConsole(client)) { - TranslationReplyToCommand(client, "Must be player"); - return Plugin_Handled; - } - - // Check if class selection is allowed. - if (!ClassAllowSelection(client)) - { - TranslationReplyToCommand(client, "Classes Selection Not Allowed"); + TranslationPrintToChat(client, "Must be player"); return Plugin_Handled; }