Base EventAlert popup on EmuPlus
http://i.imgur.com/lfc8RXs.png
need to do like this
http://i.imgur.com/OEFZNcv.png
Help me:*:
Printable View
Base EventAlert popup on EmuPlus
http://i.imgur.com/lfc8RXs.png
need to do like this
http://i.imgur.com/OEFZNcv.png
Help me:*:
Send me a pm, is so really easyhttp://i.imgur.com/AHU3dVV.png
It's not in English cause I'm french so...
Code:using Plus.Communication.Packets.Outgoing.Rooms.Notifications;using Plus.HabboHotel.GameClients;
namespace Plus.HabboHotel.Rooms.Chat.Commands.Events
{
internal class EventAlertCommand : IChatCommand
{
public string PermissionRequired
{
get
{
return "command_event_alert";
}
}
public string Parameters
{
get
{
return "%message%";
}
}
public string Description
{
get
{
return "Alerte pour évènement avec bouton";
}
}
public void Execute(GameClient Session, Room Room, string[] Params)
{
if (Session != null)
{
if (Room != null)
{
if (Params.Length == 1)
{
Session.SendWhisper("Veuillez renseigner un message.");
return;
}
else
{
string Message = CommandManager.MergeParams(Params, 1);
PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("Message des staffs!",
"<b>" + Session.GetHabbo().Username +
"</b> t'invites à participer à son évènement, plus d'infos :<br />
<b>" + Message + "</b> <br>",
"events", "Je veux m'y rendre !", "event:navigator/goto/" + Session.GetHabbo().CurrentRoomId));
}
}
}
}
}
}