HoloEMU - Freeze/Unfreeze Command

Status
Not open for further replies.

Andeh

the best cis-boy
Jun 1, 2010
892
124
A command where you can freeze a user and they won't be able to move until you unfreeze them.

( :freeze / :unfreeze )

Code:
    case "freeze": // Freeze User
                        {
                            if (rankManager.containsRight(_Rank, "fuse_administrator_access") == false)
                                return false;
                            else
                            {
                                virtualUser _User = userManager.getUser(DB.Stripslash(args[1]));

                                if (_User.roomUser.walkLock == false)
                                {
                                    _User.roomUser.walkLock = true; // Freeze the user
                                    _User.sendData("BK" + "You have been frozen by a member of staff!");
                                    sendData("BK" + _User + " is now frozen!");
                                } else {
                                    sendData("BK" + _User + " is already frozen!");
                                }
                            }
                            break;
                        }

                    case "unfreeze": // unFreeze User
                        {
                            if (rankManager.containsRight(_Rank, "fuse_administrator_access") == false)
                                return false;
                            else
                            {
                                virtualUser _User = userManager.getUser(DB.Stripslash(args[1]));

                                if (_User.roomUser.walkLock == true)
                                {
                                    _User.roomUser.walkLock = false; // unfreeze the user
                                    _User.sendData("BK" + "You have been unfrozen by a member of staff!");
                                    sendData("BK" + _User + " is now frozen!");
                                }
                                else
                                {
                                    sendData("BK" + _User + " is not frozen!");
                                }
                            }
                            break;

How to add:
Open virtualUser.cs
Click Ctrl + F and search for case "alert":
Add the code above the alert case
Then save



(Note only admins will be able to use this command)

Credits:
Nillus - Creating the code
iDream - Releasing at TheHabbos
 

Reasons

Member
Jul 2, 2010
29
1
iDream I wish you put more commands, Thank you for this command.
You helped alot of people for this!

Best,
iTouch
 

Jo$h

Posting Freak
Jul 7, 2010
1,030
79
Great Command, although my ISP has blocked retroing, I really like it when people innovate habbo.
 

Jo$h

Posting Freak
Jul 7, 2010
1,030
79
leog504 said:
Jo$h said:
Great Command, although my ISP has blocked retroing, I really like it when people innovate habbo.

How are you blocked?

On topic: Nice commands

Unless I pay they wont tell me the password.
 

Retrohelp

New Member
Dec 6, 2012
24
0
Hello, can someone help me?
I won't the points on my client
My CMS have the shells
But nothing in the database how do i make that?
I have free phoenix licence 3.7.1
 
Status
Not open for further replies.

Users who are viewing this thread

Top