Ejemplo n.º 1
0
        public async Task Support_CMD(User player, params string[] args)
        {
            var playerpool = Alt.GetAllPlayers();

            var dbChar      = Utils.Utils.GetDatabaseCharacter(player);
            var supportText = $"{dbChar.firstName} {dbChar.lastName} ({dbChar.playerId}) ";

            foreach (var t in args)
            {
                supportText += $"{t} ";
            }

            foreach (var x  in playerpool)
            {
                var tempPlayer = x as User;
                if (tempPlayer.adminLevel >= 1)
                {
                    await NotifyHandler.SendSupportMessage(tempPlayer, supportText, 30000);
                }
            }
        }