Jerry
not rly active lol
Hello Devbest, I've currently was editing the emulator source I decided to code a few commands;
Override;
Roomalert;
Screenshots;
I did NOT code all this.. I just got the code from another emu and fixed up the code! Goodluck everyone. Like?
Credits;
95% - Codes from another emulator.
5% - JerryCool fixing up codes.
- Override
- Roomalert
- 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
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
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
I did NOT code all this.. I just got the code from another emu and fixed up the code! Goodluck everyone. Like?
Credits;
95% - Codes from another emulator.
5% - JerryCool fixing up codes.