コード例 #1
0
        protected override void SetOnlineData(Player p, Player who, string model)
        {
            string orig = model;

            model = ParseModel(p, who, model);
            if (model == null)
            {
                return;
            }
            who.UpdateModel(model);

            if (!model.CaselessEq("humanoid"))
            {
                Server.models.Update(who.name, model);
            }
            else
            {
                Server.models.Remove(who.name);
            }
            Server.models.Save();

            // Remove model scale too when resetting model
            //if (orig.Length == 0) CmdModelScale.UpdateSavedScale(who);
        }