Dayron1234
Rapnameiszero,cuzIhavezero,toleranceforidiots
- Jun 30, 2010
- 772
- 35
Okay so since I been working with Uber for about 2 months now I coding my own commands but I don't want to be a n00b and keep it to myself because thats just wrong to me.Anyways I will not be releasing that much commands because I just started to learn to code in Uber and still a newbie at it.
MORE SOON TO COME! WORKING ON UNFZE SO CHILL AND ITS ABOUT 89% DONE!
Code:
case "freeze": //Freeze the user
{
if (Session.GetHabbo().HasFuse("fuse_admin"))
{
ServerMessage ChatMessage = new ServerMessage(24);
TargetRoom = UberEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
TargetRoomUser.CanWalk = false; //Freezes the user
ChatMessage.AppendStringWithBreak("I have been freezed :(");
return true;
}
}
return false;
Code:
case "maintenance":
if (Session.GetHabbo().HasFuse("fuse_admin"))
{
string Notice = Input.Substring(3);
ServerMessage HotelAlert = new ServerMessage(139);
HotelAlert.AppendStringWithBreak("Message from management: HOTELNAME will go for an short maintenance break.");
UberEnvironment.GetGame().GetClientManager().BroadcastMessage(HotelAlert);
using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
{ dbClient.ExecuteQuery("UPDATE site_config SET maintenance = '1' LIMIT 1"); }
return true;
}
return false;
MORE SOON TO COME! WORKING ON UNFZE SO CHILL AND ITS ABOUT 89% DONE!