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
Last edited by toperwin; 16-02-11 at 03:05 PM.
: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
The codes you have done do not work for me?
(Not saying your rubbish :P)
Could it be the emulator I am using?
Could u code :afk ,too?
Like some custom commands like, one where you can change the theme of a room?
:disconetti
:disconetti <nomeutente>
:disconeccts the user from the client.
simon... 4 days have gone by and you haven't coded one request.. think this is a bad thread
i need commands :teleportmode <user> ad :roombadge for Uber Please :)
Good Work
Hey, Do you also know when you login into an R36 it says news right
well everytime I have a newsarticle i cant make a picture apper. It wants a code can you help?
Thanks,
Araon
mute room:
UnMute room:Code:#region RoomShutUp / MuteRoom case "muteroom": { if (Session.GetHabbo().HasFuse("fuse_mute")) { TargetRoom = UberEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (TargetRoom == null) { return false; } string Msg = MergeParams(Params, 1); foreach (RoomUser RoomUser in TargetRoom.UserList) { RoomUser.GetClient().GetHabbo().Mute(); RoomUser.GetClient().SendNotif("You are Muted!"); } return true; } return false; } #endregion
Code:#region UnMuteRoom case "unmuteroom": { if (Session.GetHabbo().HasFuse("fuse_mute")) { TargetRoom = UberEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (TargetRoom == null) { return false; } string Msg = MergeParams(Params, 1); foreach (RoomUser RoomUser in TargetRoom.UserList) { RoomUser.GetClient().GetHabbo().Unmute(); RoomUser.GetClient().SendNotif("You are UnMuted!"); } return true; } return false; } #endregion
How do you add them what file for Uber, I know holo's but not ubers?
Last edited by leenster; 03-03-11 at 04:30 AM.
I have 2 commands I want.
Command 1:
:invisible on/off
When you type this command, you gets invisible and only staff can see you
Command 2:
:newname [username] [new username]
Use this command to change a username, just type in a username then type in the new username and the username changes!
Example: :newname R3DSB0W MyNewName
Last edited by R3DSB0W; 04-03-11 at 11:54 AM.
Can you code the :roomid command for me?
Please send the code with a PM. :)
RoomID:
Code:#region :roomid case "roomid": Session.SendNotif("Your in Room ID: " + Session.GetHabbo().CurrentRoomId + ""); return true; #endregion