AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Store (https://forums.alliedmods.net/forumdisplay.php?f=157)
-   -   Player skins in store (https://forums.alliedmods.net/showthread.php?t=331210)

ChampMartini 03-10-2021 12:48

Player skins in store
 
So why is it when i have this (see below) in my store txt ct skins works
_____________________________________________ ___________________________________
"Player Skins"
{
"Counter-Terrorists"
{
"Spiderman2"
{
"model" "models/player/custom_player/kuristaja/spiderman_classic/spiderman.mdl"
"arms" "models/player/custom_player/kuristaja/spiderman_classic/spiderman_arms.mdl"
"team" "3"
"price" "10000"
"type" "playerskin"
}
}
}
_____________________________________________ ___________________________________
But if i got (see below) ct or t skins dosent work either theres no skin or skins just blacked out?

_____________________________________________ ___________________________________
"Player Skins"

{
"Terrorists"
{
"Venom"
{
"model"models/player/custom_player/kuristaja/spiderman_cl/venom.mdl"
"team" "3"
"price" "10000"
"type" "playerskin"
}
}

"Counter-Terrorists"
{
"Spiderman2"
{
"model" "models/player/custom_player/kuristaja/spiderman_classic/spiderman.mdl"
"arms" "models/player/custom_player/kuristaja/spiderman_classic/spiderman_arms.mdl"
"team" "3"
"price" "10000"
"type" "playerskin"
_____________________________________________ ___________________________________

Oylsister 03-12-2021 11:18

Re: Player skins in store
 
Team number for terrorist is 2
so just set "team" for terrorist to "2"

Like this:
Code:

"Player Skins"
{
        "Terrorists"
        {
                "Venom"
                {
                        "model"        "models/player/custom_player/kuristaja/spiderman_cl/venom.mdl"
                        "team"        "2" // T Team = 2, CT Team = 3
                        "price" "10000"
                        "type"        "playerskin"
                }
        }
}

PHP Code:

#define CS_TEAM_NONE        0   /**< No team yet. */
#define CS_TEAM_SPECTATOR   1   /**< Spectators. */
#define CS_TEAM_T           2   /**< Terrorists. */
#define CS_TEAM_CT          3   /**< Counter-Terrorists. */ 



All times are GMT -4. The time now is 23:51.

Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.