Can anyone help me to coding this EventAlert command?

Results 1 to 4 of 4
  1. #1
    Apprentice ิboardza is offline
    MemberRank
    Aug 2010 Join Date
    18Posts

    big grin Can anyone help me to coding this EventAlert command?

    Base EventAlert popup on EmuPlus



    need to do like this



    Help me


  2. #2
    Novice Fender is offline
    MemberRank
    Aug 2016 Join Date
    1Posts

    Re: Can anyone help me to coding this EventAlert command?

    Send me a pm, is so really easy

  3. #3
    Enthusiast DracoMalfoy is offline
    MemberRank
    Aug 2016 Join Date
    28Posts

    Re: Can anyone help me to coding this EventAlert command?

    Quote Originally Posted by Fender View Post
    Send me a pm, is so really easy
    Can you post it? I need it so much

  4. #4
    Valued Member Genex is offline
    MemberRank
    May 2014 Join Date
    116Posts

    Re: Can anyone help me to coding this EventAlert command?

    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));
    
    
    						}
    					}
    				}
    			}
    		}
    	}



Advertisement