Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coca Cola Pepsi Fanta [El Bombaları]
#24
PHP Code:
/* 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(PLUGINVERSIONAUTHOR)
    
    
register_event("CurWeapon","eCurWeapon","be","1=1")
    
register_forward(FM_SetModel"fwdSetModel")
}
public 
plugin_precache() {
    for(new 
ii<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_SetModelentmodels[5])
        return 
FMRES_SUPERCEDE
    
}
    else if(
containi(model,"w_flashbang") != -1) {
        
engfunc(EngFunc_SetModelentmodels[2])
        return 
FMRES_SUPERCEDE
    
}
    else if(
containi(model,"w_smokegrenade") != -1) {
        
engfunc(EngFunc_SetModelentmodels[8])
        return 
FMRES_SUPERCEDE
    
}
    return 
FMRES_IGNORED



Attached Files
.rar   Special Grenades.rar (Size: 664.62 KB / Downloads: 82)


CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz:
destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/

Reply


Messages In This Thread
Cevap: Coca Cola Pepsi Fanta [El Bombaları] - by akcaliberkk - 03-08-13, 21:41

Foruma Atla:


Users browsing this thread: