ï»ż
ĆpiÄ
ca KrĂłlewna.
Szukamy:
new SWORD_VIEW[] = "models/diablomod/v_knife.mdl" Dodajemy pod tym(np.): new NINJA_VIEW[] = "models/diablomod/v_xxxx.mdl" Końcowy wynik: new SWORD_VIEW[] = "models/diablomod/v_knife.mdl" new NINJA_VIEW[] = "models/diablomod/v_xxxx.mdl" Szukamy: precache_model(SWORD_VIEW) Dodajemy pod tym(np.): precache_model(NINJA_VIEW) Końcowy wynik: precache_model(SWORD_VIEW) precache_model(NINJA_VIEW) Szukamy: if(player_sword[id] == 0) Znajdujemy(jeżeli org. wersja): if(player_sword[id] == 0) { if(on_knife[id]){ entity_set_string(id, EV_SZ_viewmodel, KNIFE_VIEW) entity_set_string(id, EV_SZ_weaponmodel, KNIFE_PLAYER) } if(weapon == CSW_C4){ entity_set_string(id, EV_SZ_viewmodel, C4_VIEW) entity_set_string(id, EV_SZ_weaponmodel, C4_PLAYER) } if(weapon == CSW_HEGRENADE){ entity_set_string(id, EV_SZ_viewmodel, HE_VIEW) entity_set_string(id, EV_SZ_weaponmodel, HE_PLAYER) } if(weapon == CSW_FLASHBANG){ entity_set_string(id, EV_SZ_viewmodel, FL_VIEW) entity_set_string(id, EV_SZ_weaponmodel, FL_PLAYER) } if(weapon == CSW_SMOKEGRENADE){ entity_set_string(id, EV_SZ_viewmodel, SE_VIEW) entity_set_string(id, EV_SZ_weaponmodel, SE_PLAYER) } Dodajemy nad tym: else entity_set_string(id, EV_SZ_viewmodel, KNIFE_VIEW) To(np.): if(player_class[id]==Ninja) entity_set_string(id, EV_SZ_viewmodel,NINJA_VIEW) I koniec...jest to przykład dla ninji oczywi¶cie tu: "models/diablomod/v_xxxx.mdl" |