Include zombie_plague_v44
#1
Alguien sabe donde puedo encontrar el include zombie_plague_v44 es que intento compilar este extra item
Código PHP:
#include < amxmodx >
#include < amxmisc >
#include < engine >
#include < cstrike >
#include < fakemeta >
#include < hamsandwich >
#include < zombie_plague_v44 >

#define ITEM_NAME "Violingun"
#define ITEM_COST 35

#define WEAPON_BITSUM ((1<<CSW_SCOUT) | (1<<CSW_XM1014) | (1<<CSW_MAC10) | (1<<CSW_AUG) | (1<<CSW_UMP45) | (1<<CSW_SG550) | (1<<CSW_GALIL) | (1<<CSW_FAMAS) | (1<<CSW_AWP) | (1<<CSW_MP5NAVY) | (1<<CSW_M249) | (1<<CSW_M3) | (1<<CSW_M4A1) | (1<<CSW_TMP) | (1<<CSW_G3SG1) | (1<<CSW_SG552) | (1<<CSW_AK47) | (1<<CSW_P90))

new const VERSION[] = "1.3";

new 
g_clipammo[33], g_has_violingun[33], g_itemidg_hamczbotsg_event_violingung_primaryattackcvar_violingun_damage_xcvar_violingun_bpammocvar_violingun_shotspdcvar_violingun_oneroundcvar_violingun_clipcvar_botquota;

new const 
SHOT_SOUND[][] = {"weapons/violingun_shoot1.wav""weapons/violingun_shoot2.wav"}

new const 
VIOLIN_SOUNDS[][] = {"weapons/violingun_idle2.wav""weapons/violingun_draw.wav""weapons/violingun_clipout.wav""weapons/violingun_clipin.wav"}

new const 
GUNSHOT_DECALS[] = {4142434445}

new const 
V_VIOLIN_MDL[64] = "models/zombie_plague/v_violingun.mdl";
new const 
P_VIOLIN_MDL[64] = "models/zombie_plague/p_violingun.mdl";
new const 
W_VIOLIN_MDL[64] = "models/zombie_plague/w_violingun.mdl";

public 
plugin_init()
{
    
// Plugin Register
    
register_plugin("[ZP:44] Extra Item: Violingun"VERSION"CrazY");

    
// Extra Item Register
    
g_itemid zp_register_extra_item(ITEM_NAMEITEM_COSTZP_TEAM_HUMAN);

    
// Cvars Register
    
cvar_violingun_damage_x register_cvar("zp_violingun_damage_x""3.0");
    
cvar_violingun_clip register_cvar("zp_violingun_clip""40");
    
cvar_violingun_bpammo register_cvar("zp_violingun_bpammo""200");
    
cvar_violingun_shotspd register_cvar("zp_violingun_shot_speed""0.12");
    
cvar_violingun_oneround register_cvar("zp_violingun_oneround""0");

    
// Cvar Pointer
    
cvar_botquota get_cvar_pointer("bot_quota");

    
// Admin command
    
register_concmd("zp_give_violingun""cmd_give_violingun"0);

    
// Events
    
register_event("HLTV""event_round_start""a""1=0""2=0");

    
// Forwards
    
register_forward(FM_UpdateClientData"fw_UpdateClientData_Post"1);
    
register_forward(FM_PrecacheEvent"fw_PrecacheEvent_Post"1)
    
register_forward(FM_PlaybackEvent"fw_PlaybackEvent");
    
register_forward(FM_SetModel"fw_SetModel");

    
// HAM Forwards
    
RegisterHam(Ham_Item_PostFrame"weapon_galil""fw_ItemPostFrame");
    
RegisterHam(Ham_TraceAttack"worldspawn""fw_TraceAttack");
    
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_galil""fw_PrimaryAttack");
    
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_galil""fw_PrimaryAttack_Post"1);
    
RegisterHam(Ham_Item_Deploy"weapon_galil""fw_ItemDeploy_Post"1);
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage");
    
RegisterHam(Ham_Item_AddToPlayer"weapon_galil""fw_AddToPlayer");
}

public 
plugin_precache()
{
    
precache_model(V_VIOLIN_MDL);
    
precache_model(P_VIOLIN_MDL);
    
precache_model(W_VIOLIN_MDL);
    for(new 
0sizeof SHOT_SOUNDi++) precache_sound(SHOT_SOUND[i]);
    for(new 
0sizeof VIOLIN_SOUNDSi++) precache_sound(VIOLIN_SOUNDS[i]);
}

public 
client_disconnect(id)
{
    
g_has_violingun[id] = false;
}

public 
client_connect(id)
{
    
g_has_violingun[id] = false;
}

public 
zp_user_humanized_post(idhuman)
{
    
g_has_violingun[id] = false;
}

public 
zp_user_infected_post(id)
{
    
g_has_violingun[id] = false;
}

public 
client_putinserver(id)
{
    
g_has_violingun[id] = false;

    if (
is_user_bot(id) && !g_hamczbots && cvar_botquota)
    {
        
set_task(0.1"register_ham_czbots"id);
    }
}

public 
event_round_start()
{
    if (
get_pcvar_num(cvar_violingun_oneround))
        for (new 
1<= get_maxplayers(); i++) g_has_violingun[i] = false;
}

public 
register_ham_czbots(id)
{
    if (
g_hamczbots || !is_user_bot(id) || !get_pcvar_num(cvar_botquota))
        return;

    
RegisterHamFromEntity(Ham_TakeDamageid"fw_TakeDamage");

    
g_hamczbots true;
}

public 
zp_extra_item_selected(playeritemid)
{
    if (
itemid == g_itemid)
    {
        
client_print(playerprint_chat"[ZP] You bought %s."ITEM_NAME);
        
command_give_violingun(player);
    }
}

public 
cmd_give_violingun(idlevelcid)
{
    if((
get_user_flags(id) & level) != level)
    {
        return 
PLUGIN_HANDLED;
    }

    static 
arg[32], player;
    
read_argv(1argcharsmax(arg));
    
player cmd_target(idarg, (CMDTARGET_ONLY_ALIVE CMDTARGET_ALLOW_SELF));
    
    if (!
player) return PLUGIN_HANDLED;

    
client_print(playerprint_chat"[ZP] You won a %s."ITEM_NAME);
    
command_give_violingun(player);

    return 
PLUGIN_HANDLED;
}

public 
command_give_violingun(player)
{
    
drop_primary(player);
    
g_has_violingun[player] = true;
    new 
weaponid give_item(player"weapon_galil");
    
cs_set_weapon_ammo(weaponidget_pcvar_num(cvar_violingun_clip));
    
cs_set_user_bpammo(playerCSW_GALILget_pcvar_num(cvar_violingun_bpammo));
}

public 
fw_UpdateClientData_Post(idsendweaponscd_handle)
{
    if (
is_user_alive(id) && get_user_weapon(id) == CSW_GALIL && g_has_violingun[id])
    {
        
set_cd(cd_handleCD_flNextAttackhalflife_time () + 0.001);
    }
}

public 
fw_PrecacheEvent_Post(type, const name[])
{
    if (
equal("events/galil.sc"name))
    {
        
g_event_violingun get_orig_retval()
        return 
FMRES_HANDLED;
    }
    return 
FMRES_IGNORED;
}

public 
fw_PlaybackEvent(flagsinvokereventidFloat:delayFloat:origin[3], Float:angles[3], Float:fparam1Float:fparam2iParam1iParam2bParam1bParam2)
{
    if ((
eventid != g_event_violingun) || !g_primaryattack)
        return 
FMRES_IGNORED;

    if (!(
<= invoker <= get_maxplayers()))
        return 
FMRES_IGNORED;

    
playback_event(flags FEV_HOSTONLYinvokereventiddelayoriginanglesfparam1fparam2iParam1iParam2bParam1bParam2);
    return 
FMRES_SUPERCEDE;
}

public 
fw_SetModel(entitymodel[])
{
    if(!
pev_valid(entity) || !equal(model"models/w_galil.mdl")) return FMRES_IGNORED;
    
    static 
szClassName[33]; pev(entitypev_classnameszClassNamecharsmax(szClassName))
    if(!
equal(szClassName"weaponbox")) return FMRES_IGNORED;
    
    static 
ownerwpn
    owner 
pev(entitypev_owner)
    
wpn find_ent_by_owner(-1"weapon_galil"entity)
    
    if(
g_has_violingun[owner] && pev_valid(wpn))
    {
        
g_has_violingun[owner] = false;
        
set_pev(wpnpev_impulse10991);
        
engfunc(EngFunc_SetModelentityW_VIOLIN_MDL);
        
        return 
FMRES_SUPERCEDE;
    }
    return 
FMRES_IGNORED;
}

public 
fw_AddToPlayer(wpnid)
{
    if(
pev_valid(wpn) && is_user_connected(id) && pev(wpnpev_impulse) == 10991)
    {
        
g_has_violingun[id] = true;
        
set_pev(wpnpev_impulse0);
        return 
HAM_HANDLED;
    }
    return 
HAM_IGNORED;
}

public 
fw_ItemPostFrame(weapon_entity)
{
    new 
id pev(weapon_entitypev_owner);

    if(!
g_has_violingun[id] || !is_user_connected(id) || !pev_valid(weapon_entity))
        return 
HAM_IGNORED;

    static 
iClipExtraiClipExtra get_pcvar_num(cvar_violingun_clip);

    new 
Float:flNextAttack get_pdata_float(id835);

    new 
iBpAmmo cs_get_user_bpammo(idCSW_GALIL);
    new 
iClip get_pdata_int(weapon_entity514);

    new 
fInReload get_pdata_int(weapon_entity544);

    if(
fInReload && flNextAttack <= 0.0)
    {
        new 
Clp min(iClipExtra iClipiBpAmmo);
        
set_pdata_int(weapon_entity51iClip Clp4);
        
cs_set_user_bpammo(idCSW_GALILiBpAmmo-Clp);
        
set_pdata_int(weapon_entity5404);
        
fInReload 0;

        return 
HAM_SUPERCEDE;
    }
    return 
HAM_IGNORED;
}

public 
fw_TraceAttack(iEntiAttackerFloat:flDamageFloat:fDir[3], ptriDamageType)
{
    if (
is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_GALIL && g_has_violingun[iAttacker])
    {
        static 
Float:flEnd[3]
        
get_tr2(ptrTR_vecEndPosflEnd)
        if(
iEnt)
        {
            
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
            
write_byte(TE_DECAL)
            
engfunc(EngFunc_WriteCoordflEnd[0])
            
engfunc(EngFunc_WriteCoordflEnd[1])
            
engfunc(EngFunc_WriteCoordflEnd[2])
            
write_byte(GUNSHOT_DECALS[random_num (0sizeof GUNSHOT_DECALS -1)])
            
write_short(iEnt)
            
message_end()
        } else {
            
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
            
write_byte(TE_WORLDDECAL)
            
engfunc(EngFunc_WriteCoordflEnd[0])
            
engfunc(EngFunc_WriteCoordflEnd[1])
            
engfunc(EngFunc_WriteCoordflEnd[2])
            
write_byte(GUNSHOT_DECALS[random_num (0sizeof GUNSHOT_DECALS -1)])
            
message_end()
        }
        
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
        
write_byte(TE_GUNSHOTDECAL)
        
engfunc(EngFunc_WriteCoordflEnd[0])
        
engfunc(EngFunc_WriteCoordflEnd[1])
        
engfunc(EngFunc_WriteCoordflEnd[2])
        
write_short(iAttacker)
        
write_byte(GUNSHOT_DECALS[random_num (0sizeof GUNSHOT_DECALS -1)])
        
message_end()
    }
}

public 
fw_PrimaryAttack(weapon_entity)
{
    new 
id get_pdata_cbase(weapon_entity414);

    if (
g_has_violingun[id])
    {
        
g_clipammo[id] = cs_get_weapon_ammo(weapon_entity);
        
g_primaryattack 1;
    }
}

public 
fw_PrimaryAttack_Post(weapon_entity)
{
    new 
id get_pdata_cbase(weapon_entity414);

    if (
g_has_violingun[id] && g_clipammo[id])
    {
        
g_primaryattack 0;
        
set_pdata_float(weapon_entity46get_pcvar_float(cvar_violingun_shotspd), 4);
        
emit_sound(idCHAN_WEAPONSHOT_SOUND[random_num(0sizeof SHOT_SOUND 1)], VOL_NORMATTN_NORM0PITCH_NORM);
        
UTIL_PlayWeaponAnimation(idrandom_num(35));
    }
}

public 
fw_ItemDeploy_Post(weapon_entity)
{
    static 
idid get_weapon_ent_owner(weapon_entity);

    if (
pev_valid(id) && g_has_violingun[id])
    {
        
set_pev(idpev_viewmodel2V_VIOLIN_MDL);
        
set_pev(idpev_weaponmodel2P_VIOLIN_MDL);
    }
}

public 
fw_TakeDamage(victiminflictorattackerFloat:damage)
{
    if(
is_user_alive(attacker) && get_user_weapon(attacker) == CSW_GALIL && g_has_violingun[attacker])
    {
        
SetHamParamFloat(4damage get_pcvar_float(cvar_violingun_damage_x));
    }
}

stock UTIL_PlayWeaponAnimation(const Player, const Sequence)
{
    
set_pev(Playerpev_weaponanimSequence)
    
    
message_begin(MSG_ONE_UNRELIABLESVC_WEAPONANIM, .player Player)
    
write_byte(Sequence)
    
write_byte(pev(Playerpev_body))
    
message_end()
}

stock get_weapon_ent_owner(ent)
{
    return 
get_pdata_cbase(ent414);
}

stock give_item(index, const item[]) 
{
    if (!
equal(item"weapon_"7) && !equal(item"ammo_"5) && !equal(item"item_"5) && !equal(item"tf_weapon_"10))
        return 
0;

    new 
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocStringitem));
    
    if (!
pev_valid(ent))
        return 
0;

    new 
Float:origin[3];
    
pev(indexpev_originorigin);
    
set_pev(entpev_originorigin);
    
set_pev(entpev_spawnflagspev(entpev_spawnflags) | SF_NORESPAWN);
    
dllfunc(DLLFunc_Spawnent);

    new 
save pev(entpev_solid);
    
dllfunc(DLLFunc_Touchentindex);
    if (
pev(entpev_solid) != save)
        return 
ent;

    
engfunc(EngFunc_RemoveEntityent);

    return -
1;
}

stock drop_primary(id)
{
    new 
weapons[32], num;
    
get_user_weapons(idweaponsnum);
    for (new 
0numi++)
    {
        if (
WEAPON_BITSUM & (1<<weapons[i]))
        {
            static 
wname[32];
            
get_weaponname(weapons[i], wnamesizeof wname 1);
            
engclient_cmd(id"drop"wname);
        }
    }

pero me falta este include si me pueden ayudar gracias Cutecry
CREANDO UNA GRAN COMUNIDAD
Responder
#2
#include < zombie_plague_v44 >
->
#include < zombieplague >
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)