Raised This Month: $51 Target: $400
 12% 

Help / Support Somehelp


Post New Thread Reply   
 
Thread Tools Display Modes
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 07-28-2014 , 19:24   Re: Somehelp
Reply With Quote #51

Remove zp_class_climb.amxx, zp_extra_frost_for_zo
mbie.amxx and try.
__________________
H.RED.ZONE is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-28-2014 , 21:14   Re: Somehelp
Reply With Quote #52

or you can add debug:

1. Just open your plugins-zplague.ini file.

2. Then change this:
Quote:
zp_class_climb.amxx
zp_extra_frost_for_zombie.amxx
--->
Quote:
zp_class_climb.amxx debug
zp_extra_frost_for_zombie.amxx debug
I'm quite sure thats the problem still not be solved although after you have done this. So, please post the errors after you add debug.
zmd94 is offline
Rx3toofan
Member
Join Date: Jul 2014
Old 07-28-2014 , 23:25   Re: Somehelp
Reply With Quote #53

L 07/29/2014 - 05:22:57: [FAKEMETA] Invalid entity
L 07/29/2014 - 05:22:57: [AMXX] Displaying debug trace (plugin "zp_class_climb.a
mxx")
L 07/29/2014 - 05:22:57: [AMXX] Run time error 10: native error (native "pev")
L 07/29/2014 - 05:22:57: [AMXX] [0] zp_class_climb.sma::fwd_touch (line 104)
L 07/29/2014 - 05:23:16: [FAKEMETA] Invalid entity
L 07/29/2014 - 05:23:16: [AMXX] Displaying debug trace (plugin "zp_class_climb.a
mxx")
L 07/29/2014 - 05:23:16: [AMXX] Run time error 10: native error (native "pev")
L 07/29/2014 - 05:23:16: [AMXX] [0] zp_class_climb.sma::fwd_touch (line 104)
L 07/29/2014 - 05:23:43: [FAKEMETA] Invalid entity
L 07/29/2014 - 05:23:43: [AMXX] Displaying debug trace (plugin "zp_class_climb.a
mxx")
L 07/29/2014 - 05:23:43: [AMXX] Run time error 10: native error (native "pev")
L 07/29/2014 - 05:23:43: [AMXX] [0] zp_class_climb.sma::fwd_touch (line 104)
L 07/29/2014 - 05:23:55: [FAKEMETA] Invalid entity
L 07/29/2014 - 05:23:55: [AMXX] Displaying debug trace (plugin "zp_class_climb.a
mxx")
L 07/29/2014 - 05:23:55: [AMXX] Run time error 10: native error (native "pev")
L 07/29/2014 - 05:23:55: [AMXX] [0] zp_class_climb.sma::fwd_touch (line 104)
Rx3toofan is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-29-2014 , 00:46   Re: Somehelp
Reply With Quote #54

Please post the full the zp_class_climb.sma file.
zmd94 is offline
Rx3toofan
Member
Join Date: Jul 2014
Old 07-29-2014 , 01:23   Re: Somehelp
Reply With Quote #55

PHP Code:
[QUOTE=zmd94;2175507]Please post the full  the zp_class_climb.sma file.[/QUOTE]

/*
Wallclimb v1.0f by Python1320
Plagued Version 0.22 by Dabbi

Allows Poison Zombie to Climb Walls in Zombie Plague [3.62]

CVARS:    zp_wallclimb 0 = Off / 1 = Hold USE / 2 = Hold JUMP and DUCK  (Default 1)
    zp_wallclimb_nemesis 0 = Disable wallclimb during nemesis round. / 1 = Enable (Default 1)
    zp_wallclimb_survivor 0 = Disable wallclimb during survivor round. / 1 = Enable (Default 0)
    
Changes:
    0.22
        Made the function wallclimb return a value.
        Put plugin version to a cvar.
    0.21
        Added cvars to enable disable wallclimb durin survivor/nemesis round
    0.2
        Added cvar to enable / disable Walllclimb Plugin
    0.1
        First release.
*/

#include <amxmodx>
// #include <engine>
#include <fakemeta>

#include <cstrike>
#include <zombieplague.inc>

//#include <fakemeta_util>
#define STR_T           33

// Stuff taken from fakemeta_util
#define fm_get_user_button(%1) pev(%1, pev_button)    
/* stock fm_get_user_button(index)
    return pev(index, pev_button) */

#define fm_get_entity_flags(%1) pev(%1, pev_flags)
/* stock fm_get_entity_flags(index)
    return pev(index, pev_flags) */

stock fm_set_user_velocity(entity, const Float:vector[3]) {
    
set_pev(entitypev_velocityvector);

    return 
1;
}
//End of stuff from fakemeta_util
//new STR_T[32]
new bool:g_WallClimb[33]
new 
Float:g_wallorigin[32][3]
new 
cvar_zp_wallclimbcvar_zp_wallclimb_nemesiscvar_zp_wallclimb_survivor
new g_zclass_climb

// Climb Zombie Atributes
new const zclass_name[] = { "Climb Zombie" // name
new const zclass_info[] = { "HP-- Speed+ Jump+ Knockback++" // description
new const zclass_model[] = { "zombie_source" // model
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" // claw model
const zclass_health 1200 // health
const zclass_speed 220 // speed
const Float:zclass_gravity 0.8 // gravity
const Float:zclass_knockback 1.5 // knockback

public plugin_init() 
{
    
register_plugin("[ZP] Wallclimb ""1.0""WallClimb by Python1320/Cheap_Suit, Plagued by Dabbi")
    
register_forward(FM_Touch,         "fwd_touch")
    
register_forward(FM_PlayerPreThink,     "fwd_playerprethink")
    
//register_forward(FM_PlayerPostThink,     "fwd_playerpostthink")
    
register_event("DeathMsg","EventDeathMsg","a")
    
//register_cvar("zp_wallclimb_version", PLUGIN_VERSION, FCVAR_SERVER|FCVAR_SPONLY)
    
cvar_zp_wallclimb register_cvar("zp_wallclimb""1")
    
cvar_zp_wallclimb_survivor register_cvar("zp_wallclimb_survivor""0")
    
cvar_zp_wallclimb_nemesis register_cvar("zp_wallclimb_nemesis""1")
    
}

public 
plugin_precache()
{
    
g_zclass_climb zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)
}

public 
EventDeathMsg()    
{
    new 
id read_data(2)
    
g_WallClimb[id] = true
    
return PLUGIN_HANDLED
}

public 
client_connect(id) {
    
g_WallClimb[id] = true    
}

public 
fwd_touch(idworld)
{
    if(!
is_user_alive(id) || !g_WallClimb[id] || !pev_valid(id))
        return 
FMRES_IGNORED

    
new player STR_T
    
if (!player)
        return 
FMRES_IGNORED
        
    
new classname[STR_T]
    
pev(worldpev_classnameclassname, (STR_T))
    
    if(
equal(classname"worldspawn") || equal(classname"func_wall") || equal(classname"func_breakable"))
        
pev(idpev_origing_wallorigin[id])

    return 
FMRES_IGNORED
}

public 
wallclimb(idbutton)
{
    static 
Float:origin[3]
    
pev(idpev_originorigin)

    if(
get_distance_f(origing_wallorigin[id]) > 25.0)
        return 
FMRES_IGNORED  // if not near wall
    
    
if(fm_get_entity_flags(id) & FL_ONGROUND)
        return 
FMRES_IGNORED
        
    
if(button IN_FORWARD)
    {
        static 
Float:velocity[3]
        
velocity_by_aim(id120velocity)
        
fm_set_user_velocity(idvelocity)
    }
    else if(
button IN_BACK)
    {
        static 
Float:velocity[3]
        
velocity_by_aim(id, -120velocity)
        
fm_set_user_velocity(idvelocity)
    }
    return 
FMRES_IGNORED
}    

public 
fwd_playerprethink(id
{
    if(!
g_WallClimb[id] || !zp_get_user_zombie(id)) 
        return 
FMRES_IGNORED
        
    
if(zp_is_survivor_round() && get_pcvar_num(cvar_zp_wallclimb_survivor) == 0)
        return 
FMRES_IGNORED
        
    
if(zp_is_nemesis_round() && get_pcvar_num(cvar_zp_wallclimb_nemesis) == 0)
        return 
FMRES_IGNORED
    
    
new button fm_get_user_button(id)
    
    if((
get_pcvar_num(cvar_zp_wallclimb) == 1) && (button IN_USE) && (zp_get_user_zombie_class(id) == g_zclass_climb)) //Use button = climb
    
wallclimb(idbutton)
    else if((
get_pcvar_num(cvar_zp_wallclimb) == 2) && (button IN_JUMP) && button IN_DUCK && (zp_get_user_zombie_class(id) == g_zclass_climb)) //Jump + Duck = climb
    
wallclimb(idbutton)

    return 
FMRES_IGNORED

Rx3toofan is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-29-2014 , 14:52   Re: Somehelp
Reply With Quote #56

Just try this:
-->
If there are still a problem, just try any of this:

Last edited by zmd94; 07-29-2014 at 15:00.
zmd94 is offline
Rx3toofan
Member
Join Date: Jul 2014
Old 07-30-2014 , 09:49   Re: Somehelp
Reply With Quote #57

Quote:
Originally Posted by zmd94 View Post
Just try this:
-->
If there are still a problem, just try any of this:



I keep getting the same error but rare does it effect?
Rx3toofan is offline
Brian_Chino77
Senior Member
Join Date: Mar 2014
Location: dunno
Old 07-31-2014 , 21:13   Re: Somehelp
Reply With Quote #58

Maybe the climb zombie has an old native..
Brian_Chino77 is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 07-31-2014 , 21:36   Re: Somehelp
Reply With Quote #59

Here.
Spoiler
__________________
H.RED.ZONE is offline
Rx3toofan
Member
Join Date: Jul 2014
Old 08-01-2014 , 16:42   Re: Somehelp
Reply With Quote #60

PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#include <zombieplague>
#include <cstrike>
#include <fun>
#include <xs>
#include <zmvip> 

new const ball_name[] = "dragon_ball"
new const ball_model[] = "models/w_hiddentail.mdl"
new const ball_firespritemdl[] = "sprites/flame2.spr"
new const ball_spriteexplodemdl[] = "sprites/zerogxplode.spr"

new const zclass_name[] = { "Fire Revenant" // name
new const zclass_info[] = { "Let fireball" // description
new const zclass_model[] = { "revenant" // model
new const zclass_clawmodel[] = { "v_revenant.mdl" // claw model
const zclass_health 12000 // health
const zclass_speed 270 // speed
const Float:zclass_gravity 0.8 // gravity
const Float:zclass_knockback 0.10 // knockback
new const v_zombie_bomb_model[64] = "revenant"

new g_CurWeapon[33], g_bombmodelwpn[64]

#define OFFSET_MODELINDEX 491
#define OFFSET_LINUX 5 

new indexdefaultindex

new sprFlamesprSmoke

new g_zclassdragon
new cvar_dragondmgcvar_dragondelaycvar_dragonvelocitycvar_dragonballhealthcvar_dragonballradiuscvar_dragonballpowercvar_burndmgcvar_burntimecvar_burn
new g_msgScreenShakeg_smokesTrailball_firespriteball_spriteexplodeg_explode[512], g_can[33], g_msgScoreInfog_roundendbool:g_AlreadyBurn[33], Time[33]

new const 
WeaponNames[][] =
{
        
"""weapon_p228""""weapon_scout""weapon_hegrenade""weapon_xm1014""weapon_c4""weapon_mac10",
        
"weapon_aug""weapon_smokegrenade""weapon_elite""weapon_fiveseven""weapon_ump45""weapon_sg550",
        
"weapon_galil""weapon_famas""weapon_usp""weapon_glock18""weapon_awp""weapon_mp5navy""weapon_m249",
        
"weapon_m3""weapon_m4a1""weapon_tmp""weapon_g3sg1""weapon_flashbang""weapon_deagle""weapon_sg552",
        
"weapon_ak47""weapon_knife""weapon_p90"
}

public 
plugin_init()
{
    
register_plugin("[ZP] Zombie Class: Revenant""1.0""=), LARS-BLOODLIKER")

    
cvar_dragondelay register_cvar("zp_classdragon_delay","15")
    
cvar_dragondmg register_cvar("zp_classdragonball_dmg","30.0")
    
cvar_dragonvelocity register_cvar("zp_classdragonball_velocity","1200")
    
cvar_dragonballhealth register_cvar("zp_classdragonball_health","1.0")
    
cvar_dragonballradius register_cvar("zp_classdragonball_radius","300.0")
    
cvar_dragonballpower register_cvar "zp_classdragonball_power""800" )
    
cvar_burn register_cvar "zp_classdragonball_enable""1" )
    
cvar_burntime register_cvar "zp_classdragonball_burntime""5" )
    
cvar_burndmg register_cvar "zp_classdragonball_burndmg""2" )

    
register_touch(ball_name"worldspawn",        "touchWorld")
    
register_touch(ball_name"func_wall",            "touchWorld")
    
register_touch(ball_name"func_door",            "touchWorld")
    
register_touch(ball_name"func_door_rotating""touchWorld")
    
register_touch(ball_name"func_wall_toggle",    "touchWorld")
    
register_touch(ball_name"func_breakable",    "touchWorld")
    
register_think(ball_name,"ball_think")

    
register_clcmd("drop","dragon_cmd")
    
register_event("HLTV""event_round_start""a""1=0""2=0")

    
RegisterHam(Ham_Killed"player""fw_PlayerKilled")

    
g_msgScoreInfo get_user_msgid("ScoreInfo")
    
g_msgScreenShake get_user_msgid("ScreenShake")

    
register_event("CurWeapon""Event_CurrentWeapon""be""1=1")
    
    for(new 
1sizeof WeaponNamesi++)
    if(
WeaponNames[i][0]) RegisterHam(Ham_Item_DeployWeaponNames[i], "fw_Weapon_Deploy_Post"1)

    
RegisterHam(Ham_Player_Duck"player""Player_Duck"1)
}

public 
plugin_precache()
{
    
precache_model(ball_model)
    
g_smoke precache_model("sprites/steam1.spr")
    
sTrail precache_model("sprites/laserbeam.spr")
    
ball_firesprite precache_model(ball_firespritemdl)
    
ball_spriteexplode  precache_model(ball_spriteexplodemdl)

    
sprFlame precache_model("sprites/flame.spr")
    
sprSmoke precache_model("sprites/black_smoke3.spr")

    
g_zclassdragon zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)    

    
formatex(g_bombmodelwpncharsmax(g_bombmodelwpn), "models/zombie_plague/v_bomb_%s.mdl"v_zombie_bomb_model)
    
engfunc(EngFunc_PrecacheModelg_bombmodelwpn)

    
index precache_model("models/player/revenant/revenant.mdl")
        
defaultindex precache_model("models/player.mdl")
}

public 
dragon_cmdid )
{
    if(!
is_user_alive(id) || !zp_get_user_zombie(id) || zp_get_user_zombie_class(id) != g_zclassdragon || zp_get_user_nemesis(id))
        return 
PLUGIN_CONTINUE

    
if(g_can[id]) 
    {
        
client_print(id,print_center,"Recover in %d seconds",g_can[id])
        return 
PLUGIN_HANDLED
    
}

    static 
Float:origin[3], Float:angles[3], Float:v_forward[3], Float:v_right[3], Float:v_up[3], Float:gun_position[3], Float:player_origin[3], Float:player_view_offset[3];
    static 
Float:OriginX[3]
    
pev(idpev_v_angleangles)
    
pev(idpev_originOriginX)
    
engfunc(EngFunc_MakeVectorsangles)

    
global_get(glb_v_forwardv_forward)
    
global_get(glb_v_rightv_right)
    
global_get(glb_v_upv_up)

    
pev(idpev_originplayer_origin)
    
pev(idpev_view_ofsplayer_view_offset)
    
xs_vec_add(player_originplayer_view_offsetgun_position)

    
xs_vec_mul_scalar(v_forward13.0v_forward)
    
xs_vec_mul_scalar(v_right0.0v_right)
    
xs_vec_mul_scalar(v_up5.0v_up)

    
xs_vec_add(gun_positionv_forwardorigin)
    
xs_vec_add(originv_rightorigin)
    
xs_vec_add(originv_uporigin)

    new 
Float:StartOrigin[3]
            
    
StartOrigin[0] = origin[0]
    
StartOrigin[1] = origin[1]
    
StartOrigin[2] = origin[2]

    new 
Float:fVelocity[3] , Float:flOrigin[3] , Float:flAngle[3]
    
pev(id,pev_origin,flOrigin)
    
pev(id,pev_angles,flAngle)

    new 
ball create_entity("info_target")
    
    if(!
ball) return PLUGIN_HANDLED

    g_explode
[ball] = 0
    
    entity_set_string
(ballEV_SZ_classnameball_name)
    
    
entity_set_model(ballball_model)
    
    
entity_set_origin(ballStartOrigin)
    
    
entity_set_vector(ballEV_VEC_anglesflAngle)
    
    new 
Float:MinBox[3] = {-1.0, -1.0, -1.0}
    new 
Float:MaxBox[3] = {1.01.01.0}
    
entity_set_vector(ballEV_VEC_minsMinBox)
    
entity_set_vector(ballEV_VEC_maxsMaxBox)
    
    
entity_set_int(ballEV_INT_solidSOLID_SLIDEBOX)
    
    
entity_set_int(ballEV_INT_movetypeMOVETYPE_TOSS)
    
    
entity_set_edict(ballEV_ENT_ownerid)
    
    
entity_set_int(ballEV_INT_effectsEF_BRIGHTLIGHT)
    
    
VelocityByAim(idget_pcvar_num(cvar_dragonvelocity), fVelocity)
    
entity_set_vector(ball EV_VEC_velocityfVelocity)
    
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(TE_BEAMFOLLOW// Temporary entity ID
    
write_short(ball// Entity
    
write_short(sTrail// Sprite index
    
write_byte(10// Life
    
write_byte(3// Line width
    
write_byte(255// Red
    
write_byte(150// Green
    
write_byte(20// Blue
    
write_byte(255// Alpha
    
message_end() 

    
entity_set_int(idEV_INT_sequence10)
    
//UTIL_PlayPlayerAnimation(id,10)
    
UTIL_PlayWeaponAnimation(id,8)

    
g_can[id] = get_pcvar_num(cvar_dragondelay)
    
set_task(1.0,"ability_zero",id)

    
entity_set_float(ballEV_FL_health get_pcvar_float(cvar_dragonballhealth))

    
entity_set_float(ballEV_FL_nextthinkget_gametime() + 0.1
    
    return 
PLUGIN_HANDLED
}

public 
touchWorld(ballworld
{
    new 
Float:v[3]
    
entity_get_vector(ballEV_VEC_velocityv)

    
v[0] = (v[0] * 0.85)
    
v[1] = (v[1] * 0.85)
    
v[2] = (v[2] * 0.85)
    
entity_set_vector(ballEV_VEC_velocityv)
    
    return 
PLUGIN_HANDLED
}

public 
event_round_start()
{
    new 
iEnt FM_NULLENT
    
while((iEnt engfunc(EngFunc_FindEntityByStringiEnt"classname"ball_name)) > 0)
    {
        
engfunc(EngFunc_RemoveEntity,iEnt)
    }    
    for(new 
i;i<=32;i++)
    {
        
remove_task(i)
        
g_can[i] = 0
        Time
[i] = 
        g_AlreadyBurn
[i] = false
    
}
    
g_roundend 0
}

public 
ball_think(ball)
{
    if(!
is_valid_ent(ball))
        return

    new 
Float:oldangles[3],Float:angles[3]
    
pev(ball,pev_angles,oldangles)
    
angles[0] = oldangles[0] + random_float(20.0,100.0)
    
angles[1] = oldangles[1] + random_float(10.0,80.0)
    
angles[2] = oldangles[2] + random_float(10.0,80.0)
    
set_pev(ball,pev_angles,angles)

    new 
Float:v[3]
    
entity_get_vector(ballEV_VEC_velocityv)

    if(
v[2] < 40.0 && v[1] < 40.0 && v[0] < 40.0
    {
        if(!
g_explode[ball])
        {
            
set_task(0.5,"firesprite_ball",ball)
            
g_explode[ball] = 1
        
}

        
entity_set_float(ballEV_FL_healthentity_get_float(ball,EV_FL_health) - 0.2

        if(
entity_get_float(ball,EV_FL_health) <= 0.0
        {
            
ball_explode(ball)
            
remove_entity(ball)
            
g_explode[ball] = 0
            
return;
        }
    }
    
entity_set_float(ballEV_FL_nextthinkget_gametime() + 0.1
}

public 
firesprite_ball(ball)
{
    if(!
is_valid_ent(ball))
        return

    new 
Float:flOrigin[3]
    
pev(ball,pev_origin,flOrigin)

    
engfunc EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYflOrigin)
    
write_byte TE_SPRITE )
    
engfunc EngFunc_WriteCoordflOrigin ] )
    
engfunc EngFunc_WriteCoordflOrigin ] )
    
engfunc EngFunc_WriteCoordflOrigin ] + 45.0 )
    
write_short ball_firesprite )
    
write_byte )
    
write_byte 185 )
    
message_end ( )

    
message_beginMSG_BROADCASTSVC_TEMPENTITY )
    
write_byteTE_SMOKE );
    
engfunc EngFunc_WriteCoordflOrigin ] )
    
engfunc EngFunc_WriteCoordflOrigin ] )
    
engfunc EngFunc_WriteCoordflOrigin ] + 45.0 )
    
write_shortg_smoke );
    
write_byte10 );
    
write_byte10 );
    
message_end();

    if(
entity_get_float(ball,EV_FL_health) >= 1.0set_task(0.5,"firesprite_ball",ball)
}
public 
ball_explode Entity )
{
    if ( 
Entity )
        return
       
    static 
Float:flOrigin ]
    
pev Entitypev_originflOrigin )
       
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(TE_EXPLOSION// Temporary entity ID
    
engfunc(EngFunc_WriteCoordflOrigin[0]) // engfunc because float
    
engfunc(EngFunc_WriteCoordflOrigin[1])
    
engfunc(EngFunc_WriteCoordflOrigin[2])
    
write_short(ball_spriteexplode// Sprite index
    
write_byte(50// Scale
    
write_byte(15// Framerate
    
write_byte(0// Flags
    
message_end()
    
         new 
iOwner entity_get_edict EntityEV_ENT_owner )
       
          for ( new 
1<= 32 i++ )
    {
        if ( !
is_user_alive  ) || zp_get_user_zombie))
            continue
          
        new 
Float:flVictimOrigin ]
        
pev ipev_originflVictimOrigin )
           
        new 
Float:flDistance get_distance_f flOriginflVictimOrigin )   
           
        if ( 
flDistance <= get_pcvar_float(cvar_dragonballradius) )
        {
            static 
Float:flSpeed
            flSpeed 
get_pcvar_float cvar_dragonballpower )
               
            static 
Float:flNewSpeed
            flNewSpeed 
flSpeed * ( 1.0 - ( flDistance get_pcvar_float(cvar_dragonballradius) ) )
               
            static 
Float:flVelocity ]
            
get_speed_vector flOriginflVictimOriginflNewSpeedflVelocity )
               
            
set_pev ipev_velocity,flVelocity )

            
message_begin(MSG_ONEg_msgScreenShake, {0,0,0}, i)
            
write_short(1<<14// Amount
            
write_short(1<<14// Duration
            
write_short(1<<14// Frequency
            
message_end()

            
radius_damage_abflVictimOriginflOrigin iOwner)

            if(!
g_AlreadyBurn] && get_pcvar_num(cvar_burn ) == 
            {
                
// Burn / ON
                
g_AlreadyBurn] = true
        
                
// Set burn time
                
Time] = get_pcvar_num(cvar_burntime)
        
                
// Burn victim
                
Burn)
            }
        }
    }
}       

public 
radius_damage_ab(Float:originF[3] , Float:flOrigin[3] , iVictim iAttacker)
{
    if(
g_roundend || !is_user_connected(iAttacker) || !is_user_connected(iVictim))
        return;

    new 
Float:dist get_distance_f(originFflOrigin);
    new 
Float:dmg get_pcvar_float(cvar_dragondmg) - ( get_pcvar_float(cvar_dragondmg) / get_pcvar_float(cvar_dragonballradius) ) * dist;

    if(
pev(iVictim,pev_health) - dmg <= 0
    {
        new 
headshot
        
if(dist 20.0headshot 1
        
if(dist >= 20.0headshot 0
        message_begin
MSG_ALLget_user_msgid("DeathMsg"),{0,0,0},0)
        
write_byte(iAttacker)
        
write_byte(iVictim)
        
write_byte(headshot)
        
write_string("dragon")
        
message_end()

        
user_silentkill(iVictim)

        
set_pev(iAttackerpev_fragsfloat(pev(iAttackerpev_frags) + 1))
        
zp_set_user_ammo_packs(iAttackerzp_get_user_ammo_packs(iAttacker) + 1)
        
fm_cs_set_user_deaths(iVictimcs_get_user_deaths(iVictim) + 1)

        
message_begin(MSG_BROADCASTg_msgScoreInfo)
        
write_byte(iAttacker// id
        
write_short(pev(iAttackerpev_frags)) // frags
        
write_short(cs_get_user_deaths(iAttacker)) // deaths
        
write_short(0// class?
        
write_short(fm_cs_get_user_team(iAttacker)) // team
        
message_end()
        
        
message_begin(MSG_BROADCASTg_msgScoreInfo)
        
write_byte(iVictim// id
        
write_short(pev(iVictimpev_frags)) // frags
        
write_short(cs_get_user_deaths(iVictim)) // deaths
        
write_short(0// class?
        
write_short(fm_cs_get_user_team(iVictim)) // team
        
message_end()

    }else{
        if(
dmg 0set_pev(iVictim pev_health pev(iVictim,pev_health) - dmg)
        if(
dmg <= 0set_pev(iVictim pev_health pev(iVictim,pev_health) + dmg)
    }
}

public 
remove_values(id)
{
    
remove_task(id)
    
g_can[id] = 0
}

public 
ability_zero(id
{
    
g_can[id] -= 1
    
if(!g_can[id]) client_print(id,print_center,"ability is active!")
    if(
g_can[id]) set_task(1.0,"ability_zero",id)
}

public 
Burnvictim )
{
    
// Get user origin
    
static Origin] ; get_user_originvictimOrigin )
    
    
// If burn time is over or victim are in water
    
if( Timevictim ] <= || get_entity_flagsvictim ) & FL_INWATER )
    {    
        
// Show Smoke sprite    
        
message_beginMSG_PVSSVC_TEMPENTITYOrigin )
        
write_byteTE_SMOKE // TE id
        
write_coordOrigin[0] ) // x
        
write_coordOrigin[1] ) // y
        
write_coordOrigin[2]-50 // z
        
write_shortsprSmoke // sprite
        
write_byterandom_num(1520) ) // scale
        
write_byterandom_num(1020) ) // framerate
        
message_end( )
        
        
// Delay to allow burn again
        
set_taskfloat(get_pcvar_num(cvar_burntime)), "Stop"victim )
        
        
// Exit
        
return
    }
    else
    {        
        
// Flame sprite    
        
message_beginMSG_PVSSVC_TEMPENTITYOrigin )
        
write_byteTE_SPRITE // TE id
        
write_coordOrigin[0]+random_num(-55) ) // x
        
write_coordOrigin[1]+random_num(-55) ) // y
        
write_coordOrigin[2]+random_num(-1010) ) // z
        
write_shortsprFlame // sprite
        
write_byterandom_num(510) ) // scale
        
write_byte200 // brightness
        
message_end( )
            
        
// Decrease Time
        
Timevictim ]--
        
        
// Decrease life (random)
        
if(get_user_health(victim) -  get_pcvar_num(cvar_burndmg) > 0set_user_healthvictimget_user_healthvictim ) -  get_pcvar_num(cvar_burndmg))
        
        
// Stop fire if health <= min health.
        
if( get_user_healthvictim ) <=  get_pcvar_num(cvar_burndmg))
        {
            
g_AlreadyBurnvictim ] = false
            
return
        }
        
        
// Repeat
        
set_task0.5"Burn"victim )
    }
}

public 
Stopvictim )
    
g_AlreadyBurnvictim ] = false // Allow burn again

public zp_user_humanized_post(id
{
    
fm_set_user_model_index(iddefaultindex)

    
remove_values(id)
}
public 
fw_PlayerKilled(idattackershouldgibremove_values(id)
public 
client_connect(id)  remove_values(id)
public 
zp_round_ended() g_roundend 1

public zp_user_infected_post(id)    
{
    
set_wpnmodel(id)
    if((
zp_get_user_zombie_class(id) == g_zclassdragon) && (zp_get_user_zombie(id)))
    {
        
fm_set_user_model_index(idindex)
    }
    
Timeid ] = 
    g_AlreadyBurn
id ] = false
    remove_task
(id)
}

public 
zp_user_infected_pre(id

        if(!(
get_user_flags(id) & ADMIN_LEVEL_H)) 
    { 
            if(
zp_get_user_next_class(id) == g_zclassdragon
        { 
                    
zp_set_user_zombie_class(id0
                
client_print(idprint_chat"This class is only for VIPs")
                 
client_print(idprint_chat"If u want VIPs Contact Admin Skype :Rx3toofan")
            }     
        }     


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 UTIL_PlayPlayerAnimation(const id, const Sequence Float:frame 1.0 Float:framerate 1.0)
{
    
entity_set_int(idEV_INT_sequenceSequence)
    
entity_set_int(idEV_INT_gaitsequence1)
    
entity_set_float(idEV_FL_frameframe)
    
entity_set_float(idEV_FL_framerateframerate)
}

stock get_speed_vector(const Float:origin1[3],const Float:origin2[3],Float:speedFloat:new_velocity[3])
{
    
new_velocity[0] = origin2[0] - origin1[0]
    
new_velocity[1] = origin2[1] - origin1[1]
    
new_velocity[2] = origin2[2] - origin1[2]
    new 
Float:num floatsqroot(speed*speed / (new_velocity[0]*new_velocity[0] + new_velocity[1]*new_velocity[1] + new_velocity[2]*new_velocity[2]))
    
new_velocity[0] *= num
    new_velocity
[1] *= num
    new_velocity
[2] *= num
       
    
return 1;


stock fm_cs_set_user_deaths(idvalue)
{
    
set_pdata_int(id444value5)
}

stock fm_cs_get_user_team(id)
{
    return 
get_pdata_int(id1145);
}

public 
Event_CurrentWeapon(idg_CurWeapon[id] = read_data(2)

public 
fw_Weapon_Deploy_Post(weapon_ent)
{
    static 
idid get_pdata_cbase(weapon_ent414)

    static 
weaponid weaponid cs_get_weapon_id(weapon_ent)

    
g_CurWeapon[id] = weaponid
    
    replace_weapon_models
(idweaponid)
}

public 
Player_Duck(id)
{
    if (
zp_get_user_zombie_class(id) == g_zclassdragon && zp_get_user_zombie(id))
    {
           static 
buttonducking
           button 
pev(idpev_button)
        
ducking pev(idpev_flags) & (FL_DUCKING FL_ONGROUND) == (FL_DUCKING FL_ONGROUND)

           if (
button IN_DUCK || ducking)
        {
            
set_pev(idpev_view_ofs, {0.00.020.0})   
           }
    }
}

set_wpnmodel(id)
{
    if (!
is_user_alive(id)) return

    new 
wpn get_user_weapon(id)

    if (
wpn == CSW_HEGRENADE || wpn == CSW_FLASHBANG || wpn == CSW_SMOKEGRENADE)
    {
            
set_pev(idpev_viewmodel2g_bombmodelwpn)
    }
}

replace_weapon_models(idweaponid)
{
    if (
zp_get_user_zombie_class(id) == g_zclassdragon && zp_get_user_zombie(id))
    {
        switch(
weaponid)
        {
            case 
CSW_HEGRENADE:
            {
                
set_pev(idpev_viewmodel2g_bombmodelwpn)
            }
            case 
CSW_SMOKEGRENADE:
            {
                
set_pev(idpev_viewmodel2g_bombmodelwpn)
            }
            case 
CSW_FLASHBANG:
            {
                
set_pev(idpev_viewmodel2g_bombmodelwpn)
            }
        }
    }
}

stock fm_set_user_model_index(idvalue)
{
    
set_pdata_int(idOFFSET_MODELINDEXvalueOFFSET_LINUX)
}  
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 
PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#include <zombieplague>
#include <cstrike>
#include <xs>
#include <zmvip> 

new const ball_name[] = "paralize_ball"
new const ball_model[] = "models/w_hiddentail2.mdl"
new const ball_soundtouch[] = { "warcraft3/frostnova.wav" }

new const 
zclass_name[] = { "Frozen Revenant" // name
new const zclass_info[] = { "Let Frozen ball" // description
new const zclass_model[] = { "revenant_ice" // model
new const zclass_clawmodel[] = { "v_revenant_ice.mdl" // claw model
const zclass_health 2000 // health
const zclass_speed 245 // speed
const Float:zclass_gravity 0.7 // gravity
const Float:zclass_knockback 1.0 // knockback
new const v_zombie_bomb_model[64] = "revenant_ice"

new g_CurWeapon[33], g_bombmodelwpn[64]

#define OFFSET_MODELINDEX 491
#define OFFSET_LINUX 5 

new indexdefaultindex

new g_zclassparalize
new cvar_paralizedelay cvar_paralizevelocity  cvar_paralizeballhealth cvar_paralizeballparalizetime
new sTrail g_touchs[512] , g_can[33] , g_paralizen[33]

new const 
WeaponNames[][] =
{
        
"""weapon_p228""""weapon_scout""weapon_hegrenade""weapon_xm1014""weapon_c4""weapon_mac10",
        
"weapon_aug""weapon_smokegrenade""weapon_elite""weapon_fiveseven""weapon_ump45""weapon_sg550",
        
"weapon_galil""weapon_famas""weapon_usp""weapon_glock18""weapon_awp""weapon_mp5navy""weapon_m249",
        
"weapon_m3""weapon_m4a1""weapon_tmp""weapon_g3sg1""weapon_flashbang""weapon_deagle""weapon_sg552",
        
"weapon_ak47""weapon_knife""weapon_p90"
}

public 
plugin_init()
{
    
register_plugin("[ZP] Zombie Class: Revenant Ice""1.0""=), LARS-BLOODLIKER")

    
cvar_paralizedelay register_cvar("zp_classparalize_delay","15")
    
cvar_paralizevelocity register_cvar("zp_classparalizeball_velocity","1300")
    
cvar_paralizeballhealth register_cvar("zp_classparalizeball_health","5")
    
cvar_paralizeballparalizetime register_cvar "zp_classparalizeball_paralizetime""7.0" )

    
register_touch(ball_name"worldspawn",        "touchWorld")
    
register_touch(ball_name"func_wall",            "touchWorld")
    
register_touch(ball_name"func_door",            "touchWorld")
    
register_touch(ball_name"func_door_rotating""touchWorld")
    
register_touch(ball_name"func_wall_toggle",    "touchWorld")
    
register_touch(ball_name"func_breakable",    "touchWorld")
    
register_touch(ball_name"player",            "touchPlayer")
    
register_think(ball_name,"ball_think")

    
register_clcmd("drop","paralize_cmd")
    
register_event("HLTV""event_round_start""a""1=0""2=0")
    
register_forward(FM_PlayerPreThink"fw_PreThink")

    
RegisterHam(Ham_Killed"player""fw_PlayerKilled")

    
register_event("CurWeapon""Event_CurrentWeapon""be""1=1")
    
    for(new 
1sizeof WeaponNamesi++)
    if(
WeaponNames[i][0]) RegisterHam(Ham_Item_DeployWeaponNames[i], "fw_Weapon_Deploy_Post"1)

    
RegisterHam(Ham_Player_Duck"player""Player_Duck"1)
}

public 
plugin_precache()
{
    
precache_model(ball_model)
    
sTrail precache_model("sprites/laserbeam.spr")

    
g_zclassparalize zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)    

    
formatex(g_bombmodelwpncharsmax(g_bombmodelwpn), "models/zombie_plague/v_bomb_%s.mdl"v_zombie_bomb_model)
    
engfunc(EngFunc_PrecacheModelg_bombmodelwpn)

    
index precache_model("models/player/revenant_ice/revenant_ice.mdl")
        
defaultindex precache_model("models/player.mdl")
}

public 
paralize_cmdid )
{
    if( !
is_user_alive(id) || !zp_get_user_zombie(id) || zp_get_user_zombie_class(id) != g_zclassparalize || zp_get_user_nemesis(id) )
        return 
PLUGIN_CONTINUE;

    if(
g_can[id]) 
    {
        
client_print(id,print_center,"Recover in %d seconds",g_can[id])
        return 
PLUGIN_HANDLED;
    }

    static 
Float:origin[3], Float:angles[3], Float:v_forward[3], Float:v_right[3], Float:v_up[3], Float:gun_position[3], Float:player_origin[3], Float:player_view_offset[3];
    static 
Float:OriginX[3]
    
pev(idpev_v_angleangles);
    
pev(idpev_originOriginX);
    
engfunc(EngFunc_MakeVectorsangles);

    
global_get(glb_v_forwardv_forward);
    
global_get(glb_v_rightv_right);
    
global_get(glb_v_upv_up);

    
//m_pPlayer->GetGunPosition( ) = pev->origin + pev->view_ofs
    
pev(idpev_originplayer_origin);
    
pev(idpev_view_ofsplayer_view_offset);
    
xs_vec_add(player_originplayer_view_offsetgun_position);

    
xs_vec_mul_scalar(v_forward13.0v_forward);
    
xs_vec_mul_scalar(v_right0.0v_right);
    
xs_vec_mul_scalar(v_up5.0v_up);

    
xs_vec_add(gun_positionv_forwardorigin);
    
xs_vec_add(originv_rightorigin);
    
xs_vec_add(originv_uporigin);

    new 
Float:StartOrigin[3]
            
    
StartOrigin[0] = origin[0];
    
StartOrigin[1] = origin[1];
    
StartOrigin[2] = origin[2];


    new 
Float:fVelocity[3] , Float:flOrigin[3] , Float:flAngle[3]
    
pev(id,pev_origin,flOrigin)
    
pev(id,pev_angles,flAngle)

    new 
ball create_entity("info_target")
    
    if (!
ball) return PLUGIN_HANDLED

    g_touchs
[ball] = 0

    entity_set_string
(ballEV_SZ_classnameball_name)
    
    
entity_set_model(ballball_model)
    
    
entity_set_origin(ballStartOrigin)
    
    
entity_set_vector(ballEV_VEC_anglesflAngle)
    
    new 
Float:MinBox[3] = {-1.0, -1.0, -1.0}
    new 
Float:MaxBox[3] = {1.01.01.0}
    
entity_set_vector(ballEV_VEC_minsMinBox)
    
entity_set_vector(ballEV_VEC_maxsMaxBox)
    
    
entity_set_int(ballEV_INT_solidSOLID_SLIDEBOX)
    
    
entity_set_int(ballEV_INT_movetypeMOVETYPE_BOUNCEMISSILE)
    
    
entity_set_edict(ballEV_ENT_ownerid)
    
    
entity_set_int(ballEV_INT_effectsEF_BRIGHTLIGHT)
    
    
VelocityByAim(idget_pcvar_num(cvar_paralizevelocity ), fVelocity)
    
entity_set_vector(ball EV_VEC_velocityfVelocity)

    
fm_set_rendering(ballkRenderFxGlowShell,255255255kRenderNormal16)
    
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(TE_BEAMFOLLOW// Temporary entity ID
    
write_short(ball// Entity
    
write_short(sTrail// Sprite index
    
write_byte(10// Life
    
write_byte(3// Line width
    
write_byte(100// Red
    
write_byte(255// Green
    
write_byte(255// Blue
    
write_byte(255// Alpha
    
message_end() 

    
UTIL_PlayPlayerAnimation(id,10)
    
UTIL_PlayWeaponAnimation(id,8)

    
g_can[id] = get_pcvar_num(cvar_paralizedelay)
    
set_task(1.0,"ability_zero",id)

    
entity_set_float(ballEV_FL_health get_pcvar_float(cvar_paralizeballhealth))

    
entity_set_float(ballEV_FL_nextthinkget_gametime() + 0.1
    
    return 
PLUGIN_HANDLED;
}

public 
touchWorld(ballworld) {

    
emit_sound(ballCHAN_WEAPONball_soundtouch1.0ATTN_NORM0PITCH_NORM)
    
g_touchs[ball] += 1
    
if(g_touchs[ball] == get_pcvar_num(cvar_paralizeballhealth)) remove_entity(ball)
    
    return 
PLUGIN_HANDLED
}

public 
touchPlayer(ballplayer) {
    
client_print(0,print_chat,"You are trapped in %d",player)
    
remove_task(player)
    
paralize(player)
    
//set_task(get_pcvar_float(cvar_paralizeballparalizetime),"unparalize_player",player)
    
    
return PLUGIN_HANDLED
}

public 
event_round_start()
{
    new 
iEnt FM_NULLENT;
    while( (
iEnt engfunc(EngFunc_FindEntityByStringiEnt"classname"ball_name)) > )
    {
        
engfunc(EngFunc_RemoveEntity,iEnt)
    }    

    for(new 
i;i<=32;i++)
    {
        if(
g_paralizen[i]) fm_set_rendering(i)
        
g_can[i] = 0
        g_paralizen
[i] = 0
        remove_task
(i)
    }
}

public 
ball_think(ball)
{
    if(!
is_valid_ent(ball))
        return;

    new 
Float:oldangles[3],Float:angles[3]
    
pev(ball,pev_angles,oldangles)
    
angles[0] = oldangles[0] + random_float(20.0,100.0)
    
angles[1] = oldangles[1] + random_float(10.0,80.0)
    
angles[2] = oldangles[2] + random_float(10.0,80.0)
    
set_pev(ball,pev_angles,angles)

    new 
Float:Velocity[3]
    
pev(ball,pev_velocity,Velocity)

    if(
Velocity[0] < 1.0 && Velocity[2] < 1.0 && Velocity[1] < 1.0remove_entity(ball)

    
entity_set_float(ballEV_FL_nextthinkget_gametime() + 0.1

}

public 
paralize(id)
{
    if(!
is_user_alive(id) || zp_get_user_zombie(id))
        return;

    
g_paralizen[id] = 1
    fm_set_rendering
(idkRenderFxGlowShell,100255255kRenderNormal16)
    
set_task(get_pcvar_float(cvar_paralizeballparalizetime),"unparalize_player",id)
}

public 
unparalize_player(id)
{
    if(!
is_user_alive(id) || zp_get_user_zombie(id))
        return;

    
g_paralizen[id] = 0
    fm_set_rendering
(id)
}

public 
remove_values(id)
{
    
remove_task(id)
    
g_can[id] = 0
}

public 
ability_zero(id
{
    
g_can[id] -= 1
    
if(!g_can[id]) client_print(id,print_center,"Ability is active!")
    if(
g_can[id]) set_task(1.0,"ability_zero",id)
}

public 
fw_PreThink(id)
{
    if( !
is_user_alive(id) || zp_get_user_zombie(id) || !g_paralizen[id])
        return 
PLUGIN_CONTINUE;

    
set_pevidpev_buttonpev(id,pev_button) & ~IN_ATTACK );

    
set_pev(idpev_maxspeed0.0)        

    new 
Float:vel[3]
    
set_pev(id,pev_velocity,vel)

    return 
PLUGIN_HANDLED
}

public 
zp_user_humanized_post(id)
{
    
fm_set_user_model_index(iddefaultindex)

     
remove_values(id)
}
public 
fw_PlayerKilled(idattackershouldgibremove_values(id)
public 
client_connect(id)  remove_values(id)

public 
zp_user_infected_post(id
{
    
set_wpnmodel(id)
    if((
zp_get_user_zombie_class(id) == g_zclassparalize) && (zp_get_user_zombie(id)))
    {
        
fm_set_user_model_index(idindex)
    }
    
remove_values(id)
}

public 
zp_user_infected_pre(id

        if(!(
get_user_flags(id) & ADMIN_LEVEL_H)) 
    { 
            if(
zp_get_user_next_class(id) == g_zclassparalize
        { 
                    
zp_set_user_zombie_class(id0
                
client_print(idprint_chat"This class is only for VIPs")
                 
client_print(idprint_chat"If u want Vip Contact Admin Skype :Rx3toofan")
            }     
        }     


stock fm_set_rendering(entityfx kRenderFxNone255255255render kRenderNormalamount 16)
{
    static 
Float:color[3]
    
color[0] = float(r)
    
color[1] = float(g)
    
color[2] = float(b)
    
    
set_pev(entitypev_renderfxfx)
    
set_pev(entitypev_rendercolorcolor)
    
set_pev(entitypev_rendermoderender)
    
set_pev(entitypev_renderamtfloat(amount))
}

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 UTIL_PlayPlayerAnimation(const id, const Sequence Float:frame 1.0 Float:framerate 1.0)
{
    
entity_set_int(idEV_INT_sequenceSequence)
    
entity_set_int(idEV_INT_gaitsequence1)
    
entity_set_float(idEV_FL_frameframe)
    
entity_set_float(idEV_FL_framerateframerate)
}

stock get_speed_vector(const Float:origin1[3],const Float:origin2[3],Float:speedFloat:new_velocity[3])
{
    
new_velocity[0] = origin2[0] - origin1[0]
    
new_velocity[1] = origin2[1] - origin1[1]
    
new_velocity[2] = origin2[2] - origin1[2]
    new 
Float:num floatsqroot(speed*speed / (new_velocity[0]*new_velocity[0] + new_velocity[1]*new_velocity[1] + new_velocity[2]*new_velocity[2]))
    
new_velocity[0] *= num
    new_velocity
[1] *= num
    new_velocity
[2] *= num
       
    
return 1


stock fm_cs_set_user_deaths(idvalue)
{
    
set_pdata_int(id444value5)
}

stock fm_cs_get_user_team(id)
{
    return 
get_pdata_int(id1145);
}

public 
Event_CurrentWeapon(idg_CurWeapon[id] = read_data(2)

public 
fw_Weapon_Deploy_Post(weapon_ent)
{
    static 
idid get_pdata_cbase(weapon_ent414)

    static 
weaponidweaponid cs_get_weapon_id(weapon_ent)

    
g_CurWeapon[id] = weaponid
    
    replace_weapon_models
(idweaponid)
}

public 
Player_Duck(id)
{
    if(
zp_get_user_zombie_class(id) == g_zclassparalize && zp_get_user_zombie(id))
    {
           static 
buttonducking
           button 
pev(idpev_button)
        
ducking pev(idpev_flags) & (FL_DUCKING FL_ONGROUND) == (FL_DUCKING FL_ONGROUND)

           if(
button IN_DUCK || ducking)
        {
            
set_pev(idpev_view_ofs, {0.00.020.0})   
           }
    }
}

set_wpnmodel(id)
{
    if(!
is_user_alive(id)) return

    new 
wpn get_user_weapon(id)

    if(
wpn == CSW_HEGRENADE || wpn == CSW_FLASHBANG || wpn == CSW_SMOKEGRENADE)
    {
            
set_pev(idpev_viewmodel2g_bombmodelwpn)
    }
}

replace_weapon_models(idweaponid)
{
    if(
zp_get_user_zombie_class(id) == g_zclassparalize && zp_get_user_zombie(id))
    {
        switch(
weaponid)
        {
            case 
CSW_HEGRENADE:
            {
                
set_pev(idpev_viewmodel2g_bombmodelwpn)
            }
            case 
CSW_SMOKEGRENADE:
            {
                
set_pev(idpev_viewmodel2g_bombmodelwpn)
            }
            case 
CSW_FLASHBANG:
            {
                
set_pev(idpev_viewmodel2g_bombmodelwpn)
            }
        }
    }
}

stock fm_set_user_model_index(idvalue)
{
    
set_pdata_int(idOFFSET_MODELINDEXvalueOFFSET_LINUX)
}  
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 

these both zombie classes are for VIP but when someone try to enter it as VIP it he cant its like normal player i tried more than way but it wont work please someone help me fast
Rx3toofan is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode