本文整理汇总了C#中Essential.HabboHotel.GameClients.GameClient.AboutMessage方法的典型用法代码示例。如果您正苦于以下问题:C# GameClient.AboutMessage方法的具体用法?C# GameClient.AboutMessage怎么用?C# GameClient.AboutMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Essential.HabboHotel.GameClients.GameClient
的用法示例。
在下文中一共展示了GameClient.AboutMessage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleCommands
//.........这里部分代码省略.........
{
if (!(class4.X + 1 == class2.RoomModel.DoorX && class4.Y == class2.RoomModel.DoorY) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
class4.MoveTo(class4.X + 1, class4.Y);
}
else
{
class4.MoveTo(class4.X + 1, class4.Y);
}
}
if (a == "down")
{
if (ServerConfiguration.PreventDoorPush)
{
if (!(class4.X == class2.RoomModel.DoorX && class4.Y + 1 == class2.RoomModel.DoorY) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
class4.MoveTo(class4.X, class4.Y + 1);
}
else
{
class4.MoveTo(class4.X, class4.Y + 1);
}
}
if (a == "left")
{
if (ServerConfiguration.PreventDoorPush)
{
if (!(class4.X - 1 == class2.RoomModel.DoorX && class4.Y == class2.RoomModel.DoorY) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
class4.MoveTo(class4.X - 1, class4.Y);
}
else
{
class4.MoveTo(class4.X - 1, class4.Y);
}
}
}
return true;
}
catch
{
return false;
}
IL_3F03:
class2 = Essential.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
if (class6.Boolean_3)
{
Session.GetHabbo().Whisper("Befehl während einem Tausch nicht möglich!");
return true;
}
if (ServerConfiguration.EnableRedeemCredits)
{
Session.GetHabbo().GetInventoryComponent().ConvertCoinsToCredits();
}
else
{
Session.GetHabbo().Whisper(EssentialEnvironment.GetExternalText("cmd_error_disabled"));
}
return true;
}
}
}
IL_2F05:
try
{
DateTime now = DateTime.Now;
TimeSpan timeSpan = now - Essential.ServerStarted;
int clients = Essential.GetGame().GetClientManager().ClientCount;
int rooms = Essential.GetGame().GetRoomManager().LoadedRoomsCount;
string text10 = "";
if (ServerConfiguration.ShowUsersAndRoomsInAbout)
{
text10 = string.Concat(new object[]
{
"\nHabbos online: ",
clients,
"\nOffene Räume: ",
rooms
});
}
Session.AboutMessage(string.Concat(new object[]
{
"Online seit: ",
timeSpan.Days,
" Tage, ",
timeSpan.Hours,
" Stunden und ",
timeSpan.Minutes,
" Minuten",
text10,
"\n\n\nPowered by Essential 5. Only for Habbo.TL"
}), "http://rootkit.ch");
// no one cares who made this shit anyways. So I didn't give Credits for anyone, neither me or Aaron.
}
catch { }
return true;
IL_3F91: ;
}
catch { /*throws Exception everytime an argument isn't set!*/}
return false;
}
}