testen ob blips auf map so gehen

This commit is contained in:
michael.reiswich
2021-03-26 18:34:01 +01:00
parent 11a015374c
commit c5e6a80ed2
3 changed files with 25 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ export default function playerBlips() {
entity.setBlipColor(isNaN(color) ? 0 : color);
mp.game.invoke(Natives.SET_BLIP_CATEGORY, entity.blip, 7);
mp.game.invoke(Natives.SHOW_HEADING_INDICATOR_ON_BLIP, entity.blip, true);
mp.game.invoke(Natives.SET_BLIP_AS_SHORT_RANGE, entity.blip, true);
//mp.game.invoke(Natives.SET_BLIP_AS_SHORT_RANGE, entity.blip, true);
mp.game.invoke(Natives.SET_BLIP_DISPLAY, entity.blip, 8);
}
});

View File

@@ -474,7 +474,18 @@ namespace ReallifeGamemode.Server.Commands
}
#endregion Staatsfraktionen (LSPD / FBI) Commands
#region Weazel News
[Command("eventchat", "~m~Benutzung: ~s~/eventchat [Typ = ~g~on~s~, ~g~off~s~", GreedyArg = true)]
public void CmdFactionNREventchat(Player player, string onoff)
{
List<Player> players = NAPI.Pools.GetAllPlayers();
}
#endregion Weazel News
}
}

View File

@@ -87,6 +87,18 @@ namespace ReallifeGamemode.Server.Commands
{
player.PlayAnimation("mp_am_hold_up", "handsup_base", (int)(AnimationFlags.Loop | AnimationFlags.OnlyAnimateUpperBody | AnimationFlags.AllowPlayerControl | AnimationFlags.Cancellable));
}
[Command("event", "~m~Benutzung: ~s~/eventchat [Nachricht]", GreedyArg = true)]
public void CmdFactionNREventchat(Player player, string msg)
{
if (player.HasData("eventAllowed") == false)
{
ChatService.NotAuthorized(player);
return;
}
ChatService.BroadcastFaction(msg, new List<int>() { 9 }) ;
}
}
}