Description:
This is a skin menu with possibility of change the default skin for CT and T, adding skins with flags (Only ADMIN or VIP can access), you can add skins as you want, skin changes to default if player changes team, it allows only 1 change per round so players can't spam the command, has cromchat to chat messages when opening, closing, selecting skins.
Commands :
"say skin",
"say skins",
"say /skin",
"say /skins",
"say_team /skin",
"say_team /skins",
"say_team skins",
"say_team skin",
"skin_menu"
You can change it in the top of sma.
Adding skins/models:
In the sma you got 3 conts for T and 3 for CT, first is NAME, in this you put the menu name for each option, being the first the default, (if you don't change the first option, it will be the default skin for everybody). 2nd is the name model, first empty, then start naming, please use the same name of .mdl and folder, here you put only the name of folder., finally you got the FLAG, in this you put which users with what flag can access to that option, then you got the same but for CT.
Now is the const for directories, here you put the dirs for models, exactly as the example.
PHP Code:
new const NAMET[][]={ // HERE YOU ADD THE NAME IN THE MENU OF T SKINS
"Default skin",
"Skin CT #1",
"Skin CT #2"
}
new const MODEL_T[][]={ // HERE YOU ADD THE SKIN NAME FOR T FOLLOWING FORMAT
"",
"model_1_t",
"model_2_t"
}
new const FLAGT[]={ // FLAG ACCESS FOR THAT SKIN
"",
ADMIN_BAN,
""
}
new const DIRS[][]={ // HERE YOU ADD THE SKINS DIRECTORIES
//T DIRS
"models/player/model_1_t/model_1_t.mdl",
"models/player/model_2_t/model_2_t.mdl",
//CT DIRS
"models/player/model_1_ct/model_1_ct.mdl",
"models/player/model_2_ct/model_2_ct.mdl"
}
I had some versions before this, but it was very hardcoded, and not functional at all, this is the first easy and working version, need some fixes, and new things to become easier, like the option to read from a .ini, that in change team it re-select the same item but with new skin and don't change it to default.