This commit is contained in:
hydrant
2019-09-09 18:29:12 +02:00
parent b6f3238c63
commit d56dbecbab

View File

@@ -2906,8 +2906,8 @@ namespace ReallifeGamemode.Server.Commands
}
}
[Command("blind", "~m~Benutzung: ~s~/blind")]
public void CmdBlind(Client player, String name, int mode)
[Command("blind", "~m~Benutzung: ~s~/blind [Name / ID] [Mode]")]
public void CmdBlind(Client player, string name, int mode)
{
if (!player.IsLoggedIn()) return;
@@ -2921,7 +2921,8 @@ namespace ReallifeGamemode.Server.Commands
if (mode == 1)
{
target.TriggerEvent("toggleBlackScreen", true);
} else if (mode == 0)
}
else if (mode == 0)
{
target.TriggerEvent("toggleBlackScreen", false);
}