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

@@ -30,7 +30,7 @@ export default function customNametags() {
mp.game.graphics.drawText(player.name + " (" + player.remoteId + ")", [x, y],
{
font: 4,
color: [0, 95, 176, 255], //Grove //Ballas 171 0 207 //PD 0 173 255 //FIB 0 0 170 LSED 147 0 0 NR 0 166 133 Trucker 255 162 Support 0 255 255 Zivilist 255 255 255
color: [0, 95, 176, 255], //Grove //Ballas 171 0 207 //PD 0 95 190 //FIB 0 0 170 LSED 147 0 0 NR 0 166 133 Trucker 255 162 Support 0 255 255 Zivilist 255 255 255
scale: [0.4, 0.4],
outline: true,
centre: false

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;
}
}

View File

@@ -253,7 +253,7 @@ namespace ReallifeGamemode.Server.Wanted
dbContext.SaveChanges();
}
player.Health = 100;
player.Position = new Vector3(461.7256, -988.6035, 24.91487);
player.Position = new Vector3(427.879, -984.65, 30.71);
ChatService.HQMessage("!{#8181E9}HQ: Beamter " + cop.Name + " hat " + user.Name + " aus dem Knast entlassen.");
ChatService.SendMessage(player, "!{#8181E9}Der Beamte " + cop.Name + " hat dich aus dem Knast entlassen");