Yaad
New Member
- Feb 1, 2014
- 1
- 1
I've always found those commands useful, so I decided to share it with you guys.
eha;
sayall;
The :eha command could be useful for the moderators or event staff. It dosen't let you put any messages, it gives that message automatically.
For those who don't know how to add the commands, the only thing you need to do is copy the code and add it to ChatCommandHandler.cs and change Bam to ur hotel name.
If you like it just hit the like button, If not just leave the thread and move on.
eha;
Code:
#region Events Hotel Alert (:eha)
case "eha":
if (Session.GetHabbo().HasCmd("eha"))
{
string Notice = MergeParams(Params, 1);
ServerMessage HotelAlert = new ServerMessage(Outgoing.BroadcastMessage);
HotelAlert.AppendString("Follow " + Session.GetHabbo().Username + " to take part in an official Bam Event! Win prizes! \r\n- " + Session.GetHabbo().Username);
SilverwaveEnvironment.GetGame().GetClientManager().QueueBroadcaseMessage(HotelAlert);
SilverwaveEnvironment.GetGame().GetModerationTool().LogStaffEntry(Session.GetHabbo().Username, string.Empty, "HotelAlert", "Hotel alert [" + Notice + "]");
return true;
}
return true;
#endregion
sayall;
Code:
#region Say All (:sayall)
case "sayall":
if (Session.GetHabbo().HasCmd("sayall"))
{
Room currentRoom2 = Session.GetHabbo().CurrentRoom;
if (currentRoom2 != null)
{
string Message3 = ChatCommandHandler.MergeParams(Params, 1);
if (Message3 != "")
{
foreach (RoomUser roomUser2 in currentRoom2.GetRoomUserManager().GetRoomUsers())
roomUser2.Chat(roomUser2.GetClient(), Message3, false, 0);
}
}
return true;
}
else
return true;
#endregion
The :eha command could be useful for the moderators or event staff. It dosen't let you put any messages, it gives that message automatically.
For those who don't know how to add the commands, the only thing you need to do is copy the code and add it to ChatCommandHandler.cs and change Bam to ur hotel name.
If you like it just hit the like button, If not just leave the thread and move on.