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
[HELP] Staff Alert 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="Pinkman" data-source="post: 416589" data-attributes="member: 70090"><p>Replace your command with this</p><p>[CODE]using System;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using System.Collections.Generic;</p><p>using Plus.HabboHotel.GameClients;</p><p>using Plus.Communication.Packets.Outgoing.Moderation;</p><p></p><p>namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator</p><p>{</p><p> class StaffAlertCommand : IChatCommand</p><p> {</p><p> public string PermissionRequired</p><p> {</p><p> get { return "command_staff_alert"; }</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 "Sends a message typed by you to the current online staff members."; }</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 to send.");</p><p> return;</p><p> }</p><p></p><p> string Message = CommandManager.MergeParams(Params, </p><p> foreach (GameClient client in PlusEnvironment.GetGame().GetClientManager().GetClients.ToList())</p><p> {</p><p> if (client != null)</p><p> {</p><p> if (client.GetHabbo().Rank > 3)</p><p> {</p><p> client.SendWhisper("[Staff Alert From: " + Session.GetHabbo().Username + "]" + Message, 34);</p><p> }</p><p> }</p><p> }</p><p> return;</p><p> }</p><p> }</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Pinkman, post: 416589, member: 70090"] Replace your command with this [CODE]using System; using System.Linq; using System.Text; using System.Collections.Generic; using Plus.HabboHotel.GameClients; using Plus.Communication.Packets.Outgoing.Moderation; namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator { class StaffAlertCommand : IChatCommand { public string PermissionRequired { get { return "command_staff_alert"; } } public string Parameters { get { return "%message%"; } } public string Description { get { return "Sends a message typed by you to the current online staff members."; } } public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params) { if (Params.Length == 1) { Session.SendWhisper("Please enter a message to send."); return; } string Message = CommandManager.MergeParams(Params, foreach (GameClient client in PlusEnvironment.GetGame().GetClientManager().GetClients.ToList()) { if (client != null) { if (client.GetHabbo().Rank > 3) { client.SendWhisper("[Staff Alert From: " + Session.GetHabbo().Username + "]" + Message, 34); } } } return; } } } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[HELP] Staff Alert command
Top