player.SendChatMessage -> ChatService.SendMessage

This commit is contained in:
hydrant
2019-05-23 11:44:36 +02:00
parent 993f9972cd
commit ffafe085f9
12 changed files with 147 additions and 144 deletions

View File

@@ -1,4 +1,5 @@
using GTANetworkAPI;
using ReallifeGamemode.Server.Services;
using System.Text.RegularExpressions;
namespace ReallifeGamemode.Server.Events
@@ -12,7 +13,7 @@ namespace ReallifeGamemode.Server.Events
if (serverMsg.Trim().Length == 0) return;
NAPI.Player.GetPlayersInRadiusOfPlayer(10, player).ForEach(p =>
{
p.SendChatMessage($"{player.Name} sagt: {serverMsg}");
ChatService.SendMessage(p, $"{player.Name} sagt: {serverMsg}");
});
}
}