As i was saying, you don't need to reload the room..
If you just define their look it invisi-poof on it's own.
Printable View
• :teleport
• :teleport on/off
• Teleport the user for the selected Room Box
• :globalbadge
• :globalbadge <badge code>
• Give a badge for all users online
• :muteroom / :unmuteroom
• Silence all round the room, only administrators can talk.
• :badgeall <badge code>
• Leave badge to all members of the 'Hotel. (Administrators Only)
Thank you!
- There was already one released for Uber.
http://forum.ragezone.com/5677220-post94.html
[/CODE]
- Would you like a php script for it? Because I have one.
:manutenzione
• :manutenzione/togli manutenzione
• manutenzione=puts on maniteance the hotel/togli manutenzione=puts on the hotel
• :daidistintivo a tutti
• :dai distintivo a tutti <codice badge>
• Give a badge for all users online
• :update credits and pixel
• :update
• if you do this command 1 time, it will update credits ands pixels every 30 minutes
Here you go. Coded by me so may not be up to best standards.Quote:
:manutenzione
• :manutenzione/togli manutenzione
• manutenzione=puts on maniteance the hotel/togli manutenzione=puts on the hotel
P.S: code is ":maintenance on" or ":maintenance off"Code:case "maintenance":
if (Session.GetHabbo().HasFuse("fuse_admin"))
{
if (Params[1] == "on")
{
{
string Notice = Input.Substring(3);
ServerMessage HotelAlert = new ServerMessage(139);
HotelAlert.AppendStringWithBreak("Message from management:\n SuperRP will is going offline for the night momentarily, We hope to see you back in the hotel soon.");
UberEnvironment.GetGame().GetClientManager().BroadcastMessage(HotelAlert);
using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
dbClient.ExecuteQuery("UPDATE site_config SET maintenance = '1'");
return true;
}
}
if (Params[1] == "off")
{
if (Session.GetHabbo().HasFuse("fuse_admin"))
{
string Notice = Input.Substring(3);
ServerMessage HotelAlert = new ServerMessage(139);
HotelAlert.AppendStringWithBreak("Message from management:\n SuperRP will is back online, We hope to see you having fun :D");
UberEnvironment.GetGame().GetClientManager().BroadcastMessage(HotelAlert);
using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
dbClient.ExecuteQuery("UPDATE site_config SET maintenance = '0'");
return true;
}
else
{
Session.SendNotif(Params[1] + " is not a valid code for the command\"maintenance\" !");
}
}
}
else
{
Session.SendNotif("Error! Your not the right rank to do this!");
}
return false;
:teleall
Teleport all Online in your Room
:pet 1 you are a Pet
:setmax All User work ^^
:restart (It restarts the emu)
yes niCe :D OR
:badgeall Code
or
:pixelall 9999
or
:roombadge
:give id amount Username Furniture
:teleport model change
no make a TCP Connecter restarter only Login
room mute/unmute already coded by my long ago ;p
http://forum.ragezone.com/6104176-post7.html
:vip <User>
Sets User to Rank 2.
:deleteroom
Deletes Room in the one you are.
:effect <ID>
Gives you Effect by Id.
:brb or :afk
Say every minute, how long you are brb.
For example:
I'm brb since: "20 minutes" or so..
Have fun by Coding.
PHP Code:#region vip
case "vip":
{
if (Session.GetHabbo().HasFuse("fuse_sysadmin"))
{
TargetClient = UberEnvironment.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
if (TargetClient != null)
{
UberEnvironment.GetGame().GetClientManager().GetClientByHabbo(Params[1]).GetHabbo().Rank = 2;
using (Uber.Storage.DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
{
dbClient.ExecuteQuery("UPDATE users SET rank = '2' WHERE username = '" + Params[1] + "'");
}
return true;
}
else
{
Session.SendNotif("User: " + Params[1] + " could not be found in the database.\rPlease try your request again.");
return false;
}
}
}
return false;
#endregion
PHP Code:#region effect
case "effect":
{
if (Session.GetHabbo().HasFuse("fuse_sysadmin"))
{
TargetRoom = UberEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
if (TargetRoom == null)
{
return false;
}
TargetRoomUser = TargetRoom.GetRoomUserByHabbo(Session.GetHabbo().Id);
if (TargetRoomUser == null)
{
return false;
}
try
{
Session.GetHabbo().GetAvatarEffectsInventoryComponent().AddEffect(int.Parse(Params[1]), 360000);
Session.GetHabbo().GetAvatarEffectsInventoryComponent().EnableEffect(int.Parse(Params[1]));
Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect = int.Parse(Params[1]);
Session.GetHabbo().GetAvatarEffectsInventoryComponent().ApplyEffect(int.Parse(Params[1]));
}
catch (Exception) { }
return true;
}
}
return false;
#endregion