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:
parent
9f80847221
commit
614048ad69
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user