add eventchat & new positon for unjail

This commit is contained in:
michael.reiswich
2021-03-31 15:35:45 +02:00
parent 85a080bf92
commit 2254445e78
3 changed files with 19 additions and 3 deletions

View File

@@ -479,9 +479,25 @@ namespace ReallifeGamemode.Server.Commands
public void CmdFactionNREventchat(Player player, string onoff)
{
List<Player> players = NAPI.Pools.GetAllPlayers();
switch (onoff.ToLower())
{
case "on":
NAPI.Pools.GetAllPlayers().ForEach(p =>
{
p.SetData("eventAllowed", true);
});
break;
case "off":
NAPI.Pools.GetAllPlayers().ForEach(p =>
{
p.SetData("eventAllowed", false);
});
break;
}
}