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.

This commit is contained in:
Richard Helgeby 2009-12-26 20:13:24 +01:00
parent 9f80847221
commit 614048ad69
2 changed files with 2 additions and 9 deletions

View File

@ -418,7 +418,7 @@ public Action:DamageSuicideIntercept(client, argc)
} }
// Tell client their command has been intercepted. // Tell client their command has been intercepted.
TranslationReplyToCommand(client, "Damage suicide intercept"); TranslationPrintToChat(client, "Damage suicide intercept");
// Log suicide interception // Log suicide interception
LogEvent(false, LogType_Normal, LOG_GAME_EVENTS, LogModule_Damage, "Suicide Intercept", "Player \"%L\" attempted suicide.", client); LogEvent(false, LogType_Normal, LOG_GAME_EVENTS, LogModule_Damage, "Suicide Intercept", "Player \"%L\" attempted suicide.", client);

View File

@ -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 client is console, then stop and tell them this feature is for players only.
if (ZRIsConsole(client)) if (ZRIsConsole(client))
{ {
TranslationReplyToCommand(client, "Must be player"); TranslationPrintToChat(client, "Must be player");
return Plugin_Handled;
}
// Check if class selection is allowed.
if (!ClassAllowSelection(client))
{
TranslationReplyToCommand(client, "Classes Selection Not Allowed");
return Plugin_Handled; return Plugin_Handled;
} }