[PlusEMU] Roomalert, Override, and Fly command add-on!

Jerry

not rly active lol
Jul 8, 2013
1,957
522
Hello Devbest, I've currently was editing the emulator source I decided to code a few commands;
  • Override
  • Roomalert
  • Fly
Fly;
Code:
                #region Fly (:fly)
                case "fly":
                    {
                        if (Session.GetHabbo().HasCmd("fly"))
                        {
                            Room currentRoom = Session.GetHabbo().CurrentRoom;
                            RoomUser roomUserByHabbo = null;
                            currentRoom = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                            if (currentRoom != null)
                            {
                                roomUserByHabbo = currentRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
                                if (roomUserByHabbo != null)
                                {
                                    roomUserByHabbo.isFlying = true;
                                   
                                }
                            }
                        }
                      return true;
                    }
                #endregion
Override;
Code:
                #region Override (:override)
                case "override":
                    {
                        if (Session.GetHabbo().HasCmd("override"))
                        {
                            Room currentRoom = Session.GetHabbo().CurrentRoom;
                            RoomUser roomUserByHabbo = null;
                            currentRoom = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                            if (currentRoom != null)
                            {
                                roomUserByHabbo = currentRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
                                if (roomUserByHabbo != null)
                                {
                                    if (roomUserByHabbo.AllowOverride)
                                    {
                                        roomUserByHabbo.AllowOverride = false;
                                        SendChatMessage(Session, "Override has been disabled!");
                                    }
                                    else
                                    {
                                        roomUserByHabbo.AllowOverride = true;
                                        SendChatMessage(Session, "Override has been enabled!");
                                    }
                                    currentRoom.GetGameMap().GenerateMaps(true);
                                }
                            }
                           
                        }
                      return true;
                    }
                #endregion
Roomalert;
Code:
                #region Roomalert (:roomalert)
                case "roomalert":
                    {
                        if (Session.GetHabbo().HasCmd("roomalert"))
                        {
            Room currentRoom = Session.GetHabbo().CurrentRoom;
            currentRoom = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
            if (currentRoom != null)
            {
                string s = MergeParams(Params, 1);
                ServerMessage message = new ServerMessage();
                message.Init(Outgoing.SendNotif);
                message.AppendString(s);
                message.AppendString("");
                SilverwaveEnvironment.GetGame().GetModerationTool().LogStaffEntry(Session.GetHabbo().Username, string.Empty, "Alert", "Room alert with message [" + s + "]");
                currentRoom.QueueRoomMessage(message);
            }
          }
        }
        return true;
                #endregion
Screenshots;
hegOnnv.png

o0GxAps.png

yUgshh5.png


I did NOT code all this.. I just got the code from another emu and fixed up the code! Goodluck everyone. Like? :up:
Credits;
95% - Codes from another emulator.
5% - JerryCool fixing up codes.
 

JayC

Well-Known Member
Aug 8, 2013
5,505
1,401
Good release jerry always looking for the cool add ons just wondering what does fly do lol
 

Whip

- FiveM Server Developer -
Nov 6, 2013
408
46
Jay fly puts u on the like the top of the wall height and it's looks stupid XD just makes ur user float around
 

Jerry

not rly active lol
Jul 8, 2013
1,957
522
Good release jerry always looking for the cool add ons just wondering what does fly do lol
Thanks.
Jay fly puts u on the like the top of the wall height and it's looks stupid XD just makes ur user float around
Trying to fix a code in another file to make you actually fly, lol.
Also, I just realized I posted this thread in the wrong section, lol.
 

Users who are viewing this thread

Top