本文整理汇总了C#中BrickEmulator.HabboHotel.Users.Client.LongNotif方法的典型用法代码示例。如果您正苦于以下问题:C# Client.LongNotif方法的具体用法?C# Client.LongNotif怎么用?C# Client.LongNotif使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BrickEmulator.HabboHotel.Users.Client
的用法示例。
在下文中一共展示了Client.LongNotif方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleTicket
private void HandleTicket(Client Client, Request Request)
{
string Ticket = Request.PopFixedString();
Client.ParseUser(BrickEngine.GetUserReactor().HandleTicket(Ticket));
if (Client.IsValidUser)
{
if (BrickEngine.GetToolReactor().IsBanned(Client.GetUser().HabboId, Client.IPAddress))
{
Client.Dispose();
return;
}
Response Userhash = new Response(439);
Userhash.AppendStringWithBreak(Client.GetUser().Hash);
Client.SendResponse(Userhash);
Client.SendResponse(new Response(3));
if (BrickEngine.GetConfigureFile().CallBooleanKey("welcomemessage.enabled"))
{
Client.LongNotif(string.Empty);
}
Client.SendResponse(Client.GetUser().GetLoginResponse());
Client.Authenticated = true;
Client.SendResponse(BrickEngine.GetToolReactor().GetResponse(Client));
}
else
{
Client.Notif("Invalid Ticket, try again!", false);
Client.Dispose();
}
}
示例2: WhosHotelView
private void WhosHotelView(Client Client, List<string> Params)
{
StringBuilder Builder = new StringBuilder();
Builder.AppendLine(string.Format("[{0}] Users that are in the hotel.", BrickEngine.GetSocketShield().Sessions.Count));
foreach (SocketClient sClient in BrickEngine.GetSocketShield().Sessions)
{
if (sClient.GetClient().GetUser().EnableShowOnline || Client.GetUser().Rank >= 7)
{
if (!sClient.GetClient().GetUser().IsInRoom && (!sClient.GetClient().GetUser().EnableFollow || Client.GetUser().Rank >= 7))
{
Builder.Append(string.Format(" [{0}] {1}\r", sClient.GetClient().GetUser().Rank, sClient.GetClient().GetUser().Username));
}
}
}
Client.LongNotif(Builder);
}
示例3: WhosOnline
private void WhosOnline(Client Client, List<string> Params)
{
StringBuilder Builder = new StringBuilder();
Builder.AppendLine(string.Format("[{0}] Users that are in the hotel.", BrickEngine.GetSocketShield().Sessions.Count));
foreach (SocketClient sClient in BrickEngine.GetSocketShield().Sessions)
{
Builder.Append(string.Format("[{0}] {1}\r", sClient.GetClient().GetUser().Rank, sClient.GetClient().GetUser().Username));
}
Client.LongNotif(Builder);
}
示例4: Commands
private void Commands(Client Client, List<string> Params)
{
StringBuilder Commands = new StringBuilder();
Commands.AppendLine(string.Format("BrickEmulator [C#] ~ Commands : Rank [{0}]", Client.GetUser().Rank));
foreach (KeyValuePair<KeyValuePair<string, string>, KeyValuePair<Handler, int>> kvp in Handlers)
{
if (Client.GetUser().Rank >= kvp.Value.Value)
{
Commands.Append(string.Format(" {0}\r", GetParams(kvp.Key.Key)));
}
}
Client.LongNotif(Commands);
}