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 Releases
PlusEmu - Sayall & Eha command
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="Yaad" data-source="post: 271277" data-attributes="member: 42579"><p>I've always found those commands useful, so I decided to share it with you guys.</p><p></p><p>eha;</p><p>[CODE]#region Events Hotel Alert (:eha)</p><p>case "eha":</p><p>if (Session.GetHabbo().HasCmd("eha"))</p><p>{</p><p>string Notice = MergeParams(Params, 1);</p><p></p><p></p><p>ServerMessage HotelAlert = new ServerMessage(Outgoing.BroadcastMessage);</p><p>HotelAlert.AppendString("Follow " + Session.GetHabbo().Username + " to take part in an official Bam Event! Win prizes! \r\n- " + Session.GetHabbo().Username);</p><p></p><p></p><p>SilverwaveEnvironment.GetGame().GetClientManager().QueueBroadcaseMessage(HotelAlert);</p><p></p><p></p><p>SilverwaveEnvironment.GetGame().GetModerationTool().LogStaffEntry(Session.GetHabbo().Username, string.Empty, "HotelAlert", "Hotel alert [" + Notice + "]");</p><p>return true;</p><p>}</p><p>return true;</p><p>#endregion[/CODE]</p><p></p><p>sayall;</p><p>[CODE]#region Say All (:sayall)</p><p>case "sayall":</p><p>if (Session.GetHabbo().HasCmd("sayall"))</p><p>{</p><p>Room currentRoom2 = Session.GetHabbo().CurrentRoom;</p><p>if (currentRoom2 != null)</p><p>{</p><p>string Message3 = ChatCommandHandler.MergeParams(Params, 1);</p><p>if (Message3 != "")</p><p>{</p><p>foreach (RoomUser roomUser2 in currentRoom2.GetRoomUserManager().GetRoomUsers())</p><p>roomUser2.Chat(roomUser2.GetClient(), Message3, false, 0);</p><p>}</p><p>}</p><p>return true;</p><p>}</p><p>else</p><p>return true;</p><p>#endregion[/CODE]</p><p></p><p><img src="http://i.imgur.com/9zSN2LJ.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>The :eha command could be useful for the moderators or event staff. It dosen't let you put any messages, it gives that message automatically.</p><p></p><p>For those who don't know how to add the commands, the only thing you need to do is copy the code and add it to ChatCommandHandler.cs and change Bam to ur hotel name.</p><p></p><p>If you like it just hit the like button, If not just leave the thread and move on.</p></blockquote><p></p>
[QUOTE="Yaad, post: 271277, member: 42579"] I've always found those commands useful, so I decided to share it with you guys. eha; [CODE]#region Events Hotel Alert (:eha) case "eha": if (Session.GetHabbo().HasCmd("eha")) { string Notice = MergeParams(Params, 1); ServerMessage HotelAlert = new ServerMessage(Outgoing.BroadcastMessage); HotelAlert.AppendString("Follow " + Session.GetHabbo().Username + " to take part in an official Bam Event! Win prizes! \r\n- " + Session.GetHabbo().Username); SilverwaveEnvironment.GetGame().GetClientManager().QueueBroadcaseMessage(HotelAlert); SilverwaveEnvironment.GetGame().GetModerationTool().LogStaffEntry(Session.GetHabbo().Username, string.Empty, "HotelAlert", "Hotel alert [" + Notice + "]"); return true; } return true; #endregion[/CODE] sayall; [CODE]#region Say All (:sayall) case "sayall": if (Session.GetHabbo().HasCmd("sayall")) { Room currentRoom2 = Session.GetHabbo().CurrentRoom; if (currentRoom2 != null) { string Message3 = ChatCommandHandler.MergeParams(Params, 1); if (Message3 != "") { foreach (RoomUser roomUser2 in currentRoom2.GetRoomUserManager().GetRoomUsers()) roomUser2.Chat(roomUser2.GetClient(), Message3, false, 0); } } return true; } else return true; #endregion[/CODE] [IMG]http://i.imgur.com/9zSN2LJ.png[/IMG] The :eha command could be useful for the moderators or event staff. It dosen't let you put any messages, it gives that message automatically. For those who don't know how to add the commands, the only thing you need to do is copy the code and add it to ChatCommandHandler.cs and change Bam to ur hotel name. If you like it just hit the like button, If not just leave the thread and move on. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
PlusEmu - Sayall & Eha command
Top