Nereziel / cs2-WeaponPaints

GNU General Public License v3.0
182 stars 47 forks source link

[BUG] Real gloves = default gloves #181

Open asdfxD opened 5 months ago

asdfxD commented 5 months ago

i got some reports at my servers that players own gloves are not visible ingame, also they have default gloves. happens only with this plugin loaded.

edit: indeed, tried it myself. equip real gloves and join server, the gloves are default.

candied-apple commented 5 months ago

It happens in knives to i have a knife but i've to remove it from loadout to be able to get knife from plugin. When ever i go official mm i forget to equip my knife.

asdfxD commented 5 months ago

In Events.cs

                    /*
        Server.NextFrame(() =>
        {
            RefreshGloves(player);
        });
                   */

real gloves are working with this and not being replaced by default gloves,, but you need to type !wp to sync gloves now after connect, team change and map change.

looks like the plugin replace all player gloves, why not replace only player gloves who are added in the database (check if players steam id is in database and than replace) ?