[Uber]Commands[Uber]

Status
Not open for further replies.

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.

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 UNFREEZE SO CHILL AND ITS ABOUT 89% DONE!
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
OOooo. Nice does the:

Code:
ChatMessage.AppendStringWithBreak("I have been freezed :(");

Send an alert? Or a message like in Holo it would be: this.sendSaying(roomUser, "message"); - I'm guessing it does?
 

Dayron1234

Rapnameiszero,cuzIhavezero,toleranceforidiots
Jun 30, 2010
772
35
Yes it sends an alert :) but if you need the Chat one I will post it xD
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Nah, But I'm impressed with you lol, Well done mate.
 

Dayron1234

Rapnameiszero,cuzIhavezero,toleranceforidiots
Jun 30, 2010
772
35
Thanks lol xD

NOTE:FOUND A BUG IN FREEZE AND UNFREEZE DON'T USE IT FOR NOW UNTIL I FIND WHAT IT IS!
 

Duck

New Member
Nov 19, 2010
52
1
Nice... Well done, they're pretty cool, I do like the Maintenance one. ;)
 

Bazinga

Posting Freak
Aug 3, 2010
819
54
These are really nice, I hope to see more ;) Although it should be 'Frozen' and not 'Freezed'
 
Status
Not open for further replies.

Users who are viewing this thread

Top