more
This commit is contained in:
@@ -363,34 +363,20 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int timer = int.Parse(timer_string);
|
if (timer_string == "clear")
|
||||||
|
|
||||||
foreach (Client c in NAPI.Pools.GetAllPlayers())
|
|
||||||
{
|
|
||||||
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())
|
foreach (Client c in NAPI.Pools.GetAllPlayers())
|
||||||
{
|
{
|
||||||
c.TriggerEvent("countdown", 0, "ich liebe balbo");
|
c.TriggerEvent("countdown", 0, "ich liebe balbo");
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int timer = int.Parse(text);
|
int timer = int.Parse(timer_string);
|
||||||
|
|
||||||
foreach (Client c in NAPI.Pools.GetAllPlayers())
|
foreach (Client c in NAPI.Pools.GetAllPlayers())
|
||||||
{
|
{
|
||||||
c.TriggerEvent("countdown", timer, "");
|
c.TriggerEvent("countdown", timer, text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user