Yardımcı Olmadı :D
Printable View
Yardımcı Olmadı :D
@Nefesim in verdiği modeller gayet uygun bence ? Daha ne arıyorsun ki ? Aradığın sesleri de vermiş.
Fanta Olsa İyi Olurdu Ama Tamam.Ozaman Yapalım Sorun Yok.
PHP- Kodu:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "Pepsi Cola Fanta"
#define VERSION "1.0"
#define AUTHOR "akcaliberkk"
new const models[][] = {
"models/special_grenades/pepsi/p_flashbang_pepsi.mdl",
"models/special_grenades/pepsi/v_flashbang_pepsi.mdl",
"models/special_grenades/pepsi/w_flashbang_pepsi.mdl",
"models/special_grenades/cola/p_hegrenade_cola.mdl",
"models/special_grenades/cola/v_hegrenade_cola.mdl",
"models/special_grenades/cola/w_hegrenade_cola.mdl",
"models/special_grenades/fanta/p_smokegrenade_fanta.mdl",
"models/special_grenades/fanta/v_smokegrenade_fanta.mdl",
"models/special_grenades/fanta/w_smokegrenade_fanta.mdl"
}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon","eCurWeapon","be","1=1")
register_forward(FM_SetModel, "fwdSetModel")
}
public plugin_precache() {
for(new i; i<sizeof(models);i++) {
precache_model(models[i])
}
}
public eCurWeapon(id) {
new wpnID = read_data(2);
switch(wpnID) {
case CSW_HEGRENADE: {
set_pev(id,pev_viewmodel2,models[4])
set_pev(id,pev_weaponmodel2,models[3])
}
case CSW_FLASHBANG: {
set_pev(id,pev_viewmodel2,models[1])
set_pev(id,pev_weaponmodel2,models[0])
}
case CSW_SMOKEGRENADE: {
set_pev(id,pev_viewmodel2,models[7])
set_pev(id,pev_weaponmodel2,models[6])
}
}
}
public fwdSetModel(ent, const model[]) {
if(containi(model,"w_hegrenade") != -1) {
engfunc(EngFunc_SetModel, ent, models[5])
return FMRES_SUPERCEDE
}
else if(containi(model,"w_flashbang") != -1) {
engfunc(EngFunc_SetModel, ent, models[2])
return FMRES_SUPERCEDE
}
else if(containi(model,"w_smokegrenade") != -1) {
engfunc(EngFunc_SetModel, ent, models[8])
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}
https://www.csplague.com/cozulmus-is...tml#post234311
Burada benim yaptığım eklenti ile ses dosyalarını değiştirebilirsin.
Malesef silah sesleri değiştirilemiyor. (bıçak hariç)
Client-side olayı :D
Aynen doğru :D
Fanta modelini kendim texture editledim işine yarar belki nobb
Tamamdır Modelleri Bulduk.Şimdi Plugini Yapmak Gerekiyor.Sesleri Aynı Kalsın Bomba Sesleri Kalsın Yani.Ben Modelleri Atıyorum.
Buyur Bunlarda Modeller Sadece Plugin Kaldı ;
Plugini yaptım zaten ?
Berk yeni modelde koymuş içine.