добавить модельки Weapons

gesk1995

Пользователь
Регистрация
8 Июн 2017
Сообщения
339
Симпатии
12
Пол
Мужской
Привет всем, помогите дописать модельки на оружия P и W , чёт пытался модельки P криво отображаются

Код:
// пути к моделям голд оружия и игроков
#if defined SMS_GOLD_MODEL
    new MODEL_DGL[]    = "models/Shop/v_deagle.mdl"
    new MODEL_M4A1[]    = "models/Shop/v_m4a1.mdl"
    new MODEL_AK47[]    = "models/Shop/v_ak47.mdl"
    new MODEL_AWP[]    = "models/Shop/v_awp.mdl"
#endif

#if defined SMB_MODEL
    new const eos_boss_te[] = "eos_boss_te"
    new const eos_boss_ct[] = "eos_boss_ct"
#endif

#if defined SMA_MODEL
    new const eos_admin_te[] = "eos_admin_te"
    new const eos_admin_ct[] = "eos_admin_ct"
#endif

public plugin_init(){

        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_clcmd("say /sm", "cmdMenu")
        register_clcmd("say_team /sm", "cmdMenu")
        
        RegisterHam(Ham_Spawn, "player", "Spawn_cmd", 1)
        register_event("CurWeapon", "FixSpeed", "be", "1=1");
        RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage");
}

public plugin_precache(){
    #if defined SMS_GOLD_MODEL
        precache_model(MODEL_DGL)
        precache_model(MODEL_M4A1)
        precache_model(MODEL_AK47)
        precache_model(MODEL_AWP)
    #endif

    #if defined SMB_MODEL
        PrecachePlayerModel("eos_boss_te")
        PrecachePlayerModel("eos_boss_ct")
    #endif

    #if defined SMA_MODEL
        PrecachePlayerModel("eos_admin_te")
        PrecachePlayerModel("eos_admin_ct")
    #endif
}

public FixSpeed(id){
    if(is_user_cool(id)){
        if(pl_speed[id] == true)
            set_pev(id, pev_maxspeed, SMV_SPEED);
        #if defined SMS_GOLD_MODEL
        new weaponID = read_data(2)
        if(weaponID == CSW_DEAGLE && gold_deagle[id]){
            set_pev(id, pev_viewmodel2, MODEL_DGL)
        }
        if(weaponID == CSW_AK47 && gold_ak47[id]){
            set_pev(id, pev_viewmodel2, MODEL_AK47)
        }
        if(weaponID == CSW_M4A1 && gold_m4a1[id]){
            set_pev(id, pev_viewmodel2, MODEL_M4A1)
        }
        if(weaponID == CSW_AWP && gold_awp[id]){
            set_pev(id, pev_viewmodel2, MODEL_AWP)
        }
        else{
            return PLUGIN_CONTINUE
        }
        return PLUGIN_CONTINUE
        #endif
    }
    return PLUGIN_CONTINUE
}
 

Вложения

Сверху Снизу