当前位置: 首页>>代码示例>>C#>>正文


C# GameClient.SendNotifWithPicture方法代码示例

本文整理汇总了C#中GameClient.SendNotifWithPicture方法的典型用法代码示例。如果您正苦于以下问题:C# GameClient.SendNotifWithPicture方法的具体用法?C# GameClient.SendNotifWithPicture怎么用?C# GameClient.SendNotifWithPicture使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GameClient的用法示例。


在下文中一共展示了GameClient.SendNotifWithPicture方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Execute

 public override void Execute(GameClient client, string[] pms)
 {
     var userCount = AzureEmulator.GetGame().GetClientManager().Clients.Count;
     var roomsCount = AzureEmulator.GetGame().GetRoomManager().LoadedRooms.Count;
     var roomsname = (roomsCount == 1) ? " Room" : " Rooms";
     client.SendNotifWithPicture("<center> <b><font color=\"#0174DF\" size=\"26\">       Azure</font> <font color=\"#000000\" size=\"18\"> Emulator</font> <font color=\"000000\" size=\"12\"> 2.0 #BETA</font></b></center><br> <font color=\"000000\" size=\"9\" style=\"padding-right:100px;\">                                          Powered by Azure Group</font><br> <b>[Developers] <br />- TimNL         - Jamal        - Diesel        - Boris <br />- Lucca          - Antoine (Tyrex)          - Jaden           - IhToN           - Dominicus           - Cankiee           - Gerard<br />                        [Hotel Statistics]</b><br /> There are currently: " + userCount + " Azure's online in " + roomsCount + roomsname + "<br />", "Azure Emulator", "azure", "", "");
 }
开发者ID:BjkGkh,项目名称:Azure2,代码行数:7,代码来源:About.cs

示例2: canTalk

        internal static bool canTalk(GameClient Session, string Message)
        {
            if (CheckForBannedPhrases(Message) && !Session.GetHabbo().HasFuse("moderator"))
            {
                if (!AzureEmulator.MutedUsersByFilter.ContainsKey(Session.GetHabbo().Id))
                    Session.GetHabbo().BobbaFiltered++;

                if (Session.GetHabbo().BobbaFiltered < 3)
                {
                    Session.SendNotif(TextManager.GetText("wordfilter_inappropriate"));
                }
                else if (Session.GetHabbo().BobbaFiltered == 3)
                {
                    Session.GetHabbo().BobbaFiltered = 4;
                    AzureEmulator.MutedUsersByFilter.Add(Session.GetHabbo().Id, uint.Parse((AzureEmulator.GetUnixTimeStamp() + (300)).ToString()));
                    return false;
                }
                else if (Session.GetHabbo().BobbaFiltered == 5)
                {
                    Session.SendNotif(TextManager.GetText("wordfilter_last_warning"));
                }
                else if (Session.GetHabbo().BobbaFiltered >= 6)
                {
                    Session.GetHabbo().BobbaFiltered = 0;

                    int Length = 3600;
                    AzureEmulator.GetGame().GetBanManager().BanUser(Session, "Auto-system-ban", Length, "ban.", false, false);
                }
            }

            if (AzureEmulator.MutedUsersByFilter.ContainsKey(Session.GetHabbo().Id))
            {
                foreach (KeyValuePair<uint, uint> tim in AzureEmulator.MutedUsersByFilter)
                {
                    int time = int.Parse((AzureEmulator.GetUnixTimeStamp()).ToString());
                    if (tim.Value < time && AzureEmulator.MutedUsersByFilter.ContainsKey(Session.GetHabbo().Id))
                    {
                        AzureEmulator.MutedUsersByFilter.Remove(Session.GetHabbo().Id);
                        return true;
                    }
                    else
                    {
                        Session.SendNotifWithPicture("<br><br><font color=\"#000000\" size=\"13\"> Je hebt een mute tot: <b>" + AzureEmulator.UnixToDateTime(tim.Value) + "</b>", "Spreekverbod", "frank_19", "", "");
                        return true;
                    }
                }
            }
            return true;
        }
开发者ID:BjkGkh,项目名称:Azure2,代码行数:49,代码来源:BobbaFilter.cs


注:本文中的GameClient.SendNotifWithPicture方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。