Javasex
On Instagram str8 Flexin
- Dec 21, 2013
- 128
- 24
Notice: This is an Addon Thread and a Help Thread for Plus Emulator , AstroRP 2 and Revision 2 Plus
Notice: Will be Coding Commands on Request
Notice: Post your own addons if you'd Coded any and contribute to the Community
Without Further
interruption...
AstroRP2
HotRooms:
GPS:
Police Radio:
Superhire:
Kill:
Release:
Plus Addons Coming soon
To the Further noobs who say i can code. -Imput middle finger twards you
Notice: Will be Coding Commands on Request
Notice: Post your own addons if you'd Coded any and contribute to the Community
Without Further
interruption...
AstroRP2
HotRooms:
Code:
#region :hotrooms
case "hotrooms":
case "popularrooms":
{
using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().getQueryreactor())
{
string Rooms = "";
dbClient.setQuery("SELECT * FROM rooms WHERE users_now > 0 ORDER BY users_now DESC");
DataTable Table = dbClient.getTable();
foreach(DataRow Row in Table.Rows)
{
Rooms += " [" + Row["id"] + "]" + Row["caption"] + "Users: " + Row["users_now"] + "\r\r" ;
}
Session.SendNotifWithScroll(Rooms);
}
return true;
}
#endregion
GPS:
Code:
#region :gps
case "gps":
if (RoomID == null)
{
}
else
Session.GetHabbo().CurrentRoom;
PlusEnvironment.GetGame().GetRoomManager().GetRoom(CurrentRoomId);
Session.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "Pulls out my phone.", 0, 1));
Session.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "Searches my GPS For" + Username + "is located in" + RoomID + "", 0, 1));
{
break;
}
#endregion
Police Radio:
Code:
#region police radio
case "pr":
case "radio":
{
if (Session.GetHabbo().Working == 1 && Session.GetHabbo().CorpID == 3)
{
Habbo.SendToCorp("Police Radio: " + MergeParams(Params, 1) + " -" + Session.GetHabbo().Username,3);
}
return true;
}
#endregion
Superhire:
Code:
#region :superhire <username> <corpid> <rankid>
case "superhire":
{
Room room = Session.GetHabbo().CurrentRoom;
RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
try
{
if (Session.GetHabbo().HasCmd("superhire") == false)
{
Session.SendWhisper("You are not allowed to do this!");
}
if (Session.GetHabbo().HasCmd("superhire"))
{
List<RoomUser> users = room.GetRoomUserManager().GetRoomUsers();
foreach (RoomUser user in users)
{
if (user.GetUsername().ToLower() == Params[1].ToLower())
{
if (Plus.Messages.GameClientMessageHandler.HasAJob(user.GetClient().GetHabbo().Id) == true)
{
Session.SendWhisper("You cannot do this because this user has a job!");
return true;
}
uint JobID = Convert.ToUInt32(Params[2]);
int JobRank = Convert.ToInt32(Params[3]);
string HireName = Plus.Messages.GameClientMessageHandler.getRankName(JobID, JobRank);
if (JobID == 1)
{
Session.SendWhisper("That ID is for unemployment, you cannot do that.");
return true;
}
if (HireName == null || HireName == "" || HireName == " ")
{
Session.SendWhisper("This job does not exist.");
return true;
}
Plus.Messages.GameClientMessageHandler.HireUser(user.GetClient().GetHabbo(), JobID, JobRank);
room.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "*Admin hires " + Params[1].ToLower() + " as " + HireName + "*", 0, 0));
}
}
return true;
} Session.SendWhisper("You are not allowed to do this!");
return true;
}
catch (Exception e) { Console.WriteLine("ExceptionSUPERHIRE: " + e.ToString()); }
break;
}
#endregion
Kill:
Code:
#region :kill (staff)
case "kill":
{
//
Room room = Session.GetHabbo().CurrentRoom;
RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
if (Session.GetHabbo().HasCmd("kill"))
{
room.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "*Kills " + Params[1].ToUpper() + "*", 0, 0));
List<RoomUser> users = room.GetRoomUserManager().GetRoomUsers();
foreach (RoomUser user in users)
{
if (user.GetUsername().ToLower() == Params[1].ToLower())
{
user.GetClient().SendNotif("You have been admin killed " + Session.GetHabbo().Username);
user.GetClient().GetHabbo().Timer = 5;
user.GetClient().GetHabbo().Dead = 1;
user.GetClient().GetMessageHandler().PrepareRoomForUser(2, "");
return true;
}
}
}
else { Session.SendWhisper("You do not have permission to do this."); return true; }
return true;
}
#endregion
Release:
Code:
#region :release (staff)
case "release":
{
Room room = Session.GetHabbo().CurrentRoom;
RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
if (Session.GetHabbo().HasCmd("release"))
{
room.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "*Releases " + Params[1].ToLower() + "*", 0, 0));
List<RoomUser> users = room.GetRoomUserManager().GetRoomUsers();
foreach (RoomUser user in users)
{
if (user.GetUsername().ToLower() == Params[1].ToLower())
{
Room userroom = user.GetClient().GetHabbo().CurrentRoom;
RoomUser roomuserr = userroom.GetRoomUserManager().GetRoomUserByHabbo(user.GetClient().GetHabbo().Id);
user.GetClient().GetHabbo().Health = 100;
user.GetClient().GetHabbo().Energy = 100;
user.GetClient().GetHabbo().Timer = 0;
user.GetClient().GetHabbo().Dead = 0;
user.Frozen = false;
user.CanWalk = true;
user.GetClient().GetHabbo().Jailed = 0;
user.GetClient().GetHabbo().isDead = false;
user.GetClient().GetHabbo().isJailed = false;
user.GetClient().GetMessageHandler().GetResponse().Init(Outgoing.UpdateUserInformation);
Habbo.MottoMgr(user.GetClient().GetHabbo(), user.GetClient().GetHabbo().Motto, "", false, false);
user.GetClient().GetHabbo().Motto = user.GetClient().GetHabbo().oMotto;
user.GetClient().GetMessageHandler().GetResponse().AppendInt32(-1);
user.GetClient().GetMessageHandler().GetResponse().AppendString(user.GetClient().GetHabbo().oLook);
user.GetClient().GetMessageHandler().GetResponse().AppendString(user.GetClient().GetHabbo().Gender.ToLower());
user.GetClient().GetMessageHandler().GetResponse().AppendString(user.GetClient().GetHabbo().Motto);
user.GetClient().GetMessageHandler().GetResponse().AppendInt32(user.GetClient().GetHabbo().AchievementPoints);
user.GetClient().GetMessageHandler().SendResponse();
ServerMessage RoomUpdates = new ServerMessage(Outgoing.UpdateUserInformation);
RoomUpdates.AppendInt32(roomuser.VirtualId);
RoomUpdates.AppendString(user.GetClient().GetHabbo().oLook);
RoomUpdates.AppendString(user.GetClient().GetHabbo().Gender.ToLower());
RoomUpdates.AppendString(user.GetClient().GetHabbo().Motto);
RoomUpdates.AppendInt32(user.GetClient().GetHabbo().AchievementPoints);
userroom.SendMessage(RoomUpdates);
Habbo.MottoMgr(user.GetClient().GetHabbo(),user.GetClient().GetHabbo().Motto,"",true,true);
return true;
//user.GetClient().GetHabbo()
}
}
}
else { Session.SendWhisper("You do not have permission to do this."); }
return true;
}
#endregion
Plus Addons Coming soon
To the Further noobs who say i can code. -Imput middle finger twards you