Exemplo n.º 1
0
 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", "", "");
 }
Exemplo n.º 2
0
        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;
        }