leader2 + ZombieManager + Status: fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user