Merge branch 'develop' of ssh://development.life-of-german.org:451/log-gtav/reallife-gamemode into develop
This commit is contained in:
@@ -370,6 +370,29 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
c.TriggerEvent("countdown", timer, text);
|
c.TriggerEvent("countdown", timer, text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public void CmdCountdown(Client player, string text)
|
||||||
|
{
|
||||||
|
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
|
||||||
|
{
|
||||||
|
ChatService.NotAuthorized(player);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (text == "clear")
|
||||||
|
{
|
||||||
|
foreach (Client c in NAPI.Pools.GetAllPlayers())
|
||||||
|
{
|
||||||
|
c.TriggerEvent("countdown", 0, "ich liebe balbo");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int timer = int.Parse(text);
|
||||||
|
|
||||||
|
foreach (Client c in NAPI.Pools.GetAllPlayers())
|
||||||
|
{
|
||||||
|
c.TriggerEvent("countdown", timer, "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[Command("aunjail", "~m~Benutzung: ~s~/aunjail [Spieler]", GreedyArg = true)]
|
[Command("aunjail", "~m~Benutzung: ~s~/aunjail [Spieler]", GreedyArg = true)]
|
||||||
public void CmdAdminAunjai(Client player, string targetname)
|
public void CmdAdminAunjai(Client player, string targetname)
|
||||||
|
|||||||
Reference in New Issue
Block a user