找到服务器store配置文件 当然您也可以通过winscp中编辑文件修改
addons/sourcemod/configs/store/items.txt

配置属性简单解释
model 模型路径
type 注册到Store系统的物品类型 playerskin (store系统认为是人物皮肤)
arms 手臂路径 (如果手臂和人物模型是同一个模型 请设置子ID arms_sub_id 否则设为-1)
bodyindex 模型ID (如果是单独文件则改为 -1 相同文件改为 子ID 请询问模型师)
unique_id 解锁ID (用户购买时储存到数据库的解锁ID,不要和其他物品相同 否则购买 物品A = 拥有物品A和B)
Plans (节点型) (可配置多个价格 和 到期时间 time = 时间 price = 价格)
flag 限制权限 (比如 “flag” “a” 那么 只有VIP才能购买 演示未添加.)
team (队伍) (2=T 3=CT 4=全体队伍)
price (一次性购买价格 ,如要设置请删除 plans 全段内容(不可以共存!!) 当price 为 0 时 任何人可以使用)

    "皮肤名称-永久或免费"
    {
        "model"        "models/player/custom_player/2021x/fischer_v2/tm_pirate.mdl"
        "type"        "playerskin"
        "arms"        "models/player/custom_player/2021x/fischer_v2/tm_pirate.mdl"
        "bodyindex"        "3"
        "team"        "3"
        "unique_id"        "PlayerSkin_fischer"
        "price" "0"
        "model_path"        "models/player/custom_player/2021x/fischer_v2"
        "material_path"        "materials/models/player/custom_player/2021x/fischer_v2"
    }



    "皮肤名称-按时间出售"
    {
        "model"        "models/player/custom_player/2021x/fischer_v2/tm_pirate.mdl"
        "type"        "playerskin"
        "arms"        "models/player/custom_player/2021x/fischer_v2/tm_pirate.mdl"
        "bodyindex"        "3"
        "team"        "3"
        "unique_id"        "PlayerSkin_fischer"
        "Plans"
        {
            "1天"
            {
                "price"        "1000"
                "time"        "86400"
            }
            "10天"
            {
                "price"        "2000"
                "time"        "864000"
            }
            "30天"
            {
                "price"        "3000"
                "time"        "2592000"
            }
            "无限制"
            {
                "price"        "6000"
                "time"        "0"
            }
        }
        "model_path"        "models/player/custom_player/2021x/fischer_v2"
        "material_path"        "materials/models/player/custom_player/2021x/fischer_v2"
    }
作者:admin  创建时间:2021-09-14 16:22
最后编辑:admin  更新时间:2024-03-05 10:19