leader2 + ZombieManager + Status: fix

This commit is contained in:
DoganGFL
2019-07-24 10:10:38 +02:00
parent 326428915a
commit 2d53504807
3 changed files with 56 additions and 32 deletions
+24 -14
View File
@@ -495,18 +495,23 @@ public Action Leader(int client, int args)
}
else
{
if(IsPlayerAlive(target))
if(!IsPlayerAlive(target))
{
ReplyToCommand(client, "[SM] The target has to be alive!");
return Plugin_Handled;
}
else if(ZR_IsClientZombie(target))
{
ReplyToCommand(client, "[SM] The target has to be a human!");
return Plugin_Handled;
}
else
{
SetLeader(target);
PrintToChatAll("[SM] %N is the new leader!", target);
PrintToChat(target, "[SM] You are now the leader! Type !leader to open up the leader menu.");
LeaderMenu(target);
return Plugin_Handled;
}
else
{
ReplyToCommand(client, "[SM] The target has to be alive!");
return Plugin_Handled;
return Plugin_Handled;
}
}
}
@@ -517,18 +522,23 @@ public Action Leader(int client, int args)
LeaderMenu(client);
return Plugin_Handled;
}
if(IsPlayerAlive(client))
if(!IsPlayerAlive(client))
{
ReplyToCommand(client, "[SM] The target has to be alive!");
return Plugin_Handled;
}
else if(ZR_IsClientZombie(client))
{
ReplyToCommand(client, "[SM] The target has to be a human!");
return Plugin_Handled;
}
else
{
SetLeader(client);
PrintToChatAll("[SM] %N is the new leader!", client);
PrintToChat(client, "[SM] You are now the leader! Type !leader to open up the leader menu.");
LeaderMenu(client);
return Plugin_Handled;
}
else
{
ReplyToCommand(client, "[SM] The target has to be alive!");
return Plugin_Handled;
return Plugin_Handled;
}
}
else