• Üyelik paylaşımı yasaktır! Hesabınızı başkalarına vermeyin! Hesap paylaşımları yasaklama ile sonuçlanacaktır.

swf flash c# örnek MarketPlace

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

dede454531

ReportSpammer
Banlı Üye
Katılım
15 Ara 2017
Mesajlar
299
Beğeni Puanı
23
C#:
using PlayerIO.GameLibrary;
using System;
using System.Collections.Generic;
using System.Net;

namespace Marketplace
{
    public class Player : BasePlayer
    {
        public List<BuyItemInfo> ToAdd = new List<BuyItemInfo>();
        public List<VaultItem> ToRemove = new List<VaultItem>();
        public List<string> ToAddinLogs = new List<string>();
        public string Name;
        public string skin;
        public string cdbg = "";
        public string status = "0";
        public string fbuid = "";
        public string outfit = "";
        public int mpper = 0;
        public int level = 1;
        public int partner = 0;
        public int prestige = 0;
        public bool rainbow = false;
        public bool cooldown = false;

        //trading variables
        public string offer1 = "";
        public int offerqnt1 = 0;
        public string offer2 = "";
        public int offerqnt2 = 0;
        public string offer3 = "";
        public int offerqnt3 = 0;
        public string offer4 = "";
        public int offerqnt4 = 0;
        public string offer5 = "";
        public int offerqnt5 = 0;
        public string offer6 = "";
        public int offerqnt6 = 0;
        public string offers = "";
        public int mycoins = 0;

        //marketplace
        public List<string> Offers = new List<string>();
        public bool chatenable = true;
        public bool canchat = true;
        public bool busy = false;
        public string myoffer = "";
        public bool ready = false;
        public string myip;
        public bool giftbox = false;

        //events
        public int points;

        //avatar
        public string hat = "";
        public string glasses = "";
        public string hands = "";
        public string mouth = "";
        public string shoes = "";
        public string back = "";
        public bool joined = false;
        public bool cantreceive = false;
        public string petname = "";

        //clan
        public bool invited;
        public string clan;

        //lobby
        public bool wannaplay = false;

        //marketroom
        public int myX;
        public int myY;


    }




    [RoomType("marketplace")]
    public class GameCode : Game<Player> {
        // This method is called when an instance of your the game is created
        public List<string> PlayersList = new List<string>();
        public List<string> IPSlist = new List<string>();
        string music = "";
        int round = 1;
        bool started = false;
        string answer = "";
        bool answered = true;
        string word = "";
        string item = "";
        DateTime expire = DateTime.UtcNow;
        public override void GameStarted() {
            // anything you write to the Console will show up in the
            PreloadPlayerObjects = true;
            // output window of the development server
            Console.WriteLine("Game is started");
            AddTimer(countShit, 60000);
        }

        // This method is called when the last player leaves the room, and it's closed down.
        public override void GameClosed() {
            Console.WriteLine("RoomId: " + RoomId);
        }
        public void countShit()
        {
            //coded by shkelqim koka
            foreach (Player player in Players)
            {
                PlayerIO.BigDB.LoadOrCreate("Active", player.ConnectUserId, delegate (DatabaseObject pdb)
                {
                    Console.WriteLine("timer is working");

                    if (!pdb.Contains("time"))
                    {
                        pdb.Set("name", player.JoinData["name"]);
                        pdb.Set("id", player.ConnectUserId);
                        pdb.Set("time", 1);
                        pdb.Save();
                        Console.WriteLine("created db object");
                        return;
                    }
                    else
                    {
                        pdb.Set("name", pdb.GetString("name", player.JoinData["name"]));
                        pdb.Set("id", pdb.GetString("id", player.ConnectUserId));
                        pdb.Set("time", pdb.GetInt("time", 0) + 1);
                        pdb.Save();
                        Console.WriteLine("ih db object adding 1, now its {0}", pdb.GetInt("onlineTime", 0));
                    }
                });
            }
        }
        // This method is called whenever a player joins the game
        public override void UserJoined(Player player)
        {
            PlayerIO.BigDB.LoadOrCreate("Main", player.ConnectUserId, delegate (DatabaseObject main)
            {
                if (PlayersList.Contains(player.ConnectUserId))
                {
                    player.Disconnect();
                }
                else
                {
                    //Send info about all already connected users to the newly joined users chat
                    Message m = Message.Create("*", player.Id);
                    if (IPSlist.Contains("" + player.IPAddress))
                    {
                        player.cantreceive = true;
                    }
                    updatePlayersOnline(player);
                }
            });

        }

        public string randomSkin()
        {
            string[] normskin = { "white", "blue", "red", "green", "yellow" };
            Random random = new Random();
            {
                int a = random.Next(0, normskin.Length);

                return normskin[a];
            }
        }

        public void GetPlayerData(Player player)
        {
            PlayerIO.BigDB.LoadOrCreate("PlayerObjects", player.ConnectUserId, delegate (DatabaseObject playerobj)
            {
                PlayerIO.BigDB.LoadOrCreate("Events", "RoomKings", delegate (DatabaseObject events)
                {
                    
                    PayVault vault = player.PayVault;
                    vault.Refresh(delegate ()
                                {
                                    if (playerobj.GetString("skin") == "blue" || playerobj.GetString("skin") == "red" || playerobj.GetString("skin") == "green" || playerobj.GetString("skin") == "yellow" || playerobj.GetString("skin") == "white")
                                    {
                                        player.skin = playerobj.GetString("skin");
                                    }
                                    else if (!vault.Has(playerobj.GetString("skin")))
                                    {
                                        if (playerobj.GetString("skin") == "vip")
                                        {
                                            if (vault.Has("vippass"))
                                            {
                                                player.skin = playerobj.GetString("skin");
                                            }
                                            else
                                            {
                                                player.skin = randomSkin();
                                            }
                                        }
                                        else if (playerobj.GetString("skin") == "angelskin")
                                        {
                                            if ((!vault.Has("magicwand")) && (!vault.Has("halo")) && (!vault.Has("wings")))
                                            {
                                                player.skin = randomSkin();
                                            }
                                            else
                                            {
                                                player.skin = playerobj.GetString("skin");
                                            }
                                        }
                                        else if (playerobj.GetString("skin") == "memeskin")
                                        {
                                            if ((!vault.Has("trollface")) && (!vault.Has("fuuu")) && (!player.PayVault.Has("cerealguy")) && (!player.PayVault.Has("foreveralone")) && (!player.PayVault.Has("fuckyeah")))
                                            {
                                                player.skin = randomSkin();
                                            }
                                            else
                                            {
                                                player.skin = playerobj.GetString("skin");
                                            }
                                        }
                                        else if (playerobj.GetString("skin") == "cowboyskin")
                                        {
                                            if ((!player.PayVault.Has("cowboyhat")) && (!player.PayVault.Has("revolver")) && (!player.PayVault.Has("cowboyboots")))
                                            {
                                                player.skin = randomSkin();
                                            }
                                            else
                                            {
                                                player.skin = playerobj.GetString("skin");
                                            }
                                        }
                                        else if (playerobj.GetString("skin") == "featherskin")
                                        {
                                            if ((!player.PayVault.Has("featherhat")) && (!player.PayVault.Has("bow")) && (!player.PayVault.Has("redskinshoes")))
                                            {
                                                player.skin = randomSkin();
                                            }
                                            else
                                            {
                                                player.skin = playerobj.GetString("skin");
                                            }
                                        }
                                        else if (playerobj.GetString("skin") == "footballskin")
                                        {
                                            if ((!player.PayVault.Has("ballhat")) && (!player.PayVault.Has("whistle")) && (!vault.Has("soccershoes")))
                                            {
                                                player.skin = randomSkin();
                                            }
                                            else
                                            {
                                                player.skin = playerobj.GetString("skin");
                                            }
                                        }
                                        else if (playerobj.GetString("skin") == "millionaireskin")
                                        {
                                            if ((!vault.Has("millionairehat")) && (!vault.Has("millionairecase")) && (!vault.Has("millionaireglasses")))
                                            {
                                                player.skin = randomSkin();
                                            }
                                            else
                                            {
                                                player.skin = playerobj.GetString("skin");
                                            }
                                        }
                                        else if (playerobj.GetString("skin") == "ninjaskin")
                                        {
                                            if ((!vault.Has("ninjakick")) && (!vault.Has("ninjastart")) && (!vault.Has("ninjaeyes")) && (!vault.Has("ninjaband")))
                                            {
                                                player.skin = randomSkin();
                                            }
                                            else
                                            {
                                                player.skin = playerobj.GetString("skin");
                                            }
                                        }
                                        else if (playerobj.GetString("skin") == "builderskin")
                                        {
                                            if ((!vault.Has("hardhat")) && (!vault.Has("hammer")) && (!vault.Has("boots")))
                                            {
                                                player.skin = randomSkin();
                                            }
                                            else
                                            {
                                                player.skin = playerobj.GetString("skin");
                                            }
                                        }
                                        else if (playerobj.GetString("skin") == "infectedskin")
                                        {
                                            if ((!vault.Has("zombieclaws")) && (!vault.Has("zombieeyes")) && (!vault.Has("zombiemouth")))
                                            {
                                                player.skin = randomSkin();
                                            }
                                            else
                                            {
                                                player.skin = playerobj.GetString("skin");
                                            }
                                        }
                                        else
                                        {
                                            player.skin = randomSkin();
                                        }
                                    }
                                    else
                                    {
                                        player.skin = playerobj.GetString("skin");
                                    }
                                    if (vault.Has(playerobj.GetString("outfit.hat")))
                                    {
                                        player.hat = playerobj.GetString("outfit.hat");
                                    }
                                    if (vault.Has(playerobj.GetString("outfit.glasses")))
                                    {
                                        player.glasses = playerobj.GetString("outfit.glasses");
                                    }
                                    if (vault.Has(playerobj.GetString("outfit.mouth")))
                                    {
                                        player.mouth = playerobj.GetString("outfit.mouth");
                                    }
                                    if (vault.Has(playerobj.GetString("outfit.hands")))
                                    {
                                        player.hands = playerobj.GetString("outfit.hands");
                                    }
                                    if (vault.Has(playerobj.GetString("outfit.shoes")))
                                    {
                                        player.shoes = playerobj.GetString("outfit.shoes");
                                    }
                                    if (vault.Has(playerobj.GetString("outfit.back")))
                                    {
                                        player.back = playerobj.GetString("outfit.back");
                                    }
                                    if (playerobj.GetInt("level") > 30 || playerobj.GetInt("prestige") >= 5)
                                    {
                                        if (!vault.Has("stickrunteam") || !vault.Has("helperskin"))
                                        {
                                            playerobj.Set("level", 1);
                                            playerobj.Set("prestige", 0);
                                            player.Disconnect();
                                        }
                                    }
                                    if (playerobj.GetString("skin") == "helperskin")
                                    {
                                        if (vault.Has("helperskin"))
                                        {
                                            player.mpper = 3;
                                        }
                                        else
                                        {
                                            player.mpper = 0;
                                        }
                                    }
                                    else if (playerobj.GetString("skin") == "youtuberskin")
                                    {
                                        if (vault.Has("youtuberskin"))
                                        {
                                            player.mpper = 5;
                                        }
                                        else
                                        {
                                            player.mpper = 0;
                                        }
                                    }
                                    else if (playerobj.GetString("skin") == "vip")
                                    {
                                        if (vault.Has("vippass"))
                                        {
                                            player.mpper = 6;
                                        }
                                        else
                                        {
                                            player.mpper = 0;
                                        }
                                    }
                                    else if (playerobj.GetString("skin") == "lawskin")
                                    {
                                        if (vault.Has("lawskin"))
                                        {
                                            player.mpper = 7;
                                        }
                                        else
                                        {
                                            player.mpper = 0;
                                        }
                                    }
                                    else if (playerobj.GetString("skin") == "supporterskin")
                                    {
                                        if (vault.Has("supporterskin"))
                                        {
                                            player.mpper = 8;
                                        }
                                        else
                                        {
                                            player.mpper = 0;
                                        }
                                    }
                                    else if (playerobj.GetInt("mp_permissions") == 1 || playerobj.GetInt("mp_permissions") == 2|| playerobj.GetInt("mp_permissions") == 999)
                                    {
                                        if (vault.Has("stickrunteam"))
                                        {
                                            player.mpper = playerobj.GetInt("mp_permissions");
                                        }
                                        else
                                        {
                                            player.mpper = 0;
                                        }
                                    }
                                    else if (playerobj.GetInt("mp_permissions") >= 3)
                                    {
                                        player.mpper = 0;
                                    }
                                    else if (events.GetString(RoomId) == player.ConnectUserId)
                                    {
                                        player.mpper = 4;
                                    }
                                    else
                                    {
                                        player.mpper = 0;
                                    }
                                    player.outfit = "hat=" + player.hat + "&glasses=" + player.glasses + "&mouth=" + player.mouth + "&hands=" + player.hands + "&shoes=" + player.shoes + "&back=" + player.back;
                                    player.Name = playerobj.GetString("fbname");
                                    player.fbuid = player.ConnectUserId.Replace("fb", "");
                                    player.level = playerobj.GetInt("level");
                                    player.prestige = playerobj.GetInt("prestige");
                                    if (vault.Has("rainbowname"))
                                    {
                                        player.rainbow = true;
                                    }
                                    player.cdbg = "";
                                    player.myoffer = "";
                                    player.status = "0";
                                    player.myip = "" + player.IPAddress;
                                    string roomking = "";
                                    if (events.GetString(RoomId) == "")
                                    {
                                        roomking = "None";
                                        Broadcast("pubmsg", player.Id, "join", player.ConnectUserId.Replace("fb", ""), player.Name, player.skin, player.level, player.mpper, player.prestige, player.outfit, PlayerCount, roomking);
                                    }
                                    else
                                    {
                                        PlayerIO.BigDB.LoadOrCreate("PlayerObjects", events.GetString(RoomId), delegate (DatabaseObject playerobj2)
                                        {
                                            roomking = playerobj2.GetString("fbname");
                                            player.Send("sysmsg", "write", "<font color='#FFFC33'>>>Room King: " + playerobj2.GetString("fbname") + "</font>");
                                            Broadcast("pubmsg", player.Id, "join", player.ConnectUserId.Replace("fb", ""), player.Name, player.skin, player.level, player.mpper, player.prestige, player.outfit, PlayerCount, roomking);
                                        });
                                    }
                                    player.joined = true;
                                    if (music != "")
                                    {
                                        player.Send("sysmsg", "playaudio", music);
                                    }
                                });
                });
            });
        }

        public void resetTrade(int id, int id2)
        {
            foreach (Player p in Players)
            {
                if (p.Id == id)
                {
                    p.myoffer = "";
                    p.offer1 = "";
                    p.offerqnt1 = 0;
                    p.offer2 = "";
                    p.offerqnt2 = 0;
                    p.offer3 = "";
                    p.offerqnt3 = 0;
                    p.offer4 = "";
                    p.offerqnt4 = 0;
                    p.offer5 = "";
                    p.offerqnt5 = 0;
                    p.offer6 = "";
                    p.offerqnt6 = 0;
                    p.mycoins = 0;
                    p.partner = 0;
                    p.status = "0";
                    p.mycoins = 0;
                    p.busy = false;
                    foreach (Player player in Players)
                    {
                        if (player.Id == id2)
                        {
                            player.partner = 0;
                            player.status = "0";
                            player.busy = false;
                            Broadcast("pubmsg", player.Id, "trade_busy", false);
                        }
                    }
                }
            }
        }

        public void updatePlayersOnline(Player player)
        {
            String addin = "";
            Message psOnline = Message.Create("privmsg", player.Id, "joinSuccess");
            foreach (Player p in Players)
            {
                String name = p.Name;
                String skin = p.skin;
                String offerbg = p.cdbg;
                String offers = p.myoffer;
                String busy = p.status;
                String id = p.fbuid;
                String outfit = p.outfit;
                Int32 mpper = p.mpper;
                Int32 prestige = p.prestige;
                Int32 level = p.level;
                if (player.Id != p.Id)
                {
                    addin += id + ";" + name + ";" + skin + ";" + level + ";" + mpper + ";" + prestige + ";" + offers + ";" + busy + ";" + p.Id + ";" + outfit + ";" + offerbg + "||";
                }
            }
            PlayersList.Add(player.ConnectUserId);
            if (IPSlist.Contains("" + player.IPAddress))
            {
            }
            else
            {
                IPSlist.Add("" + player.IPAddress);
            }
            psOnline.Add(addin);
            player.Send(psOnline);
            GetPlayerData(player);
        }

        public override void UserLeft(Player player)
        {

            Broadcast("pubmsg", player.Id, "UserLeft", PlayerCount);
            if (player.partner != 0)
            {
                foreach(Player p in Players)
                {
                    if (p.Id == player.partner)
                    {
                        p.Send("privmsg", p.Id, "closeTrade");
                        resetTrade(p.Id, player.Id);
                    }
                }
            }
            if (player.joined == true)
            {
                PlayersList.Remove(player.ConnectUserId);
                IPSlist.Remove("" + player.IPAddress);
            }
        }

        public string genRainbow(string Name)
        {
            string result = "";
            string[] rainbow = { "#ff0000", "#ff2a00", "#ff5500", "#ff7f00", "#ffaa00", "#ffd400", "#ffff00", "#aaff00", "#55ff00", "#004d00", "#00ff80", "#00ffff", "#00aaff", "#0055ff", "#0000ff", "#2e00ff", "#5d00ff", "#8b00ff", "#8b00ff", "#5d00ff", "#2e00ff", "#0000ff", "#0055ff", "#00aaff", "#00ffff", "#00ff80", "#004d00", "#55ff00", "#aaff00", "#ffff00", "#ffd400", "#ffaa00", "#ff7f00", "#ff5500", "#ff2a00", "#ff0000" };
            int i = 0;
            foreach (char text in Name)
            {
                string rainbowd = "<font color=\'" + rainbow.GetValue(i % rainbow.Length) + "\'" + ">" + text + "</font>";
                result += rainbowd;
                i++;
            }
            return result;
        }

        public void Math()
        {
            if (started)
            {
                if (round <= 20)
                {
                    Random number = new Random();
                    int number1 = number.Next(1, 31);
                    int number2 = number.Next(1, 31);
                    expire = DateTime.UtcNow.AddSeconds(20);
                    int operators = number.Next(1, 4);  // 1 = add, 2 = minus, 3 = multiply, 4 = divide
                    round = round + 1;
                    int answers;
                    switch (operators)
                    {
                        case 1:
                            answers = number1 + number2;
                            answer = "" + answers;
                            break;
                        case 2:
                            answers = number1 - number2;
                            answer = "" + answers;
                            break;
                        case 3:
                            answers = number1 * number2;
                            answer = "" + answers;
                            break;
                        case 4:
                            answers = number1 / number2;
                            answer = "" + answers;
                            break;
                        default:
                            break;
                    }
                    if (operators == 1)
                    {
                        Broadcast("sysmsg", "write", "<font color='#F7FB12'>>>Round " + round + ": " + number1 + " + " + number2 + " = </font>");

                    }
                    else if (operators == 2)
                    {
                        Broadcast("sysmsg", "write", "<font color='#F7FB12'>>>Round " + round + ": " + number1 + " - " + number2 + " = </font>");
                    }
                    else if (operators == 3)
                    {
                        Broadcast("sysmsg", "write", "<font color='#F7FB12'>>>Round " + round + ": " + number1 + " * " + number2 + " = </font>");
                    }
                    else if (operators == 4)
                    {
                        Broadcast("sysmsg", "write", "<font color='#F7FB12'>>>Round " + round + ": " + number1 + " / " + number2 + " = </font>");
                    }
                }
            }
        }

        public bool CheckBlacklist(string item)
        {/*
            */
            string[] blacklisted = { "brain", "tannersbow", "japanbg", "uhexskin", "crystaleyes", "mikuskin", "matrixskin", "icysword", "chaoscontrolshoes", "swordman", "helperskin", "stickrunteam", "trustedskin","trustedskin2", "bluecap", "lightsaber", "donatorskin", "titties", "bluesummerglasses" };
            foreach (string b in blacklisted)
            {
                if (b.Contains(item))
                {
                    return false;
                }
            }
            return true;
        }

        public const string Alphabet = "abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";

        public string GenerateString(int size)
        {
            Random rand = new Random();
            char[] chars = new char[size];
            for (int i = 0; i<size; i++)
            {
                chars[i] = Alphabet[rand.Next(Alphabet.Length)];
            }
            return new string (chars);
        }

        public override void GotMessage(Player player, Message message)
        {
            switch (message.Type)
            {
                case "sysmsg":
                    {
                        PayVault vault = player.PayVault;
                    switch (message.GetString(0))
                    {
                            
                            case "adminCMD":
                                PlayerIO.BigDB.LoadOrCreate("PlayerObjects", player.ConnectUserId, delegate (DatabaseObject playerobj)
                                {
                                    PlayerIO.BigDB.LoadOrCreate("Main", player.ConnectUserId, delegate (DatabaseObject importDB)
                                    {
                                        vault.Refresh(delegate ()
                                        {
                                            string[] cmd = message.GetString(1).Split('&');
                                            if (vault.Has("stickrunteam") || vault.Has("helperskin"))
                                            {
                                                DatabaseArray NewCmdList = new DatabaseArray();
                                                if (!importDB.Contains("CMDLogs." + DateTime.Now.Month + "/" + DateTime.Now.Day))
                                                {
                                                    NewCmdList.Add(message.GetString(1));
                                                    importDB.Set("CMDLogs." + DateTime.Now.Month + "/" + DateTime.Now.Day, NewCmdList);
                                                    importDB.Save();
                                                }
                                                else
                                                {
                                                    DatabaseArray CmdList = importDB.GetArray("CMDLogs." + DateTime.Now.Month + "/" + DateTime.Now.Day);
                                                    int CMDs = 0;
                                                    for (CMDs = 0; CMDs < CmdList.Count; CMDs++)
                                                    {
                                                        NewCmdList.Add(CmdList.GetString(CMDs));
                                                    }
                                                    NewCmdList.Add(message.GetString(1));
                                                    importDB.Set("CMDLogs." + DateTime.Now.Month + "/" + DateTime.Now.Day, NewCmdList);
                                                    importDB.Save();
                                                }
                                            }
                                            if (vault.Has("stickrunteam") && (importDB.GetBool("permissions") == true))
                                            {
                                                switch (cmd[0])
                                                {
                                                    case "alert":
                                                        Broadcast("sysmsg", "alert", cmd[1]);
                                                        break;
                                                    case "force":
                                                        foreach (Player p in Players)
                                                        {
                                                            if (p.ConnectUserId != player.ConnectUserId)
                                                            {
                                                                p.Send("sysmsg", "force");
                                                            }
                                                        }
                                                        break;
                                                    case "write":
                                                        Broadcast("sysmsg", "write", cmd[1]);
                                                        break;
                                                    case "give_item":
                                                        if (!CheckBlacklist(cmd[1]))
                                                        {
                                                            player.Send("sysmsg", "write", "No permission");
                                                        }
                                                        else
                                                        {
                                                            foreach (Player p in Players)
                                                            {
                                                                if (p.cantreceive == false)
                                                                {
                                                                    p.PayVault.Give(new BuyItemInfo[] { new BuyItemInfo(cmd[1]) }, delegate () { p.Send("sysmsg", "give_item", cmd[1]); player.Send("sysmsg", "refresh"); });
                                                                }
                                                                else
                                                                {
                                                                    p.Send("sysmsg", "write", "<font color='#FF0000'>>>You cannot receive item from staff please close all trade run and try to rejoin :)</font>");
                                                                }
                                                            }
                                                        }
                                                        break;
                                                    case "gc":
                                                        string allgc = "";
                                                        for (int i = 0; i < Convert.ToInt32(cmd[2]); i++)
                                                        {
                                                            string code = GenerateString(6);
                                                            allgc = allgc + " " + code;
                                                            PlayerIO.BigDB.LoadOrCreate("Giftcodes", code, delegate (DatabaseObject gc)
                                                            {
                                                                gc.Set("itemname", cmd[1]);
                                                                gc.Set("used", false);
                                                                gc.Save();
                                                            });
                                                        }
                                                        player.Send("sysmsg", "write", "Giftcodes: " + allgc);
                                                        break;
                                                    case "math":
                                                        if (started == false)
                                                        {
                                                            started = true;
                                                            AddTimer(delegate
                                                            {
                                                                if (round <= 20)
                                                                {
                                                                    if (answered == true)
                                                                    {
                                                                        Math();
                                                                        answered = false;
                                                                    }
                                                                    else if (DateTime.UtcNow > expire)
                                                                    {
                                                                        Math();
                                                                        answered = false;
                                                                    }
                                                                }
                                                                else
                                                                {
                                                                    foreach (Player p in Players)
                                                                    {
                                                                        p.points = 0;
                                                                    }
                                                                    return;
                                                                }
                                                            }, 1000);
                                                        }
                                                        break;
                                                    case "mute":
                                                        PlayerIO.BigDB.Load("Main", "fb" + cmd[1], delegate (DatabaseObject main)
                                                        {
                                                            PlayerIO.BigDB.Load("PlayerObjects", "fb" + cmd[1], delegate (DatabaseObject playerobjsas)
                                                            {
                                                                string msg;
                                                                if (cmd[3] == "m")
                                                                {
                                                                    main.Set("muted", DateTime.UtcNow.AddMinutes(Convert.ToInt32(cmd[2])));
                                                                    main.Save();
                                                                    msg = "Minute(s)";
                                                                }
                                                                else if (cmd[3] == "h")
                                                                {
                                                                    main.Set("muted", DateTime.UtcNow.AddHours(Convert.ToInt32(cmd[2])));
                                                                    main.Save();
                                                                    msg = "Hour(s)";
                                                                }
                                                                else if (cmd[3] == "d")
                                                                {
                                                                    main.Set("muted", DateTime.UtcNow.AddDays(Convert.ToInt32(cmd[2])));
                                                                    main.Save();
                                                                    msg = "Day(s)";
                                                                }
                                                                else
                                                                {
                                                                    return;
                                                                }
                                                                Broadcast("sysmsg", "write", "<font color='#FF0000'>>>" + playerobjsas.GetString("fbname") + ", Got muted for " + cmd[2] + " " + msg + "</font>");
                                                            });
                                                        });
                                                        break;
                                                    case "removefrom":
                                                        {
                                                            PayVault TheUser = PlayerIO.GetUserPayVault("fb" + cmd[1]);
                                                            TheUser.Refresh(delegate ()
                                                            {
                                                                List<VaultItem> Toremove = new List<VaultItem>();
                                                                VaultItem[] items = TheUser.Items;
                                                                int randoms = 0;
                                                                for (int y = 0; y < TheUser.Items.Length; y++)
                                                                {
                                                                    if (items[y].ItemKey == cmd[2])
                                                                    {
                                                                        if (randoms < Convert.ToInt32(cmd[3]))
                                                                        {
                                                                            Toremove.Add(items[y]);
                                                                            randoms += 1;
                                                                        }
                                                                    }
                                                                }
                                                                VaultItem[] tix = Toremove.ToArray();
                                                                TheUser.Consume(tix, delegate ()
                                                                {
                                                                    PlayerIO.BigDB.Load("PlayerObjects", "fb" + cmd[1], delegate (DatabaseObject PlayerObject)
                                                                    {
                                                                        player.Send("sysmsg", "write", cmd[2] + " " + cmd[3] + "x has been removed from " + PlayerObject.GetString("fbname") + "'s Inventory");
                                                                    });
                                                                });
                                                            });
                                                            foreach (Player p in Players)
                                                            {
                                                                if (p.fbuid == cmd[1])
                                                                {
                                                                    p.Send("sysmsg", "alert", "Your item " + cmd[2] + cmd[3] + "x has been removed!");
                                                                    p.Send("sysmsg", "refresh");
                                                                }
                                                            }
                                                        }
                                                        break;
                                                    case "remove":
                                                        {
                                                            List<VaultItem> Toremove = new List<VaultItem>();
                                                            VaultItem[] items = vault.Items;
                                                            int randoms = 0;
                                                            for (int y = 0; y < vault.Items.Length; y++)
                                                            {
                                                                if (items[y].ItemKey == cmd[1])
                                                                {
                                                                    if (randoms < Convert.ToInt32(cmd[2]))
                                                                    {
                                                                        Toremove.Add(items[y]);
                                                                        randoms += 1;
                                                                    }
                                                                }
                                                            }
                                                            VaultItem[] tix = Toremove.ToArray();
                                                            vault.Consume(tix, delegate () { player.Send("sysmsg", "refresh"); });
                                                            player.Send("sysmsg", "write", cmd[1] + " " + cmd[2] + "x has been removed from your Inventory");
                                                        }
                                                        break;
                                                    case "plane":
                                                        Random rand = new Random();
                                                        int chance = rand.Next(0, 2);
                                                        if (chance == 0)
                                                        {
                                                            Broadcast("sysmsg", "plane", 0);
                                                        }
                                                        else if (chance == 1)
                                                        {
                                                            Broadcast("sysmsg", "plane", 1);
                                                        }
                                                        break;
                                                    case "rewipe":
                                                        {
                                                            PayVault TheUser = PlayerIO.GetUserPayVault("fb" + cmd[1]);
                                                            TheUser.Refresh(delegate ()
                                                            {
                                                                TheUser.Consume(TheUser.Items, delegate () { });
                                                                PlayerIO.BigDB.Load("PlayerObjects", "fb" + cmd[1], delegate (DatabaseObject PlayerObject)
                                                                {
                                                                    player.Send("sysmsg", "write", PlayerObject.GetString("fbname") + " rewiped!");
                                                                });
                                                            });
                                                            foreach (Player p in Players)
                                                            {
                                                                if (p.fbuid == cmd[1])
                                                                {
                                                                    p.Send("sysmsg", "refresh");
                                                                    p.Send("sysmsg", "alert", "You been rewiped!");
                                                                }
                                                            }
                                                        }
                                                        break;
                                                    case "ban":
                                                        foreach (Player p in Players)
                                                        {
                                                            if (p.ConnectUserId == "fb" + cmd[1])
                                                            {
                                                                p.Send("sysmsg", "isbanned", cmd[2], cmd[3]);
                                                                p.Disconnect();
                                                            }
                                                        }
                                                        PlayerIO.BigDB.Load("Main", "fb" + cmd[1], delegate (DatabaseObject bans)
                                                        {
                                                            bans.Set("banned", true);
                                                            bans.Set("ban_reason", cmd[2]);
                                                            bans.Set("ban_days", DateTime.Now.AddDays(Convert.ToInt32(cmd[3])));
                                                            bans.Save();
                                                            Broadcast("sysmsg", "write", bans.GetString("fbname") + ", Banned from Multiplayer!");
                                                        });
                                                        break;
                                                    case "unban":
                                                        PlayerIO.BigDB.Load("Main", "fb" + cmd[1], delegate (DatabaseObject bans)
                                                        {
                                                            bans.Set("banned", false);
                                                            bans.Set("ban_days", DateTime.Now);
                                                            bans.Set("ban_reason", "");
                                                            bans.Save();
                                                            player.Send("sysmsg", "write", bans.GetString("fbname") + ", Action Done!");
                                                        });
                                                        break;
                                                    case "closeroom":
                                                        Broadcast("sysmsg", "alert", "Room Closed By Admin/Mod");
                                                        if (player.ConnectUserId.Replace("fb", "") == player.fbuid)
                                                        {
                                                            Broadcast("sysmsg", "kick");
                                                        }
                                                        /*foreach (Player p in Players)
                                                            {
                                                                if (p.ConnectUserId.Replace("fb", "") == cmd[1])
                                                                {
                                                                    p.Send("sysmsg", "alert", "You are kicked by " + player.Name);
                                                                    p.Disconnect();
                                                                }
                                                            }*/
                                                        break;
                                                    case "change":
                                                        {
                                                            Broadcast("sysmsg", "change", cmd[1]);
                                                        }
                                                        break;
                                                    case "search":
                                                        foreach (Player p in Players)
                                                        {
                                                            player.Send("sysmsg", "write", p.Name + " : " + p.fbuid);
                                                        }
                                                        break;

                                                   /* case "muteall":
                                                        room.Set(RoomId + "_can", false);
                                                        room.Save();
                                                        Broadcast("sysmsg", "write", "<font color='#FF0000'>>>ChatMuted by " + player.Name);
                                                        break;
                                                    case "unmuteall":
                                                        room.Set(RoomId + "_can", true);
                                                        room.Save();
                                                        Broadcast("sysmsg", "write", "<font color='#00FF00'>>>ChatUnMuted by " + player.Name);
                                                        break;*/
                                                    case "playaudio":
                                                        if (music != "")
                                                        {
                                                            Broadcast("sysmsg", "stopaudio");
                                                            music = cmd[1];
                                                            Broadcast("sysmsg", "playaudio", cmd[1]);
                                                            Broadcast("sysmsg", "write", player.Name + " Played a music");
                                                        }
                                                        else
                                                        {
                                                            music = cmd[1];
                                                            Broadcast("sysmsg", "playaudio", cmd[1]);
                                                            Broadcast("sysmsg", "write", player.Name + " Played a music");
                                                        }
                                                        break;
                                                    case "stopaudio":
                                                        music = "";
                                                        Broadcast("sysmsg", "stopaudio");
                                                        player.Send("sysmsg", "write", "Music stopped");
                                                        break;
                                                    case "clear":
                                                        Broadcast("sysmsg", "clear", player.Name);
                                                        break;
                                                    case "add":
                                                        {
                                                            if (CheckBlacklist(cmd[1]))
                                                            {
                                                                List<BuyItemInfo> list = new List<BuyItemInfo>();
                                                                BuyItemInfo TheItem = new BuyItemInfo(cmd[1]);
                                                                for (int x = 0; x < Convert.ToInt32(cmd[2]); x++)
                                                                {
                                                                    list.Add(TheItem);
                                                                }
                                                                BuyItemInfo[] asd = list.ToArray();
                                                                vault.Give(asd, delegate () { });
                                                                player.Send("sysmsg", "write", "Item " + cmd[1] + " " + cmd[2] + "x Recieved");
                                                                player.Send("sysmsg", "refresh");
                                                            }
                                                            else
                                                            {
                                                                player.Send("sysmsg", "write", "No permission");
                                                            }
                                                        }
                                                        break;
                                                    case "addgoods":
                                                        {
                                                            if (Convert.ToInt32(cmd[2]) <= 100)
                                                            {
                                                                PayVault TheUser = PlayerIO.GetUserPayVault("fb" + cmd[1]);
                                                                TheUser.Refresh(delegate ()
                                                                {
                                                                    string[] items = { "secretgang", "deatheyes", "afro", "anon", "soldierhat", "gasmask", "darthvader", "vikings", "soldierhat", "baseballhat", "baseballbat", "crazytrollface", "megaphone", "bow", "redskinshoes", "piratehat", "featherhat", "zombieeyes", "zombiemouth", "zombieclaws", "rainbow", "greengirlshair", "pilgrimhat", "goggles", "ghostcap", "mangaeyes", "moneycap", "radioskin", "sadtrollface", "stash", "greengang", "napoleonhat", "gshoes", "pilothat", "mysteryitem" };
                                                                    List<BuyItemInfo> list = new List<BuyItemInfo>();
                                                                    foreach (string i in items)
                                                                    {
                                                                        BuyItemInfo TheItem = new BuyItemInfo(i);
                                                                        for (int x = 0; x < Convert.ToInt32(cmd[2]); x++)
                                                                        {
                                                                            list.Add(TheItem);
                                                                        }
                                                                    }
                                                                    BuyItemInfo[] asd = list.ToArray();
                                                                    TheUser.Give(asd, delegate ()
                                                                    {
                                                                        foreach (Player p in Players)
                                                                        {
                                                                            if (p.fbuid == cmd[1])
                                                                            {
                                                                                p.Send("sysmsg", "alert", player.Name + " gives you good items");
                                                                                p.Send("sysmsg", "refresh");
                                                                            }
                                                                        }
                                                                        player.Send("sysmsg", "write", "Action done!");
                                                                    });
                                                                });
                                                            }
                                                            else
                                                            {
                                                                player.Send("sysmsg", "write", "Action fail! 100 max");
                                                            }
                                                        }
                                                        break;
                                                    case "kick":
                                                        {
                                                            foreach (Player p in Players)
                                                            {
                                                                if (p.ConnectUserId.Replace("fb", "") == cmd[1])
                                                                {
                                                                    p.Send("sysmsg", "alert", "You are kicked by " + player.Name);
                                                                    p.Disconnect();
                                                                }
                                                            }
                                                        }
                                                        break;
                                                    case "giveallcoins":
                                                        foreach (Player p in Players)
                                                        {
                                                            var cmdcoins = Convert.ToUInt32(cmd[1]);
                                                            p.PayVault.Credit(cmdcoins, "Gaved by marketplace by cmd", delegate () { });
                                                            p.Send("sysmsg", "write", "You Received " + cmd[1] + " Coins From Ninja Race Team");

                                                        }
                                                        break;
                                                    case "event":
                                                        {
                                                            PlayerIO.BigDB.LoadOrCreate("Events", "Winners", delegate (DatabaseObject winners)
                                                            {
                                                                if (winners.GetBool("SpecialEvent", false) == false)
                                                                {
                                                                    winners.Set("maker_name", playerobj.GetString("fbname"));
                                                                    winners.Set("maker_id", player.ConnectUserId);
                                                                    winners.Set("items.item1", cmd[3]);
                                                                    winners.Set("items.item1_quantity", Convert.ToInt32(cmd[4]));
                                                                    winners.Set("items.item2", "");
                                                                    winners.Set("items.item2_quantity", 0);
                                                                    winners.Set("question", cmd[1]);
                                                                    winners.Set("answer", cmd[2]);
                                                                    winners.Set("winners.name1", "");
                                                                    winners.Set("winners.id1", "");
                                                                    winners.Set("winners.answer1", "");
                                                                    winners.Set("winners.name2", "");
                                                                    winners.Set("winners.id2", "");
                                                                    winners.Set("winners.answer2", "");
                                                                    winners.Set("winners.name3", "");
                                                                    winners.Set("winners.id3", "");
                                                                    winners.Set("winners.answer3", "");
                                                                    winners.Set("winners_count", 0);
                                                                    winners.Save();
                                                                    Broadcast("sysmsg", "write", "<HTML><FONT COLOR=" + '"' + "#F00F00" + '"' + "> *Server: New Event Check It Out!</font></HTML>");
                                                                    Broadcast("sysmsg", "newEvent", winners.GetString("maker_name"), winners.GetString("maker_id"), winners.GetInt("items.item1_quantity"), winners.GetString("items.item1"), winners.GetString("question"), winners.GetString("winners.id1"), winners.GetString("winners.id2"), winners.GetString("winners.id3"));
                                                                }
                                                                else
                                                                {
                                                                    player.Send("sysmsg", "write", "<font color='#FF0000'>&gt;&gt;Sorry A Special Event Is On Now!&lt;&lt;</font>");
                                                                }
                                                            });
                                                        }
                                                        break;
                                                    case "firsttosay":
                                                        {
                                                            if (CheckBlacklist(cmd[2]))
                                                            {
                                                                item = cmd[2];
                                                                word = cmd[1];
                                                                Broadcast("sysmsg", "write", "<font color='#FFEC33'>>>First to say '" + cmd[1] + "' win " + cmd[2]);
                                                            }
                                                        }
                                                        break;
                                                    case "give":
                                                        {
                                                            if (CheckBlacklist(cmd[2]))
                                                            {
                                                                PayVault TheUser = PlayerIO.GetUserPayVault("fb" + cmd[1]);
                                                                TheUser.Refresh(delegate ()
                                                                {
                                                                    List<BuyItemInfo> list = new List<BuyItemInfo>();
                                                                    BuyItemInfo TheItem = new BuyItemInfo(cmd[2]);
                                                                    for (int x = 0; x < Convert.ToInt32(cmd[3]); x++)
                                                                    {
                                                                        list.Add(TheItem);
                                                                    }
                                                                    BuyItemInfo[] asd = list.ToArray();
                                                                    TheUser.Give(asd, delegate ()
                                                                    {
                                                                        PlayerIO.BigDB.Load("PlayerObjects", "fb" + cmd[1], delegate (DatabaseObject PlayerObject)
                                                                        {
                                                                            player.Send("sysmsg", "write", "Item " + cmd[2] + " " + cmd[3] + "x has been credited to " + PlayerObject.GetString("fbname"));
                                                                        });
                                                                    });
                                                                });
                                                                foreach (Player p in Players)
                                                                {
                                                                    if (p.fbuid == cmd[1])
                                                                    {
                                                                        p.Send("sysmsg", "alert", "You Recieved " + cmd[2] + cmd[3] + "x");
                                                                        p.Send("sysmsg", "refresh");
                                                                    }
                                                                }
                                                            }
                                                        }
                                                        break;
                                                    case "rainbow":
                                                        if (!player.cooldown)
                                                        {
                                                            player.cooldown = true;
                                                            ScheduleCallback(delegate () { player.cooldown = false; }, 5000);
                                                            player.PayVault.Refresh(delegate ()
                                                            {
                                                                if (player.PayVault.Has("rainbowname"))
                                                                {
                                                                    if (player.rainbow)
                                                                    {
                                                                        player.rainbow = false;
                                                                        player.Send("sysmsg", "write", "<font color='#67FB12'>>>Your rainbow is now turned off</font>");
                                                                    }
                                                                    else
                                                                    {
                                                                        player.rainbow = true;
                                                                        player.Send("sysmsg", "write", "<font color='#67FB12'>>>Your rainbow is now turned on</font>");
                                                                    }
                                                                }
                                                                else
                                                                {
                                                                    player.Send("sysmsg", "write", "<font color='#FF0000'>>>You don't have rainbow name!</font>");
                                                                }
                                                            });
                                                        }
                                                        break;
                                                    case "cmd":
                                                        string[] cmds = { "/alert&[Message]", "/clear", "/add&[itemname]&[Quantity]", "/ban&[id]&[reason]&[days]", "/unban&[id]", "/closeroom", "/search","/add&[Item]&[Amount]", "/give_item&[Item]", "/give&[UID]&[Item]&[Amount]", "/remove&[itemname]&[Quantity]", "/removefrom&[id]&[itemanme]&[quantity]", "/rewipe&[id]","/playaudio&[link]", "/write&[msg]", "/stopaudio", "/mute&[UID]&[Num]&[m, h, d]", "/rainbow", "/firsttosay&[Word]&[item]", "/kick&[UID]" , "/plane", "/event&[question]&[answer]&[itemname]&[Quantity]", "/giveallcoins&[Quantity]", "/force" };
                                                        foreach (string x in cmds)
                                                        {
                                                            player.Send("sysmsg", "write", x);
                                                        }
                                                        break;
                                                }
                                            }
                                            else if (player.mpper == 3)
                                            {
                                                switch (cmd[0])
                                                {
                                                    case "rainbow":
                                                        if (!player.cooldown)
                                                        {
                                                            player.cooldown = true;
                                                            ScheduleCallback(delegate () { player.cooldown = false; }, 5000);
                                                            player.PayVault.Refresh(delegate ()
                                                            {
                                                                if (player.PayVault.Has("rainbowname"))
                                                                {
                                                                    if (player.rainbow)
                                                                    {
                                                                        player.rainbow = false;
                                                                        player.Send("sysmsg", "write", "<font color='#67FB12'>>>Your rainbow is now turned off</font>");
                                                                    }
                                                                    else
                                                                    {
                                                                        player.rainbow = true;
                                                                        player.Send("sysmsg", "write", "<font color='#67FB12'>>>Your rainbow is now turned on</font>");
                                                                    }
                                                                }
                                                                else
                                                                {
                                                                    player.Send("sysmsg", "write", "<font color='#FF0000'>>>You don't have rainbow name!</font>");
                                                                }
                                                            });
                                                        }
                                                        break;
                                                    case "clear":
                                                        Broadcast("sysmsg", "clear", player.Name);
                                                        break;
                                                    case "alert":
                                                        Broadcast("sysmsg", "alert", cmd[1]);
                                                        break;
                                                    case "mute":
                                                        PlayerIO.BigDB.Load("Main", "fb" + cmd[1], delegate (DatabaseObject main)
                                                        {
                                                            PlayerIO.BigDB.Load("PlayerObjects", "fb" + cmd[1], delegate (DatabaseObject playerobjsas)
                                                            {
                                                                string msg;
                                                                if (cmd[3] == "m")
                                                                {
                                                                    main.Set("muted", DateTime.UtcNow.AddMinutes(Convert.ToInt32(cmd[2])));
                                                                    main.Save();
                                                                    msg = "Minute(s)";
                                                                }
                                                                else if (cmd[3] == "h")
                                                                {
                                                                    main.Set("muted", DateTime.UtcNow.AddHours(Convert.ToInt32(cmd[2])));
                                                                    main.Save();
                                                                    msg = "Hour(s)";
                                                                }
                                                                else if (cmd[3] == "d")
                                                                {
                                                                    main.Set("muted", DateTime.UtcNow.AddDays(Convert.ToInt32(cmd[2])));
                                                                    main.Save();
                                                                    msg = "Day(s)";
                                                                }
                                                                else
                                                                {
                                                                    return;
                                                                }
                                                                Broadcast("sysmsg", "write", "<font color='#FF0000'>>>" + playerobjsas.GetString("fbname") + ", Got muted for " + cmd[2] + " " + msg + "</font>");
                                                            });
                                                        });
                                                        break;
                                                    case "cmd":
                                                        string[] cmds = { "/alert&[Message]", "/clear", "/mute&[UID]&[Num]&[m, h, d]", "/rainbow" };
                                                        foreach (string x in cmds)
                                                        {
                                                            player.Send("sysmsg", "write", x);
                                                        }
                                                        break;
                                                }
                                            }
                                            else if (player.mpper == 4)
                                            {
                                                switch (cmd[0])
                                                {
                                                    case "rainbow":
                                                        if (!player.cooldown)
                                                        {
                                                            player.cooldown = true;
                                                            ScheduleCallback(delegate () { player.cooldown = false; }, 5000);
                                                            player.PayVault.Refresh(delegate ()
                                                            {
                                                                if (player.PayVault.Has("rainbowname"))
                                                                {
                                                                    if (player.rainbow)
                                                                    {
                                                                        player.rainbow = false;
                                                                        player.Send("sysmsg", "write", "<font color='#67FB12'>>>Your rainbow is now turned off</font>");
                                                                    }
                                                                    else
                                                                    {
                                                                        player.rainbow = true;
                                                                        player.Send("sysmsg", "write", "<font color='#67FB12'>>>Your rainbow is now turned on</font>");
                                                                    }
                                                                }
                                                                else
                                                                {
                                                                    player.Send("sysmsg", "write", "<font color='#FF0000'>>>You don't have rainbow name!</font>");
                                                                }
                                                            });
                                                        }
                                                        break;
                                                    case "playaudio":
                                                        if (music != "")
                                                        {
                                                            Broadcast("sysmsg", "stopaudio");
                                                            music = cmd[1];
                                                            Broadcast("sysmsg", "playaudio", cmd[1]);
                                                            Broadcast("sysmsg", "write", player.Name + " Played a music");
                                                        }
                                                        else
                                                        {
                                                            music = cmd[1];
                                                            Broadcast("sysmsg", "playaudio", cmd[1]);
                                                            Broadcast("sysmsg", "write", player.Name + " Played a music");
                                                        }
                                                        break;
                                                    case "stopaudio":
                                                        music = "";
                                                        Broadcast("sysmsg", "stopaudio");
                                                        player.Send("sysmsg", "write", "Music stopped");
                                                        break;
                                                    case "cmd":
                                                        string[] cmds = { "/playaudio&[link]", "/stopaudio", "/rainbow" };
                                                        foreach (string x in cmds)
                                                        {
                                                            player.Send("sysmsg", "write", x);
                                                        }
                                                        break;
                                                }
                                            }
                                            else if (player.mpper < 1 || player.mpper >= 5)
                                            {
                                                switch (cmd[0])
                                                {
                                                    case "rainbow":
                                                        if (!player.cooldown)
                                                        {
                                                            player.cooldown = true;
                                                            ScheduleCallback(delegate () { player.cooldown = false; }, 5000);
                                                            player.PayVault.Refresh(delegate ()
                                                            {
                                                                if (player.PayVault.Has("rainbowname"))
                                                                {
                                                                    if (player.rainbow)
                                                                    {
                                                                        player.rainbow = false;
                                                                        player.Send("sysmsg", "write", "<font color='#67FB12'>>>Your rainbow is now turned off</font>");
                                                                    }
                                                                    else
                                                                    {
                                                                        player.rainbow = true;
                                                                        player.Send("sysmsg", "write", "<font color='#67FB12'>>>Your rainbow is now turned on</font>");
                                                                    }
                                                                }
                                                                else
                                                                {
                                                                    player.Send("sysmsg", "write", "<font color='#FF0000'>>>You don't have rainbow name!</font>");
                                                                }
                                                            });
                                                        }
                                                        break;
                                                    case "help":
                                                        string[] cmds = { "/rainbow" };
                                                        foreach (string x in cmds)
                                                        {
                                                            player.Send("sysmsg", "write", x);
                                                        }
                                                        break;
                                                }
                                            }
                                        });
                                    });
                                });
                                break;
                            case "offer_update":
                                PlayerIO.BigDB.LoadOrCreate("PlayerObjects", player.ConnectUserId, delegate (DatabaseObject playerobj)
                                {
                                    player.PayVault.Refresh(delegate ()
                                    {
                                        player.myoffer = message.GetString(1);
                                        if (player.PayVault.Has("japanbg1") && playerobj.GetString("bg") == "japanbg1")
                                        {
                                            player.cdbg = "japanbg1";
                                        }
                                        Broadcast("pubmsg", player.Id, "offer_update", player.myoffer, player.cdbg);
                                    });
                                });
                                break;
                            case "offer_close":
                                player.myoffer = "";
                                Broadcast("pubmsg", player.Id, "offer_close");
                                break;
                            case "wanna_trade":
                                foreach (Player p in Players)
                                {
                                    if (p.Id == message.GetInt(1))
                                    {
                                        if (p.status == "0")
                                        {
                                            if (player.petname != "")
                                            {
                                                p.Send("sysmsg", "hasPet", player.Id, player.petname);
                                            }
                                            if (p.petname != "")
                                            {
                                                player.Send("sysmsg", "hasPet", p.Id, p.petname);
                                            }
                                            string theitem = p.myoffer;
                                            p.Send("privmsg", player.Id, "partnerFound");
                                            p.partner = player.Id;
                                            p.status = "1";
                                            player.partner = p.Id;
                                            player.busy = true;
                                            p.busy = true;
                                            player.Send("privmsg", message.GetInt(1), "trade_ok", theitem);
                                            Broadcast("pubmsg", message.GetInt(1), "trade_busy", true);
                                        }
                                        else
                                        {
                                            player.Send("sysmsg", "alert", "This Player is trading Someone else!");
                                        }
                                    }
                                }
                                break;
                            case "trade_reject":
                                foreach (Player p in Players)
                                {
                                    if (p.Id == message.GetInt(1))
                                    {
                                        p.Send("privmsg", p.Id, "trade_reject");
                                        resetTrade(p.Id, player.Id);
                                    }
                                }
                                break;
                            case "trade_leave":
                                foreach (Player p in Players)
                                {
                                    if (p.Id == message.GetInt(1))
                                    {
                                        p.Send("privmsg", p.Id, "trade_leave");
                                        resetTrade(player.Id, p.Id);
                                    }
                                }
                                break;
                            case "trade_lock":
                                foreach (Player p in Players)
                                {
                                    if (p.Id == message.GetInt(1))
                                    {
                                        p.Send("privmsg", p.Id, "trade_lock");
                                    }
                                }
                                break;
                            case "trade_accept":
                                foreach (Player p in Players)
                                {
                                    if (p.Id == message.GetInt(1))
                                    {
                                        p.Send("sysmsg", "trexe_consent", player.Id, p.offer1, p.offerqnt1, p.offer2, p.offerqnt2, p.offer3, p.offerqnt3, p.offer4, p.offerqnt4, p.offer5, p.offerqnt5, p.offer6, p.offerqnt6, player.myoffer, 1, "", 1, "", 1, "", 1, "", 1, "", 1, p.mycoins, 0);
                                        player.Send("sysmsg", "trexe_consent", p.Id, player.myoffer, 1, "", 1, "", 1, "", 1, "", 1, "", 1, p.offer1, p.offerqnt1, p.offer2, p.offerqnt2, p.offer3, p.offerqnt3, p.offer4, p.offerqnt4, p.offer5, p.offerqnt5, p.offer6, p.offerqnt6, 0, p.mycoins);
                                    }
                                }
                                break;
                            case "trade_consent":
                                foreach (Player p in Players)
                                {
                                    if (p.Id == player.partner)
                                    {
                                        if (p.Id == player.partner)
                                        {
                                            player.PayVault.Refresh(delegate ()
                                            {
                                                p.PayVault.Refresh(delegate ()
                                                {
                                                    if (p.ready)
                                                    {
                                                        p.Send("privmsg", player.Id, "doingTrade");
                                                        player.Send("privmsg", p.Id, "doingTrade");
                                                        List<VaultItem> Toremove1 = new List<VaultItem>();
                                                        List<BuyItemInfo> Toadd1 = new List<BuyItemInfo>();
                                                        List<VaultItem> Toremove2 = new List<VaultItem>();
                                                        List<BuyItemInfo> Toadd2 = new List<BuyItemInfo>();
                                                        VaultItem[] items1 = p.PayVault.Items;
                                                        VaultItem[] items2 = player.PayVault.Items;
                                                        int qnt1 = 0;
                                                        int qnt2 = 0;
                                                        int qnt3 = 0;
                                                        int qnt4 = 0;
                                                        int qnt5 = 0;
                                                        int qnt6 = 0;
                                                        int qnt7 = 0;
                                                        int qnt8 = 0;
                                                        int qnt9 = 0;
                                                        int qnt10 = 0;
                                                        int qnt11 = 0;
                                                        int qnt12 = 0;
                                                        bool error = false;
                                                        PlayerIO.BigDB.LoadOrCreate("Logs", player.ConnectUserId, delegate (DatabaseObject trade)
                                                    {
                                                        PlayerIO.BigDB.LoadOrCreate("Logs", p.ConnectUserId, delegate (DatabaseObject histrade)
                                                        {
                                                            int Shew = 0;
                                                            string MyDetailsToGive = "Give: ";
                                                            string MyDetailsToGet = "Got: ";
                                                            string HisDetailsToGive = "Give: ";
                                                            string HisDetailsToGet = "Got: ";
                                                            string MyShit = DateTime.Now.Month + "/" + DateTime.Now.Day + "." + p.Name + ":" + p.ConnectUserId;
                                                            string HisShit = DateTime.Now.Month + "/" + DateTime.Now.Day + "." + player.Name + ":" + player.ConnectUserId;
                                                            DatabaseArray NewMyList = new DatabaseArray();
                                                            DatabaseArray NewHisList = new DatabaseArray();
                                                            if (trade.Contains(MyShit) && histrade.Contains(HisShit))
                                                            {
                                                                for (Shew = 0; Shew < trade.GetArray(MyShit).Count; Shew++)
                                                                {
                                                                    NewMyList.Add(trade.GetArray(MyShit).GetString(Shew));
                                                                }
                                                                for (Shew = 0; Shew < histrade.GetArray(HisShit).Count; Shew++)
                                                                {
                                                                    NewHisList.Add(histrade.GetArray(HisShit).GetString(Shew));
                                                                }
                                                            }
                                                            if (player.offer1 != "")
                                                            {
                                                                MyDetailsToGive += player.offer1 + ":" + player.offerqnt1 + " ";
                                                                HisDetailsToGet += player.offer1 + ":" + player.offerqnt1 + " ";
                                                                for (int y = 0; y < items2.Length; y++)
                                                                {
                                                                    if (items2[y].ItemKey == player.offer1)
                                                                    {
                                                                        if (qnt1 < player.offerqnt1)
                                                                        {
                                                                            BuyItemInfo TheItem = new BuyItemInfo(player.offer1);
                                                                            Toremove1.Add(items2[y]);
                                                                            Toadd1.Add(TheItem);
                                                                            qnt1 += 1;
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                            if (player.offer2 != "")
                                                            {
                                                                MyDetailsToGive += player.offer2 + ":" + player.offerqnt2 + " ";
                                                                HisDetailsToGet += player.offer2 + ":" + player.offerqnt2 + " ";
                                                                for (int y = 0; y < items2.Length; y++)
                                                                {
                                                                    if (items2[y].ItemKey == player.offer2)
                                                                    {
                                                                        if (qnt2 < player.offerqnt2)
                                                                        {
                                                                            BuyItemInfo TheItem = new BuyItemInfo(player.offer2);
                                                                            Toremove1.Add(items2[y]);
                                                                            Toadd1.Add(TheItem);
                                                                            qnt2 += 1;
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                            if (player.offer3 != "")
                                                            {
                                                                MyDetailsToGive += player.offer3 + ":" + player.offerqnt3 + " ";
                                                                HisDetailsToGet += player.offer3 + ":" + player.offerqnt3 + " ";
                                                                for (int y = 0; y < items2.Length; y++)
                                                                {
                                                                    if (items2[y].ItemKey == player.offer3)
                                                                    {
                                                                        if (qnt3 < player.offerqnt3)
                                                                        {
                                                                            BuyItemInfo TheItem = new BuyItemInfo(player.offer3);
                                                                            Toremove1.Add(items2[y]);
                                                                            Toadd1.Add(TheItem);
                                                                            qnt3 += 1;
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                            if (player.offer4 != "")
                                                            {
                                                                MyDetailsToGive += player.offer4 + ":" + player.offerqnt4 + " ";
                                                                HisDetailsToGet += player.offer4 + ":" + player.offerqnt4 + " ";
                                                                for (int y = 0; y < items2.Length; y++)
                                                                {
                                                                    if (items2[y].ItemKey == player.offer4)
                                                                    {
                                                                        if (qnt4 < player.offerqnt4)
                                                                        {
                                                                            BuyItemInfo TheItem = new BuyItemInfo(player.offer4);
                                                                            Toremove1.Add(items2[y]);
                                                                            Toadd1.Add(TheItem);
                                                                            qnt4 += 1;
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                            if (player.offer5 != "")
                                                            {
                                                                MyDetailsToGive += player.offer5 + ":" + player.offerqnt5 + " ";
                                                                HisDetailsToGet += player.offer5 + ":" + player.offerqnt5 + " ";
                                                                for (int y = 0; y < items2.Length; y++)
                                                                {
                                                                    if (items2[y].ItemKey == player.offer5)
                                                                    {
                                                                        if (qnt5 < player.offerqnt5)
                                                                        {
                                                                            BuyItemInfo TheItem = new BuyItemInfo(player.offer5);
                                                                            Toremove1.Add(items2[y]);
                                                                            Toadd1.Add(TheItem);
                                                                            qnt5 += 1;
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                            if (player.offer6 != "")
                                                            {
                                                                MyDetailsToGive += player.offer6 + ":" + player.offerqnt6 + " ";
                                                                HisDetailsToGet += player.offer6 + ":" + player.offerqnt6 + " ";
                                                                for (int y = 0; y < items2.Length; y++)
                                                                {
                                                                    if (items2[y].ItemKey == player.offer6)
                                                                    {
                                                                        if (qnt6 < player.offerqnt6)
                                                                        {
                                                                            BuyItemInfo TheItem = new BuyItemInfo(player.offer6);
                                                                            Toremove1.Add(items2[y]);
                                                                            Toadd1.Add(TheItem);
                                                                            qnt6 += 1;
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                            if (p.offer1 != "")
                                                            {
                                                                MyDetailsToGet += p.offer1 + ":" + p.offerqnt1 + " ";
                                                                HisDetailsToGive += p.offer1 + ":" + p.offerqnt1 + " ";
                                                                for (int y = 0; y < items1.Length; y++)
                                                                {
                                                                    if (items1[y].ItemKey == p.offer1)
                                                                    {
                                                                        if (qnt7 < p.offerqnt1)
                                                                        {
                                                                            BuyItemInfo TheItem = new BuyItemInfo(p.offer1);
                                                                            Toremove2.Add(items1[y]);
                                                                            Toadd2.Add(TheItem);
                                                                            qnt7 += 1;
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                            if (p.offer2 != "")
                                                            {
                                                                MyDetailsToGet += p.offer2 + ":" + p.offerqnt2 + " ";
                                                                HisDetailsToGive += p.offer2 + ":" + p.offerqnt2 + " ";
                                                                for (int y = 0; y < items1.Length; y++)
                                                                {
                                                                    if (items1[y].ItemKey == p.offer2)
                                                                    {
                                                                        if (qnt8 < p.offerqnt2)
                                                                        {
                                                                            BuyItemInfo TheItem = new BuyItemInfo(p.offer2);
                                                                            Toremove2.Add(items1[y]);
                                                                            Toadd2.Add(TheItem);
                                                                            qnt8 += 1;
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                            if (p.offer3 != "")
                                                            {
                                                                MyDetailsToGet += p.offer3 + ":" + p.offerqnt3 + " ";
                                                                HisDetailsToGive += p.offer3 + ":" + p.offerqnt3 + " ";
                                                                for (int y = 0; y < items1.Length; y++)
                                                                {
                                                                    if (items1[y].ItemKey == p.offer3)
                                                                    {
                                                                        if (qnt9 < p.offerqnt3)
                                                                        {
                                                                            BuyItemInfo TheItem = new BuyItemInfo(p.offer3);
                                                                            Toremove2.Add(items1[y]);
                                                                            Toadd2.Add(TheItem);
                                                                            qnt9 += 1;
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                            if (p.offer4 != "")
                                                            {
                                                                MyDetailsToGet += p.offer4 + ":" + p.offerqnt4 + " ";
                                                                HisDetailsToGive += p.offer4 + ":" + p.offerqnt4 + " ";
                                                                for (int y = 0; y < items1.Length; y++)
                                                                {
                                                                    if (items1[y].ItemKey == p.offer4)
                                                                    {
                                                                        if (qnt10 < p.offerqnt4)
                                                                        {
                                                                            BuyItemInfo TheItem = new BuyItemInfo(p.offer4);
                                                                            Toremove2.Add(items1[y]);
                                                                            Toadd2.Add(TheItem);
                                                                            qnt10 += 1;
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                            if (p.offer5 != "")
                                                            {
                                                                MyDetailsToGet += p.offer5 + ":" + p.offerqnt5 + " ";
                                                                HisDetailsToGive += p.offer5 + ":" + p.offerqnt5 + " ";
                                                                for (int y = 0; y < items1.Length; y++)
                                                                {
                                                                    if (items1[y].ItemKey == p.offer5)
                                                                    {
                                                                        if (qnt11 < p.offerqnt5)
                                                                        {
                                                                            BuyItemInfo TheItem = new BuyItemInfo(p.offer5);
                                                                            Toremove2.Add(items1[y]);
                                                                            Toadd2.Add(TheItem);
                                                                            qnt11 += 1;
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                            if (p.offer6 != "")
                                                            {
                                                                MyDetailsToGet += p.offer6 + ":" + p.offerqnt6 + " ";
                                                                HisDetailsToGive += p.offer6 + ":" + p.offerqnt6 + " ";
                                                                for (int y = 0; y < items1.Length; y++)
                                                                {
                                                                    if (items1[y].ItemKey == p.offer6)
                                                                    {
                                                                        if (qnt12 < p.offerqnt6)
                                                                        {
                                                                            BuyItemInfo TheItem = new BuyItemInfo(p.offer6);
                                                                            Toremove2.Add(items1[y]);
                                                                            Toadd2.Add(TheItem);
                                                                            qnt12 += 1;
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                            if (player.offerqnt1 == qnt1 && player.offerqnt2 == qnt2 && player.offerqnt3 == qnt3 && player.offerqnt4 == qnt4 && player.offerqnt5 == qnt5 && player.offerqnt6 == qnt6)
                                                            {
                                                                if (p.offerqnt1 == qnt7 && p.offerqnt2 == qnt8 && p.offerqnt3 == qnt9 && p.offerqnt4 == qnt10 && p.offerqnt5 == qnt11 && p.offerqnt6 == qnt12)
                                                                {
                                                                    BuyItemInfo[] get = Toadd2.ToArray();
                                                                    VaultItem[] remove = Toremove1.ToArray();
                                                                    if (player.myoffer != "")
                                                                    {
                                                                        NewMyList.Add("Offer: " + player.myoffer + " " + MyDetailsToGet);
                                                                        NewHisList.Add("HisOffer: " + player.myoffer + " " + HisDetailsToGive);
                                                                        player.PayVault.Consume(new VaultItem[] { player.PayVault.First(player.myoffer) }, delegate () { });
                                                                        p.PayVault.Give(new BuyItemInfo[] { new BuyItemInfo(player.myoffer) }, delegate () { });
                                                                        player.PayVault.Give(get, delegate () { });
                                                                    }
                                                                    else
                                                                    {
                                                                        player.PayVault.Consume(remove, delegate () { });
                                                                        player.PayVault.Give(get, delegate () { });
                                                                    }
                                                                }
                                                                else
                                                                {
                                                                    error = true;
                                                                }
                                                            }
                                                            else
                                                            {
                                                                error = true;
                                                            }
                                                            if (p.offerqnt1 == qnt7 && p.offerqnt2 == qnt8 && p.offerqnt3 == qnt9 && p.offerqnt4 == qnt10 && p.offerqnt5 == qnt11 && p.offerqnt6 == qnt12)
                                                            {
                                                                if (player.offerqnt1 == qnt1 && player.offerqnt2 == qnt2 && player.offerqnt3 == qnt3 && player.offerqnt4 == qnt4 && player.offerqnt5 == qnt5 && player.offerqnt6 == qnt6)
                                                                {
                                                                    BuyItemInfo[] get = Toadd1.ToArray();
                                                                    VaultItem[] remove = Toremove2.ToArray();
                                                                    if (p.myoffer != "")
                                                                    {
                                                                        NewMyList.Add("HisOffer: " + p.myoffer + " " + MyDetailsToGive);
                                                                        NewHisList.Add("Offer: " + p.myoffer + " " + HisDetailsToGet);
                                                                        p.PayVault.Consume(new VaultItem[] { p.PayVault.First(p.myoffer) }, delegate () { });
                                                                        player.PayVault.Give(new BuyItemInfo[] { new BuyItemInfo(p.myoffer) }, delegate () { });
                                                                        p.PayVault.Give(get, delegate () { });
                                                                    }
                                                                    else
                                                                    {
                                                                        p.PayVault.Consume(remove, delegate () { });
                                                                        p.PayVault.Give(get, delegate () { });
                                                                    }
                                                                }
                                                                else
                                                                {
                                                                    error = true;
                                                                }
                                                            }
                                                            else
                                                            {
                                                                error = true;
                                                            }
                                                            ScheduleCallback(delegate
                                                            {
                                                                if (!error)
                                                                {
                                                                    trade.Set(MyShit, NewMyList);
                                                                    trade.Save();
                                                                    histrade.Set(HisShit, NewHisList);
                                                                    histrade.Save();
                                                                    player.Send("privmsg", p.Id, "tradeSuccess", player.partner);
                                                                    p.Send("privmsg", player.Id, "tradeSuccess", player.Id);
                                                                }
                                                                else
                                                                {
                                                                    p.Send("privmsg", player.Id, "tradeFail", 400);
                                                                    player.Send("privmsg", player.partner, "tradeFail", 400);
                                                                }
                                                                player.Send("sysmsg", "refresh");
                                                                p.Send("sysmsg", "refresh");
                                                                Broadcast("pubmsg", player.Id, "offer_close");
                                                                Broadcast("pubmsg", player.partner, "offer_close");
                                                                resetTrade(player.Id, p.Id);
                                                                resetTrade(p.Id, player.Id);
                                                                p.ready = false;
                                                                p.partner = 0;
                                                                p.status = "0";
                                                                p.busy = false;
                                                                player.ready = false;
                                                                player.partner = 0;
                                                                player.status = "0";
                                                                player.busy = false;
                                                            }, 1000);
                                                        });
                                                    });
                                                    }
                                                    else
                                                    {
                                                        player.ready = true;
                                                    }
                                                });
                                            });
                                        }
                                    }
                                }
                                break;
                            case "trade_noconsent":
                                foreach (Player p in Players)
                                {
                                    if (p.Id == player.partner)
                                    {
                                        p.Send("privmsg", player.Id, "tradeFail", 500);
                                        player.Send("privmsg", p.Id, "tradeFail", 500);
                                        p.myoffer = "";
                                        p.offer1 = "";
                                        p.offerqnt1 = 0;
                                        p.offer2 = "";
                                        p.offerqnt2 = 0;
                                        p.offer3 = "";
                                        p.offerqnt3 = 0;
                                        p.offer4 = "";
                                        p.offerqnt4 = 0;
                                        p.offer5 = "";
                                        p.offerqnt5 = 0;
                                        p.offer6 = "";
                                        p.offerqnt6 = 0;
                                        p.mycoins = 0;
                                        p.partner = 0;
                                        p.status = "0";
                                        p.busy = false;
                                        p.ready = false;
                                    }
                                    player.ready = false;
                                    player.myoffer = "";
                                    player.offer1 = "";
                                    player.offerqnt1 = 0;
                                    player.offer2 = "";
                                    player.offerqnt2 = 0;
                                    player.offer3 = "";
                                    player.offerqnt3 = 0;
                                    player.offer4 = "";
                                    player.offerqnt4 = 0;
                                    player.offer5 = "";
                                    player.offerqnt5 = 0;
                                    player.offer6 = "";
                                    player.offerqnt6 = 0;
                                    player.mycoins = 0;
                                    player.partner = 0;
                                    player.status = "0";
                                    player.busy = false;
                                }
                                break;
                            case "trade_unlock":
                                foreach (Player p in Players)
                                {
                                    if (p.Id == message.GetInt(1))
                                    {
                                        p.Send("privmsg", p.Id, "trade_unlock");
                                    }
                                }
                                break;
                            case "trade_item_update":
                                foreach (Player p in Players)
                                {
                                    if (p.Id == message.GetInt(1))
                                    {
                                        if (message.GetInt(2) == 1)
                                        {
                                            if (message.GetString(3) != player.offer2 && message.GetString(3) != player.offer3 && message.GetString(3) != player.offer4 && message.GetString(3) != player.offer5 && message.GetString(3) != player.offer6)
                                            {
                                                if (message.GetInt(4) == 0)
                                                {

                                                }
                                                else if (message.GetInt(4) != player.offerqnt1 + 1)
                                                {
                                                    return;
                                                }
                                                player.offer1 = message.GetString(3);
                                                player.offerqnt1 = message.GetInt(4);
                                            }
                                        }
                                        else if (message.GetInt(2) == 2)
                                        {
                                            if (message.GetString(3) != player.offer1 && message.GetString(3) != player.offer3 && message.GetString(3) != player.offer4 && message.GetString(3) != player.offer5 && message.GetString(3) != player.offer6)
                                            {
                                                if (message.GetInt(4) == 0)
                                                {

                                                }
                                                else if (message.GetInt(4) != player.offerqnt2 + 1)
                                                {
                                                    return;
                                                }
                                                player.offer2 = message.GetString(3);
                                                player.offerqnt2 = message.GetInt(4);
                                            }
                                        }
                                        else if (message.GetInt(2) == 3)
                                        {
                                            if (message.GetString(3) != player.offer1 && message.GetString(3) != player.offer2 && message.GetString(3) != player.offer4 && message.GetString(3) != player.offer5 && message.GetString(3) != player.offer6)
                                            {
                                                if (message.GetInt(4) == 0)
                                                {

                                                }
                                                else if (message.GetInt(4) != player.offerqnt3 + 1)
                                                {
                                                    return;
                                                }
                                                player.offer3 = message.GetString(3);
                                                player.offerqnt3 = message.GetInt(4);
                                            }
                                        }
                                        else if (message.GetInt(2) == 4)
                                        {
                                            if (message.GetString(3) != player.offer1 && message.GetString(3) != player.offer2 && message.GetString(3) != player.offer3 && message.GetString(3) != player.offer5 && message.GetString(3) != player.offer6)
                                            {
                                                if (message.GetInt(4) == 0)
                                                {

                                                }
                                                else if (message.GetInt(4) != player.offerqnt4 + 1)
                                                {
                                                    return;
                                                }
                                                player.offer4 = message.GetString(3);
                                                player.offerqnt4 = message.GetInt(4);
                                            }
                                        }
                                        else if (message.GetInt(2) == 5)
                                        {
                                            if (message.GetString(3) != player.offer1 && message.GetString(3) != player.offer2 && message.GetString(3) != player.offer3 && message.GetString(3) != player.offer4 && message.GetString(3) != player.offer6)
                                            {
                                                if (message.GetInt(4) == 0)
                                                {

                                                }
                                                else if (message.GetInt(4) != player.offerqnt5 + 1)
                                                {
                                                    return;
                                                }
                                                player.offer5 = message.GetString(3);
                                                player.offerqnt5 = message.GetInt(4);
                                            }
                                        }
                                        else if (message.GetInt(2) == 6)
                                        {
                                            if (message.GetString(3) != player.offer1 && message.GetString(3) != player.offer2 && message.GetString(3) != player.offer3 && message.GetString(3) != player.offer4 && message.GetString(3) != player.offer5)
                                            {
                                                if (message.GetInt(4) == 0)
                                                {

                                                }
                                                else if (message.GetInt(4) != player.offerqnt6 + 1)
                                                {
                                                    return;
                                                }
                                                player.offer6 = message.GetString(3);
                                                player.offerqnt6 = message.GetInt(4);
                                            }
                                        }
                                        p.Send("privmsg", message.GetInt(1), "trade_item_update", message.GetInt(2), message.GetString(3), message.GetInt(4));
                                    }
                                }
                                break;
                            case "giftbox":
                                if (player.giftbox)
                                {
                                    player.PayVault.Refresh(delegate ()
                                    {
                                        player.giftbox = false;
                                        string[] prize = { "afro", "anon", "redskinshoes", "napoleonhat", "megaphone", "sadtrollface", "baseballhat", "baseballbat", "featherhat", "bow", "piratehat", "crazytrollface", "goggles", "ghostcap", "moneycap", "zombieclaws", "zombiemouth", "zombieeyes" };
                                        Random random = new Random();
                                        int i = random.Next(0, prize.Length);
                                        int luck = random.Next(1, 5);
                                        if (luck <= 3)
                                        {
                                            player.PayVault.Give(new BuyItemInfo[] { new BuyItemInfo(prize[i]) }, delegate ()
                                            {
                                                player.Send("sysmsg", "write", "<font color='#67FB12'>>>You got " + prize[i] + " from 5 minutes Gift </font>");
                                                player.Send("sysmsg", "refresh");
                                            });
                                        }
                                        else
                                        {
                                            player.Send("sysmsg", "write", "<font color='#FF0000'>>>Better luck next time :)</font>");
                                        }
                                    });
                                }
                                break;
                        }
                    }
                    break;
                case "pubmsg":
                    {
                        PayVault vault = player.PayVault;
                        switch (message.GetString(0))
                        {

                            case "loadEvents":
                                PlayerIO.BigDB.LoadOrCreate("PlayerObjects", player.ConnectUserId, delegate (DatabaseObject PlayerObjects)
                                {
                                    PlayerIO.BigDB.LoadOrCreate("Events", "Winners", delegate (DatabaseObject winners)
                                    {
                                        var MakerName = winners.GetString("maker_name", "");//m.getString(0)
                                        var MakerLink = winners.GetString("maker_id", "");//m.getString(1)
                                        var LastCode = winners.GetString("answer", "");//m.getString(2)
                                        var MakerCount = winners.GetInt("items.item1_quantity", 0);//m.GetString(3)
                                        var MakerCount2 = winners.GetInt("items.item2_quantity", 0);//m.GetString(3)
                                        var MakerItem = winners.GetString("items.item1", "");//m.getString(4)
                                        var MakerItem2 = winners.GetString("items.item2", "");//m.getString(5)
                                        var SpecialEvent = winners.GetBool("SpecialEvent", false);//m.GetBool(6)
                                        var SmallDescription = winners.GetString("question", "");//m.getString(7)
                                        var Name = winners.GetString("winners.name1", "");//m.getString(8)
                                        var Link = winners.GetString("winners.id1", "");//m.getString(9)
                                        var LastCodeEntred = winners.GetString("winners.answer1", "");//m.getString(10)
                                        var Name2 = winners.GetString("winners.name2", "");//m.getString(11)
                                        var Link2 = winners.GetString("winners.id2", "");//m.getString(12)
                                        var LastCodeEntred2 = winners.GetString("winners.answer2", "");//m.getString(13)
                                        var Name3 = winners.GetString("winners.name3", "");//m.getString(14)
                                        var Link3 = winners.GetString("winners.id3", "");//m.getString(15)
                                        var LastCodeEntred3 = winners.GetString("winners.answer3", "");//m.getString(16)
                                        winners.Save();
                                        Console.WriteLine("Show: " + SmallDescription);
                                        player.Send("sysmsg", "loadedEvents", MakerName, MakerLink, LastCode, MakerCount, MakerItem, MakerItem2, SpecialEvent, SmallDescription, Name, Link, LastCodeEntred, Name2, Link2, LastCodeEntred2, Name3, Link3, LastCodeEntred3, MakerCount2);
                                    });
                                });
                                break;
                            case "submitEvent":
                                PlayerIO.BigDB.LoadOrCreate("PlayerObjects", player.ConnectUserId, delegate (DatabaseObject xd)
                                {
                                    PlayerIO.BigDB.LoadOrCreate("Events", "Winners", delegate (DatabaseObject winners)
                                    {
                                        if (winners.GetString("answer") != "")
                                        {
                                            if (winners.GetString("maker_id") != player.ConnectUserId)
                                            {
                                                if (winners.GetInt("winners_count") < 3)
                                                {
                                                    if (player.ConnectUserId != winners.GetString("winners.id1"))
                                                    {
                                                        if (player.ConnectUserId != winners.GetString("winners.id2"))
                                                        {
                                                            if (player.ConnectUserId != winners.GetString("winners.id3"))
                                                            {
                                                                if (message.GetString(1).Equals(winners.GetString("answer"), StringComparison.InvariantCultureIgnoreCase))
                                                                {
                                                                    if (winners.GetString("items.item2") != "")
                                                                    {
                                                                        if (winners.GetString("winners.name1") == "")
                                                                        {
                                                                            winners.Set("winners.name1", xd.GetString("fbname"));
                                                                            winners.Set("winners.id1", player.ConnectUserId);
                                                                            winners.Set("winners.answer1", message.GetString(1));
                                                                            winners.Save();
                                                                            Broadcast("sysmsg", "updateWinner", winners.GetString("winners.name1"), winners.GetString("winners.id1"));
                                                                        }
                                                                        else if (winners.GetString("winners.name2") == "")
                                                                        {
                                                                            if (winners.GetString("winners.name1").Equals(player.ConnectUserId)) return;
                                                                            winners.Set("winners.name2", xd.GetString("fbname"));
                                                                            winners.Set("winners.id2", player.ConnectUserId);
                                                                            winners.Set("winners.answer2", message.GetString(1));
                                                                            winners.Save();
                                                                            Broadcast("sysmsg", "updateWinner2", winners.GetString("winners.name2"), winners.GetString("winners.id2"));
                                                                        }
                                                                        else if (winners.GetString("winners.name3") == "")
                                                                        {
                                                                            if (winners.GetString("winners.name1").Equals(player.ConnectUserId) && winners.GetString("winners.name2").Equals(player.ConnectUserId)) return;
                                                                            winners.Set("winners.name3", xd.GetString("fbname"));
                                                                            winners.Set("winners.id3", player.ConnectUserId);
                                                                            winners.Set("winners.answer3", message.GetString(1));
                                                                            winners.Save();
                                                                            Broadcast("sysmsg", "updateWinner3", winners.GetString("winners.name3"), winners.GetString("winners.id3"));
                                                                        }

                                                                        winners.Set("winners_count", winners.GetInt("winners_count") + 1);
                                                                        winners.Save();
                                                                        List<BuyItemInfo> list = new List<BuyItemInfo>();
                                                                        List<BuyItemInfo> newlist = new List<BuyItemInfo>();
                                                                        BuyItemInfo TheItem = new BuyItemInfo(winners.GetString("items.item1"));
                                                                        BuyItemInfo TheItem2 = new BuyItemInfo(winners.GetString("items.item2"));
                                                                        for (int x = 0; x < winners.GetInt("items.item1_quantity"); x++)
                                                                        {
                                                                            list.Add(TheItem);
                                                                        }
                                                                        for (int x = 0; x < winners.GetInt("items.item2_quantity"); x++)
                                                                        {
                                                                            newlist.Add(TheItem);
                                                                        }
                                                                        BuyItemInfo[] asd = list.ToArray();
                                                                        BuyItemInfo[] zxc = newlist.ToArray();
                                                                        vault.Give(asd, delegate () { });
                                                                        vault.Give(zxc, delegate () { });
                                                                        player.Send("sysmsg", "refresh");
                                                                        player.Send("sysmsg", "alert", "Congratulations! You have won " + winners.GetString("items.item1") + " and " + winners.GetString("items.item2"), ", Server");
                                                                        Broadcast("sysmsg", "write", "<HTML><FONT COLOR=" + '"' + "#00FF00" + '"' + "> " + player.Name + " won in a Event!" + "</font></HTML>");
                                                                    }
                                                                    else
                                                                    {
                                                                        if (winners.GetString("winners.name1") == "")
                                                                        {
                                                                            winners.Set("winners.name1", xd.GetString("fbname"));
                                                                            winners.Set("winners.id1", player.ConnectUserId);
                                                                            winners.Set("winners.answer1", message.GetString(1));
                                                                            winners.Save();
                                                                            Broadcast("sysmsg", "updateWinner", winners.GetString("winners.name1"), winners.GetString("winners.id1"));
                                                                        }
                                                                        else if (winners.GetString("winners.name2") == "")
                                                                        {
                                                                            if (winners.GetString("winners.name1").Equals(player.ConnectUserId)) return;
                                                                            winners.Set("winners.name2", xd.GetString("fbname"));
                                                                            winners.Set("winners.id2", player.ConnectUserId);
                                                                            winners.Set("winners.answer2", message.GetString(1));
                                                                            winners.Save();
                                                                            Broadcast("sysmsg", "updateWinner2", winners.GetString("winners.name2"), winners.GetString("winners.id2"));
                                                                        }
                                                                        else if (winners.GetString("winners.name3") == "")
                                                                        {
                                                                            if (winners.GetString("winners.name1").Equals(player.ConnectUserId) && winners.GetString("winners.name2").Equals(player.ConnectUserId)) return;
                                                                            winners.Set("winners.name3", xd.GetString("fbname"));
                                                                            winners.Set("winners.id3", player.ConnectUserId);
                                                                            winners.Set("winners.answer3", message.GetString(1));
                                                                            winners.Save();
                                                                            Broadcast("sysmsg", "updateWinner3", winners.GetString("winners.name3"), winners.GetString("winners.id3"));
                                                                        }

                                                                        winners.Set("winners_count", winners.GetInt("winners_count") + 1);
                                                                        winners.Save();
                                                                        List<BuyItemInfo> list = new List<BuyItemInfo>();
                                                                        List<BuyItemInfo> newlist = new List<BuyItemInfo>();
                                                                        BuyItemInfo TheItem = new BuyItemInfo(winners.GetString("items.item1"));
                                                                        for (int x = 0; x < winners.GetInt("items.item1_quantity"); x++)
                                                                        {
                                                                            list.Add(TheItem);
                                                                        }
                                                                        BuyItemInfo[] asd = list.ToArray();
                                                                        vault.Give(asd, delegate () { });
                                                                        player.Send("sysmsg", "refresh");
                                                                        player.Send("sysmsg", "alert", "Congratulations! You have won " + winners.GetString("items.item1") + ", Server");
                                                                        Broadcast("sysmsg", "write", "<HTML><FONT COLOR=" + '"' + "#00FF00" + '"' + "> " + player.Name + " won in a Event!" + "</font></HTML>");
                                                                    }
                                                                }
                                                                else
                                                                {
                                                                    player.Send("sysmsg", "eventError", "Wrong Code!");
                                                                }
                                                            }
                                                            else
                                                            {
                                                                player.Send("sysmsg", "eventError", "You Already Won The Event!");
                                                            }
                                                        }
                                                        else
                                                        {
                                                            player.Send("sysmsg", "eventError", "You Already Won The Event!");
                                                        }
                                                    }
                                                    else
                                                    {
                                                        player.Send("sysmsg", "eventError", "You Already Won The Event!");
                                                    }
                                                }
                                                else
                                                {
                                                    player.Send("sysmsg", "eventError", "Code Already Taken By 3 People.");
                                                }
                                            }
                                            else
                                            {
                                                player.Send("sysmsg", "eventError", "You can't win in your own Event!");
                                            }
                                        }
                                        else
                                        {
                                            player.Send("sysmsg", "eventError", "There is no Event On Going");
                                        }
                                    });
                                });
                                break;
                            case "chatMsg":
                                PlayerIO.BigDB.LoadOrCreate("Main", player.ConnectUserId, delegate (DatabaseObject main)
                                {
                                    if (!player.canchat) { return; }
                                    ScheduleCallback(delegate () { player.canchat = true; }, 4000);
                                    if (player.canchat)
                                    {
                                        if (main.GetDateTime("muted") < DateTime.UtcNow)
                                        {
                                            var mess = message.GetString(1);
                                            if (mess.Contains("apps.") || mess.Contains("APPS.") || mess.Contains("apps.facebook") || mess.Contains("APPS.facebook") || mess.Contains("APPS.FACEBOOK"))
                                            {
                                            }
                                            else
                                            {
                                                if (mess.Length <= 150)
                                                {
                                                    player.canchat = false;
                                                    if (!mess.Contains("<"))
                                                    {
                                                        if (word != "")
                                                        {
                                                            if (mess.Contains(word))
                                                            {
                                                                word = "";
                                                                player.PayVault.Refresh(delegate ()
                                                                {
                                                                    player.PayVault.Give(new BuyItemInfo[] { new BuyItemInfo(item) }, delegate ()
                                                                    {
                                                                        player.Send("sysmsg", "refresh");
                                                                        Broadcast("sysmsg", "write", "<font color='#39FF33'>>>" + player.Name + " won the event</font>");
                                                                        item = "";
                                                                    });
                                                                });
                                                            }
                                                        }
                                                        if (main.GetBool("inClan") == true)
                                                        {
                                                            PlayerIO.BigDB.LoadOrCreate("Clans", main.GetString("ClanName"), delegate (DatabaseObject clandb)
                                                            {
                                                                if (clandb.Contains("ClanName"))
                                                                {
                                                                    if (clandb.GetString("ClanLeaderID") == player.ConnectUserId)
                                                                    {
                                                                        if (player.rainbow)
                                                                        {
                                                                            Broadcast("pubmsg", player.Id, "chatMsg", mess, "<font color='#ffc0cb'>[</font><font color='#f4426e'>LEADER</font><font color='#ffc0cb'>]</font> " + clandb.GetString("ClanTag") + " ", genRainbow(player.Name));
                                                                        }
                                                                        else
                                                                        {
                                                                            Broadcast("pubmsg", player.Id, "chatMsg", mess, "<font color='#ffc0cb'>[</font><font color='#f4426e'>LEADER</font><font color='#ffc0cb'>]</font> " + clandb.GetString("ClanTag") + " ", player.Name);
                                                                        }
                                                                    }
                                                                    else if (clandb.GetString("ClanCoLeaderID") == player.ConnectUserId)
                                                                    {
                                                                        if (player.rainbow)
                                                                        {
                                                                            Broadcast("pubmsg", player.Id, "chatMsg", mess, "<font color='#ffc0cb'>[</font><font color='#41e8f4'>CAPTAIN</font><font color='#ffc0cb'>]</font> " + clandb.GetString("ClanTag") + " ", genRainbow(player.Name));
                                                                        }
                                                                        else
                                                                        {
                                                                            Broadcast("pubmsg", player.Id, "chatMsg", mess, "<font color='#ffc0cb'>[</font><font color='#41e8f4'>CAPTAIN</font><font color='#ffc0cb'>]</font> " + clandb.GetString("ClanTag") + " ", player.Name);
                                                                        }
                                                                    }
                                                                    else
                                                                    {
                                                                        if (player.rainbow)
                                                                        {
                                                                            Broadcast("pubmsg", player.Id, "chatMsg", mess, clandb.GetString("ClanTag") + " ", genRainbow(player.Name));
                                                                        }
                                                                        else
                                                                        {
                                                                            Broadcast("pubmsg", player.Id, "chatMsg", mess, clandb.GetString("ClanTag") + " ", player.Name);
                                                                        }
                                                                    }
                                                                }
                                                                else
                                                                {
                                                                    PlayerIO.BigDB.DeleteKeys("Clans", main.GetString("ClanName"));
                                                                    main.Set("inClan", false);
                                                                    main.Set("ClanName", "");
                                                                    main.Save();
                                                                    if (player.rainbow)
                                                                    {
                                                                        Broadcast("pubmsg", player.Id, "chatMsg", mess, "", genRainbow(player.Name));
                                                                    }
                                                                    else
                                                                    {
                                                                        Broadcast("pubmsg", player.Id, "chatMsg", mess, "", player.Name);
                                                                    }
                                                                }
                                                            });
                                                        }
                                                        else
                                                        {
                                                            if (player.rainbow)
                                                            {
                                                                Broadcast("pubmsg", player.Id, "chatMsg", mess, "", genRainbow(player.Name));
                                                            }
                                                            else
                                                            {
                                                                Broadcast("pubmsg", player.Id, "chatMsg", mess, "", player.Name);
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                        else
                                        {
                                            TimeSpan timeSpan2 = main.GetDateTime("muted") - DateTime.UtcNow;
                                            var d1 = timeSpan2.Days;
                                            var d2 = timeSpan2.Hours;
                                            var d3 = timeSpan2.Minutes;
                                            var d4 = timeSpan2.Seconds;
                                            player.Send("sysmsg", "write", "<font color='#FF0000'>>>Muted until " + d1 + " Day(s), " + d2 + " Hour(s), " + d3 + " Minute(s), " + d4 + " Second(s)</font>");
                                        }
                                    }
                                });
                                break;
                        }
                    }
                    break;
                case "privmsg":
                    {
                        PayVault vault = player.PayVault;
                        switch (message.GetString(1))
                        {
                            case "chatMsg":
                                PlayerIO.BigDB.LoadOrCreate("Main", player.ConnectUserId, delegate (DatabaseObject main)
                                {
                                    if (!player.canchat) { return; }
                                    ScheduleCallback(delegate () { player.canchat = true; }, 4000);
                                    if (player.canchat)
                                    {
                                        var mess = message.GetString(2);
                                        if (mess.Contains("apps.") || mess.Contains("APPS.") || mess.Contains("apps.facebook") || mess.Contains("APPS.facebook") || mess.Contains("APPS.FACEBOOK"))
                                        {
                                        }
                                        else
                                        {
                                            if (player.PayVault.Has("stickrunteam") || player.PayVault.Has("helperskin"))
                                            {
                                                Broadcast("privmsg", player.Id, "chatMsg", mess);
                                            }
                                            else
                                            {
                                                if (mess.Length <= 150)
                                                {
                                                    player.canchat = false;
                                                    if (!mess.Contains("<"))
                                                    {
                                                        Broadcast("privmsg", player.Id, "chatMsg", mess);
                                                    }
                                                }
                                            }
                                        }
                                    }
                                });
                                break;
                        case "clanreject":
                                PlayerIO.BigDB.LoadOrCreate("Main", player.ConnectUserId, delegate (DatabaseObject importDB)
                                {
                                    PlayerIO.BigDB.LoadOrCreate("Clans", message.GetString(0), delegate (DatabaseObject clandb)
                                    {
                                        importDB.Set("invite", false);
                                        importDB.Save();
                                        Broadcast("sysmsg", "alert", importDB.GetString("fbname") + ", Rejected The Clan Invite", clandb.GetString("ClanLeaderID"));
                                    });
                                });
                                break;
                            case "acceptclan":
                                PlayerIO.BigDB.LoadOrCreate("PlayerObjects", player.ConnectUserId, delegate (DatabaseObject playerobj)
                                {
                                    PlayerIO.BigDB.LoadOrCreate("Main", player.ConnectUserId, delegate (DatabaseObject importDB)
                                    {
                                        PlayerIO.BigDB.LoadOrCreate("Clans", message.GetString(0), delegate (DatabaseObject clandb)
                                        {
                                            var Added = false;
                                            if (clandb.GetInt("ClanLevel") == 1 || clandb.GetInt("ClanLevel") == 2)
                                            {
                                                if (clandb.GetInt("ClanMemberCount") < 15)
                                                {
                                                    importDB.Set("inClan", true);
                                                    importDB.Set("ClanName", message.GetString(0));

                                                    clandb.Set("ClanMemberCount", clandb.GetInt("ClanMemberCount") + 1);
                                                    int x = 1;
                                                    for (x = 1; x <= 26; x++)
                                                    {
                                                        if ((clandb.GetString("MemberList.Member" + x) == "" && clandb.GetString("MemberList.Member" + x + "_id") == "") && Added == false)
                                                        {
                                                            clandb.Set("MemberList.Member" + x, playerobj.GetString("fbname"));
                                                            clandb.Set("MemberList.Member" + x + "_id", player.ConnectUserId);
                                                            Added = true;
                                                        }
                                                    }
                                                    importDB.Set("invite", false);
                                                    importDB.Save();
                                                    clandb.Save();

                                                    player.Send("sysmsg", "alert", "Successfully joined the Clan " + clandb.GetString("ClanName"), "Server");
                                                    foreach (Player p in Players)
                                                    {
                                                        if (p.ConnectUserId == clandb.GetString("ClanLeaderID"))
                                                        {
                                                            p.Send("sysmsg", "alert", playerobj.GetString("fbname") + ", Accepted The Clan Invite");
                                                        }
                                                    }
                                                }
                                                else
                                                {
                                                    player.Send("sysmsg", "alert", "Error joining in Clan", "Server");
                                                }
                                            }
                                        });
                                    });
                                });
                                break;
                            case "claninvite":
                                PlayerIO.BigDB.LoadOrCreate("Main", player.ConnectUserId, delegate (DatabaseObject importDB)
                                {
                                    PlayerIO.BigDB.LoadOrCreate("Clans", importDB.GetString("ClanName"), delegate (DatabaseObject clandb)
                                    {
                                        PlayerIO.BigDB.LoadOrCreate("Main", "fb" + message.GetString(0), delegate (DatabaseObject hisdb)
                                        {
                                            PlayerIO.BigDB.LoadOrCreate("PlayerObjects", "fb" + message.GetString(0), delegate (DatabaseObject hisap)
                                            {
                                                if (importDB.GetBool("inClan") == true)
                                                {
                                                    if (clandb.GetString("ClanLeaderID") == player.ConnectUserId || clandb.GetString("ClanCoLeaderID") == player.ConnectUserId)
                                                    {
                                                        if (hisdb.GetBool("invite") == false)
                                                        {
                                                            if (hisdb.GetBool("inClan") == false)
                                                            {
                                                                if (clandb.GetInt("ClanLevel") == 1 || clandb.GetInt("ClanLevel") == 2)
                                                                {
                                                                    if (clandb.GetInt("ClanMemberCount") < 15)
                                                                    {
                                                                        hisdb.Set("invite", true);
                                                                        hisdb.Save();
                                                                        foreach (Player p in Players)
                                                                        {
                                                                            if (p.ConnectUserId == "fb" + message.GetString(0))
                                                                            {
                                                                                p.Send("privmsg", importDB.GetString("ClanName"), "claninvite");
                                                                            }
                                                                        }
                                                                    }
                                                                    else
                                                                    {
                                                                        player.Send("sysmsg", "alert", "Maximum members reached!!", "Server");
                                                                    }
                                                                }
                                                                else if (clandb.GetInt("ClanLevel") == 3)
                                                                {
                                                                    if (clandb.GetInt("ClanMemberCount") < 6)
                                                                    {
                                                                        hisdb.Set("invite", true);
                                                                        hisdb.Save();
                                                                        foreach (Player p in Players)
                                                                        {
                                                                            if (p.ConnectUserId == "fb" + message.GetString(0))
                                                                            {
                                                                                p.Send("privmsg", importDB.GetString("ClanName"), "claninvite");
                                                                            }
                                                                        }
                                                                    }
                                                                    else
                                                                    {
                                                                        player.Send("sysmsg", "alert", "Maximum members reached!!", "Server");
                                                                    }
                                                                }
                                                                else if (clandb.GetInt("ClanLevel") == 4)
                                                                {
                                                                    if (clandb.GetInt("ClanMemberCount") < 7)
                                                                    {
                                                                        hisdb.Set("invite", true);
                                                                        hisdb.Save();
                                                                        foreach (Player p in Players)
                                                                        {
                                                                            if (p.ConnectUserId == "fb" + message.GetString(1))
                                                                            {
                                                                                p.Send("privmsg", importDB.GetString("ClanName"), "claninvite");
                                                                            }
                                                                        }
                                                                    }
                                                                    else
                                                                    {
                                                                        player.Send("sysmsg", "alert", "Maximum members reached!!", "Server");
                                                                    }
                                                                }
                                                            }
                                                            else
                                                            {
                                                                player.Send("sysmsg", "alert", "Player is in a clan already", "Server");
                                                            }
                                                        }
                                                        else
                                                        {
                                                            player.Send("sysmsg", "alert", "This Player is Already Invited by Someone", "Server");
                                                        }
                                                    }
                                                    else
                                                    {
                                                        player.Send("sysmsg", "alert", "You are not the leader/Co-leader of your clan", "Server");
                                                    }
                                                }
                                                else
                                                {
                                                    player.Send("sysmsg", "alert", "You are not in a clan!", "Server");
                                                }
                                            });
                                        });
                                    });
                                });
                                break;
                        }
                    }
                    break;
            }
        }
    }
}
Kod:
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...


Üst Alt