small hint from obus for a "better code"
This commit is contained in:
parent
25c0d8d49c
commit
f961e7ff0e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user