using System; using System.Collections.Generic; using System.Text; using GTANetworkAPI; namespace gtavrp.Commands { class PlayerCommands : Script { //~o~ stands for orange ~w~ stands for white //Below that is the description [Command("me", "~o~Usage: ~w~ /me [action]", GreedyArg = true)] public void CMD_Me(Player player, string action) { //This removes the extra spaces inside the chat action = action.Trim(); List nearbyPlayers = NAPI.Player.GetPlayersInRadiusOfPlayer(20, player); foreach (Player item in nearbyPlayers) { item.SendChatMessage($"~p~{player.Name} {action}"); } } } }