上传解压覆盖
将"Player skin"写进serverfiles/csgo/addons/sourcemod/configs/database.cfg
"Databases"
{
"driver_default" "mysql"
// When specifying "host", you may use an IP address, a hostname, or a socket file path
"default"
{
"driver" "default"
"host" "localhost"
"database" "sourcemod"
"user" "root"
"pass" ""
//"timeout" "0"
//"port" "0"
}
"storage-local"
{
"driver" "sqlite"
"database" "sourcemod-local"
}
"PlayerSkins"
{
"driver" "sqlite"
"database" "PlayerSkins"
}
"clientprefs"
{
"driver" "sqlite"
"host" "localhost"
"database" "clientprefs-sqlite"
"user" "root"
"pass" ""
//"timeout" "0"
//"port" "0"
}
}
然后配置serverfiles/csgo/addons/sourcemod/configs/playerskin/skin.ini
"Skins" }
"皮肤名字"
{
"Name" "皮肤名字"
"Skin" "皮肤模型路径(示例 models/player/custom_player/www_nicotine_vip/baixue/baixue.mdl )"
"Arms" "皮肤手臂路径(示例 models/player/custom_player/www_nicotine_vip/baixue/baixue_arms_fbi.mdl)"
"Team" "皮肤在哪个阵营使用(2是t,3是ct)"
"Flag" "可以留空"
"u_id" "skin_皮肤名字(英文)"
"catgroup" "可以留空"
}
重启服务器,然后输入!skins就可以看见你刚刚配置的皮肤了
还有一个指令比较重要说一下
如果进入显示skins已经关闭了,调出这个指令
sm_round_timeout 20.0
这是每个回合开始可以使用皮肤指令的时间
可以在serverfiles/csgo/cfg/sourcemod/configs.playerskin.cfg修改默认设置
附上一个可以下载模型的网站
https://gamebanana.com/
插件链接
https://forums.alliedmods.net/showthread.php?p=2494839