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;
}
}
}
Mark me as best answer xYou must be registered for see images attach
Thread can be closed.