Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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<Player> nearbyPlayers = NAPI.Player.GetPlayersInRadiusOfPlayer(20, player);
- foreach (Player item in nearbyPlayers)
- {
- item.SendChatMessage($"~p~{player.Name} {action}");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement