Hello, the AFK Command:
The Problem: The Message * " + Session.GetHabbo().Username + " is away! Reason: " + Params[1] + " * should all 60 Seconds be repeated.
Can u help me? PS: How shoult i do the ;back command?
Code:
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.Communication.Packets.Outgoing.Rooms.Avatar;
using Plus.HabboHotel.Rooms;
using Plus.HabboHotel.Items;
using Plus.Communication.Packets.Outgoing.Rooms.Chat;
using Plus.Communication.Packets.Outgoing.Inventory.Furni;
using Plus.Database.Interfaces;
namespace Plus.HabboHotel.Rooms.Chat.Commands.User
{
class AfkCommand : IChatCommand
{
public string PermissionRequired
{
get { return "command_afk"; }
}
public string Parameters
{
get { return "%grund%"; }
}
public string Description
{
get { return "Go away!"; }
}
public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
{
RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
User.IsAsleep = true;
Room.SendMessage(new SleepComposer(User, true));
Session.GetHabbo().Effects().ApplyEffect(503);
Room.SendMessage(new ChatComposer(User.VirtualId, "* " + Session.GetHabbo().Username + " is away! Reason: " + Params[1] + " * ", 1, User.LastBubble));
}
}
}
The Problem: The Message * " + Session.GetHabbo().Username + " is away! Reason: " + Params[1] + " * should all 60 Seconds be repeated.
Can u help me? PS: How shoult i do the ;back command?