add eventchat & new positon for unjail
This commit is contained in:
@@ -30,7 +30,7 @@ export default function customNametags() {
|
|||||||
mp.game.graphics.drawText(player.name + " (" + player.remoteId + ")", [x, y],
|
mp.game.graphics.drawText(player.name + " (" + player.remoteId + ")", [x, y],
|
||||||
{
|
{
|
||||||
font: 4,
|
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],
|
scale: [0.4, 0.4],
|
||||||
outline: true,
|
outline: true,
|
||||||
centre: false
|
centre: false
|
||||||
|
|||||||
@@ -479,7 +479,23 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
public void CmdFactionNREventchat(Player player, string onoff)
|
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;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ namespace ReallifeGamemode.Server.Wanted
|
|||||||
dbContext.SaveChanges();
|
dbContext.SaveChanges();
|
||||||
}
|
}
|
||||||
player.Health = 100;
|
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.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");
|
ChatService.SendMessage(player, "!{#8181E9}Der Beamte " + cop.Name + " hat dich aus dem Knast entlassen");
|
||||||
|
|||||||
Reference in New Issue
Block a user