Mute does not end!

jadexxz

Member
May 23, 2020
34
1
Hello guys, I muted my second account for 2 seconds with ":mute x 2 Test", when he types it says that you muted for 2 seconds but the 2 seconds is not ending. To stop the mute I should type ":unmute x Test", or the mute is not going. The mute is not ending, how can I solve it?
 

Joe

Well-Known Member
Jun 10, 2012
4,090
1,918
Hello guys, I muted my second account for 2 seconds with ":mute x 2 Test", when he types it says that you muted for 2 seconds but the 2 seconds is not ending. To stop the mute I should type ":unmute x Test", or the mute is not going. The mute is not ending, how can I solve it?
This was a very common issue with packets I think in PlusEMU. Try :smute
 

jadexxz

Member
May 23, 2020
34
1
What emulator are you using?
Slopt Emulator, do you want the MuteCommand.cs?
Post automatically merged:

Slopt Emulator, do you want the MuteCommand.cs?
Code:
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Slopt.Database.Interfaces;
using Slopt.Utilities;
using Slopt.HabboHotel.Users;
using Slopt.HabboHotel.GameClients;



namespace Slopt.HabboHotel.Rooms.Chat.Commands.Moderator
{
    class MuteCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_mute"; }
        }

        public string Parameters
        {
            get { return "%username% %time%"; }
        }

        public string Description
        {
            get { return "Mutea a un usuario por cierto tiempo"; }
        }

        public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
        {
            if (Params.Length == 1)
            {
                Session.SendWhisper("Introduce el nombre del usuario a mutear y el tiempo expresado en Segundos (Maximo 600).");
                return;
            }

            Habbo Habbo = SloptEnvironment.GetHabboByUsername(Params[1]);
            if (Habbo == null)
            {
                Session.SendWhisper("Ocurrio un error mientras se buscaba al usuario en la base de datos.");
                return;
            }

            if (Habbo.GetPermissions().HasRight("mod_tool") && !Session.GetHabbo().GetPermissions().HasRight("mod_mute_any"))
            {
                Session.SendWhisper("Oops, al parecer no se puede mutear a este usuario.");
                return;
            }

            double Time;
            if (double.TryParse(Params[2], out Time))
            {
                if (Time > 600 && !Session.GetHabbo().GetPermissions().HasRight("mod_mute_limit_override"))
                    Time = 600;

                using (IQueryAdapter dbClient = SloptEnvironment.GetDatabaseManager().GetQueryReactor())
                {
                    dbClient.RunQuery("UPDATE `users` SET `time_muted` = '" + Time + "' WHERE `id` = '" + Habbo.Id + "' LIMIT 1");
                }

                if (Habbo.GetClient() != null)
                {
                    Habbo.TimeMuted = Time;
                    Habbo.GetClient().SendNotification("Usted ha sido muteado " + Time + " segundos!");
                }

                Session.SendWhisper("Muteaste a  " + Habbo.Username + " por " + Time + " segundos.");
            }
            else
                Session.SendWhisper("Por favor introduce numeros enteros.");
        }
    }
}
 

Users who are viewing this thread

Top