From f961e7ff0eb4503272a7280d69774217d454532a Mon Sep 17 00:00:00 2001 From: DoganGFL Date: Wed, 21 Nov 2018 18:47:29 +0100 Subject: [PATCH] small hint from obus for a "better code" --- VIPMode/scripting/VIPMode.sp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/VIPMode/scripting/VIPMode.sp b/VIPMode/scripting/VIPMode.sp index a8092ec8..5b106ebc 100644 --- a/VIPMode/scripting/VIPMode.sp +++ b/VIPMode/scripting/VIPMode.sp @@ -34,13 +34,12 @@ public Action WhoIsVIP(int client, int args) if (g_iVIPClient == -1) { CReplyToCommand(client, "{purple}VIP Mode:{red} There currently is no VIP!"); - return Plugin_Handled; } else { CReplyToCommand(client, "{purple}VIP Mode:{red} %N is the current VIP! Protect him.", g_iVIPClient); - return Plugin_Handled; } + return Plugin_Handled; } public void ZR_OnClientInfected(int client, int attacker, bool motherInfect, bool respawnOverride, bool respawn) @@ -105,7 +104,6 @@ public Action PerformAdminVIPSelection(int client, int args) if(g_iVIPClient == -1) { CReplyToCommand(client, "{purple}VIP Mode:{red} You can't choose a VIP yet."); - return Plugin_Handled; } else @@ -128,8 +126,8 @@ public Action PerformAdminVIPSelection(int client, int args) CPrintToChatAll("{purple}VIP Mode:{red} %N is the new VIP! Protect him.", g_iVIPClient); CReplyToCommand(client, "{purple}VIP Mode:{red} You have randomly chosen another VIP."); - return Plugin_Handled; } + return Plugin_Handled; } public Action OnPlayerDeath(Event event, const char[] name, bool dontBroadcast)