Leader2: first 2 fixes

This commit is contained in:
Dogan 2019-09-01 20:27:18 +02:00
parent 37eb0e301b
commit fb418d1e8b

View File

@ -370,7 +370,7 @@ public Action OnToggleForceLeader(int client, int args)
{
if(leaderClient == -1)
{
ReplyToCommand(client, "[SM] Cannot use this when there is no leader at the moment");
ReplyToCommand(client, "[SM] Cannot use this when there is no leader at the moment.");
return Plugin_Handled;
}
@ -403,7 +403,7 @@ public void ToggleForceLeader(int client)
public Action CheckLeaderVoice(Handle timer)
{
if(!g_bForceLeader)
if(!g_bForceLeader || leaderClient == -1)
return Plugin_Continue;
if(IsClientTalking(leaderClient))