Andeh
the best cis-boy
A command where you can freeze a user and they won't be able to move until you unfreeze them.
( :freeze / :unfreeze )
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
( :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