[HELP] Staff Alert command

Leeroy

playsky.pw
Oct 24, 2015
28
10
You must be registered for see images attach


I want a staff alert that appears in a chat bubble, something like this
You must be registered for see images attach


Can anyone help?
 

Pinkman

Posting Freak
Jul 27, 2016
818
194
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;
        }
    }
}
 

Users who are viewing this thread

Top