forked from UNLOZE/sm-plugins
Merge remote-tracking branch 'unloze/master'
and fix like everything
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
|
||||
@@ -816,7 +826,7 @@ public int LeaderMenu_Handler(Handle menu, MenuAction action, int client, int po
|
||||
}
|
||||
else if(action == MenuAction_End)
|
||||
{
|
||||
CloseHandle(menu);
|
||||
delete menu;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -912,7 +922,7 @@ public int SpriteMenu_Handler(Handle menu, MenuAction action, int client, int po
|
||||
}
|
||||
else if(action == MenuAction_End)
|
||||
{
|
||||
CloseHandle(menu);
|
||||
delete menu;
|
||||
}
|
||||
else if (action == MenuAction_Cancel && position == MenuCancel_ExitBack)
|
||||
{
|
||||
@@ -989,7 +999,7 @@ public int MarkerMenu_Handler(Handle menu, MenuAction action, int client, int po
|
||||
}
|
||||
else if(action == MenuAction_End)
|
||||
{
|
||||
CloseHandle(menu);
|
||||
delete menu;
|
||||
}
|
||||
else if (action == MenuAction_Cancel && position == MenuCancel_ExitBack)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user