Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
:makesay
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Meap" data-source="post: 447300" data-attributes="member: 1553"><p>I got bored so here [USER=85327]@hosteventsguy[/USER] </p><p>[CODE=csharp]namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator</p><p>{</p><p> class RoomSayCommand : IChatCommand</p><p> {</p><p> public string PermissionRequired</p><p> {</p><p> get { return "command_roomsay"; }</p><p> }</p><p></p><p> public string Parameters</p><p> {</p><p> get { return "%message%"; }</p><p> }</p><p></p><p> public string Description</p><p> {</p><p> get { return "Force all users to say a predefined message"; }</p><p> }</p><p></p><p> public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)</p><p> {</p><p> if (Params.Length == 1)</p><p> {</p><p> Session.SendWhisper("Please enter a message you'd like all users to say", 1);</p><p> return;</p><p> }</p><p></p><p> string Message = CommandManager.MergeParams(Params, 1);</p><p></p><p> foreach (RoomUser RoomUser in Room.GetRoomUserManager().GetRoomUsers())</p><p> {</p><p> if (RoomUser == null || RoomUser.GetClient() == null)</p><p> continue;</p><p></p><p> RoomUser.OnChat(RoomUser.LastBubble, Message, true);</p><p> }</p><p> }</p><p> }</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Meap, post: 447300, member: 1553"] I got bored so here [USER=85327]@hosteventsguy[/USER] [CODE=csharp]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); } } } } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
:makesay
Top