hup chat message
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using GTANetworkAPI;
|
||||
using ReallifeGamemode.Database.Entities;
|
||||
@@ -115,6 +116,17 @@ namespace ReallifeGamemode.Server.Services
|
||||
});
|
||||
}
|
||||
|
||||
internal static void SendInRange(Vector3 position, int range, string message)
|
||||
{
|
||||
foreach(Player player in NAPI.Pools.GetAllPlayers())
|
||||
{
|
||||
if(player.Position.DistanceTo(position) <= range)
|
||||
{
|
||||
SendMessage(player, message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void BroadcastGroup(string message, Group group)
|
||||
{
|
||||
message = $"!{{FF8080}}** Gruppe: {message}";
|
||||
|
||||
Reference in New Issue
Block a user