SuperBoogie
New Member
- Oct 13, 2010
- 56
- 0
Code:
#region :revive
case "revive":
{
if (rankManager.containsRight(_Rank, "fuse_administrator_access") == false)
return false;
else
{
string Dead;
Dead = DB.runRead("SELECT dead FROM users WHERE name = '" + _Username + "'");
if (Dead == "1")
{
DB.runQuery("UPDATE users SET dead = '0', time_dead = '0' WHERE name = '" + _Username + "'");
Room.sendSaying(roomUser, "*regains conciousness*");
roomUser.walkLock = false; // Freezes the user
TestRefresh(_Username);
deadLooper.Abort();
deadLooper = null;
}
}
break;
}
#endregion
Code:
#region :rocket
case "rocket":
{
int X = roomUser.X;
int Y = roomUser.Y - 1;
int[] mapLimits = Room.getMapBorders();
int rocket = int.Parse(DB.runRead("SELECT rocket FROM rooms WHERE id = '" + _roomID + "'"));
if (X <= mapLimits[0] && Y <= mapLimits[1] && X >= 0 && Y >= 0) // Abort the teleport if they are trying to teleport outside the array
{
if (_Rank > 2)
if (rocket == 0)
{
sendData("BK" + "Your rocket is not usable in this area.");
}
else
if (roomUser.walkLock == true)
sendData("BK" + "Your rocket has been consficated by the police, you can no longer use it until you leave jail." + Convert.ToChar(2));
else
{
Room.sqUNIT[X, Y] = true; // Block the new tile
Room.sqUNIT[roomUser.X, roomUser.Y] = false; // Unblock the old tile
roomUser.X = X;
roomUser.Y = Y;
roomUser.H = roomUser.H + 2;
roomUser.goalX = +1;
Room.Refresh(roomUser);
refreshAppearance(false, false, true);
roomUser.goalX = roomUser.X;
roomUser.goalY = roomUser.Y;
roomUser.H = roomUser.H + 1;
Room.sendSaying(roomUser, "*activates their jetpack, taking off into the sky*");
}
}
}
break;
#endregion
I Will Be Releaseing More