:makesay

hosteventsguy

New Member
Mar 29, 2019
2
0
theres a command called :makesay that would actually allow us to force someone say that 'speech'

but is there any commands that would allow the whole room to say it, instead of just a single individual?

ps. just curious what does :exe do?
 

JayC

Always Learning
Aug 8, 2013
5,504
1,401
You could make a command like :roomsay and just do the same thing as makesay but don't require a username and loop through each roomuser in the room (look at room alert for the example)
 

Meap

Don't need glasses if you C#
Nov 7, 2010
1,045
296
I got bored so here @hosteventsguy
C#:
namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator
{
    class RoomSayCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_roomsay"; }
        }

        public string Parameters
        {
            get { return "%message%"; }
        }

        public string Description
        {
            get { return "Force all users to say a predefined message"; }
        }

        public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
        {
            if (Params.Length == 1)
            {
                Session.SendWhisper("Please enter a message you'd like all users to say", 1);
                return;
            }

            string Message = CommandManager.MergeParams(Params, 1);

            foreach (RoomUser RoomUser in Room.GetRoomUserManager().GetRoomUsers())
            {
                if (RoomUser == null || RoomUser.GetClient() == null)
                    continue;

                RoomUser.OnChat(RoomUser.LastBubble, Message, true);
            }
        }
    }
}
 

Users who are viewing this thread

Top