Cambiar torreta a zp
#1
Hola todos, bueno alguien podría cambiar esta torreta de treki a extra item de zombie plague por favor? ... gracias antemano

Código PHP:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <hamsandwich>

#include <ttt>
#include <xs>

/* ===========================================================================​====
 *                 [ Plugin initiation & Global stuff ]
 * ===========================================================================​==== */

#define SetPlayerBit(%1,%2) ( %1 |= ( 1 << ( %2 & 31 ) ) )
#define ClearPlayerBit(%1,%2) ( %1 &= ~( 1 << ( %2 & 31 ) ) )
#define GetPlayerBit(%1,%2) ( %1 & ( 1 << ( %2 & 31 ) ) )

#define IsValidPlayer(%0) ( 1 <= %0 <= 32 )

enum _:Sentry_Sequences
{
    
Sequence_Idle 0,
    
Sequence_Shooting 1,
    
Sequence_Deploy 4,
    
Sequence_Die 5
}

const 
OFFSET_PAINSHOCK 108;

const 
Sentry_Owner    EV_INT_iuser1;
const 
Sentry_Target    EV_INT_iuser2;

new const 
g_szCache_ExplosionEntity[ ] = "env_explosion";

new const 
g_szSentryEntity[ ]        = "func_breakable";
new const 
g_szSentryClassname[ ]     = "SentryGun";

new const 
g_szSentryModel[ ]         = "models/ttt/us_turret.mdl";
new const 
g_szSentrySpotSound[ ]    = "ttt/spot.wav";
new const 
g_szSentryStopSound[ ]    = "ttt/stop.wav";
new const 
g_szSentryBuiltSound[ ]    = "ttt/built.wav";
new const 
g_szSentryShootSound[ ]    = "ttt/shoot.wav";

new 
g_iItemIDg_iMaxPlayersg_iBought;

public 
plugin_precache( )
{
    
precache_sound"debris/bustglass1.wav" );
    
precache_sound"debris/bustglass2.wav" );
    
precache_model"models/ttt/us_turrett.mdl" );
    
    
precache_modelg_szSentryModel );
    
    
precache_soundg_szSentrySpotSound );
    
precache_soundg_szSentryStopSound );
    
precache_soundg_szSentryBuiltSound );
    
precache_soundg_szSentryShootSound );
}
    
public 
plugin_init( )
{
    
register_plugin"[TTT] Item: Sentry Gun""1.0""Manu" );
    
    
register_thinkg_szSentryClassname"think_Sentry" );
    
register_clcmd"say /torreta""CreateSentry" );
    
    
g_iMaxPlayers    get_maxplayers( );
}

/* ===========================================================================​====
 *                 [ Trouble in terrorist town's forwards ]
 * ===========================================================================​==== */

public ttt_gamemodeiGamemode )
{
    if( 
iGamemode == GAME_ENDED || iGamemode == GAME_RESTARTING )
    {    
        static 
iNumiPlayers32 ]; get_playersiPlayersiNum );
        
        for( --
iNumiNum >= 0iNum-- )
            
ClearPlayerBitg_iBoughtiPlayersiNum ] );
        
        new 
iEnt;
        
        while( ( 
iEnt find_ent_by_classiEntg_szSentryClassname ) ) != )
            
entity_set_intiEntSentry_Owner);
    }
}

public 
ttt_item_selectediIdiItemszName[ ], iPrice )
{
    if( 
g_iItemID == iItem )
    {
        
SetPlayerBitg_iBoughtiId );
        
client_print_coloriIdprint_team_default"^4[TTT]^1 Compraste una torreta. Mira al piso y escribe ^4/torreta^1 para colocarla!" );
        
        return 
PLUGIN_HANDLED;
    }

    return 
PLUGIN_CONTINUE;
}

public 
ttt_plugin_cfg( ) g_iItemID ttt_buymenu_add"Torreta"2PC_TRAITOR );

/* ===========================================================================​====
 *                 [ Sentry's brain & events ]
 * ===========================================================================​==== */

public think_SentryiEnt )
{
    static 
iOwneriOwner entity_get_intiEntSentry_Owner );
    
    if( 
is_valid_entiEnt ) && is_user_aliveiOwner ) && entity_get_floatiEntEV_FL_health ) > 0.0 )
    {
        static 
iTargetiTarget entity_get_intiEntSentry_Target );
        
        if( 
IsValidPlayeriTarget ) )
        {
            if( 
IsPlayerShootableiEntiTarget ) )
            {
                
TraceBulletiEntiTarget );
                
SetEntityAimingiEntiTarget );
                
PlaySequenceiEntSequence_Shooting );
                
                
ExecuteHamBHam_TakeDamageiTargetiOwneriOwner10.0DMG_BULLET );
                
emit_soundiEntCHAN_WEAPONg_szSentryShootSound0.2ATTN_NORM0PITCH_NORM );
                
                
entity_set_floatiEntEV_FL_nextthinkhalflife_time( ) + 0.1 );
            }
            else
            {
                
PlaySequenceiEntSequence_Idle );
                
entity_set_intiEntSentry_Target);
                
entity_set_floatiEntEV_FL_nextthinkhalflife_time( ) + 1.0 );
                
                
emit_soundiEntCHAN_WEAPONg_szSentryStopSound0.2ATTN_NORM0PITCH_NORM );
            }
        }
        else
        {
            
entity_set_floatiEntEV_FL_nextthinkhalflife_time( ) + 0.5 );
            
            for( 
iTarget 1iTarget <= g_iMaxPlayersiTarget++ )
            {
                if( 
IsPlayerShootableiEntiTarget ) )
                {
                    
PlaySequenceiEntSequence_Deploy );
                    
entity_set_intiEntSentry_TargetiTarget );
                    
emit_soundiEntCHAN_WEAPONg_szSentrySpotSound0.3ATTN_NORM0PITCH_NORM );
                    
                    break;
                }
            }
        }
    }
    else
    {
        
PlaySequenceiEntSequence_Die );
        
        
entity_set_floatiEntEV_FL_health1.0 );
        
entity_set_floatiEntEV_FL_takedamageDAMAGE_NO );
        
entity_set_intiEntEV_INT_effectsentity_get_intiEntEV_INT_effects ) & ~EF_NODRAW );
        
        
set_task1.0"RemoveSentry"iEnt );
    }
}

public 
RemoveSentry( const iSentry )
{
    static 
iEntFloat:flOrigin]; entity_get_vectoriSentryEV_VEC_originflOrigin );
    
    if( 
is_valid_ent( ( iEnt create_entityg_szCache_ExplosionEntity ) ) ) )
    {
        
entity_set_originiEntflOrigin );
        
entity_set_intiEntEV_INT_spawnflagsSF_ENVEXPLOSION_NODAMAGE );
        
        
DispatchKeyValueiEnt"iMagnitude""50" );
        
DispatchSpawniEnt );
        
        
force_useiEntiEnt );
        
        
remove_entityiEnt );
        
remove_entityiSentry );
        
        return 
1;
    }
    
    return 
0;
}

/* ===========================================================================​====
 *                 [ Client-related & Events ]
 * ===========================================================================​==== */

public CreateSentry( const iId )
{
    static 
iEnt,Float:vOrigin],Float:vAngles];
    
    if( 
GetPlayerBitg_iBoughtiId ) && is_valid_ent( ( iEnt create_entityg_szSentryEntity ) ) ) )
    {
        if( 
GetSentryOriginiIdvOriginvAngles ) )
        {
            
entity_set_stringiEntEV_SZ_classnameg_szSentryClassname );
            
            
entity_set_modeliEntg_szSentryModel );
            
entity_set_sizeiEntFloat:{ -16.0,-16.0,0.0 }, Float:{ 16.0,16.0,36.0 } );
            
            
entity_set_originiEntvOrigin );
            
entity_set_vectoriEntEV_VEC_anglesvAngles );
            
            
entity_set_intiEntEV_INT_solidSOLID_BBOX );
            
entity_set_intiEntEV_INT_movetypeMOVETYPE_TOSS );
            
            
entity_set_intiEntSentry_OwneriId );
            
entity_set_floatiEntEV_FL_health300.0 );
            
entity_set_floatiEntEV_FL_takedamageDAMAGE_NO );
            
            
entity_set_intiEntEV_INT_sequence);
            
entity_set_floatiEntEV_FL_animtime1.0 );
            
entity_set_floatiEntEV_FL_framerate1.0 );
            
            
set_task1.0"CompleteBuilding"iEnt );
            
set_renderingiEntkRenderFxGlowShell255255255kRenderNormal30 );
            
            
drop_to_flooriEnt );
            
            
ClearPlayerBitg_iBoughtiId );
            
            return 
PLUGIN_HANDLED;
        }
        
        
remove_entityiEnt );
        
        
client_print_coloriIdprint_team_default"^x04[TTT]^x01 No habia espacio para la torreta." );
    }
    else
        
client_print_coloriIdprint_team_default"^x04[TTT]^x01 No puedes poner una torreta en este momento." );
    
    return 
PLUGIN_HANDLED;
}

public 
CompleteBuildingiEnt )
{
    if( 
is_valid_entiEnt ) )
    {
        
set_renderingiEnt );
        
        
emit_soundiEntCHAN_WEAPONg_szSentryBuiltSound0.3ATTN_NORM0PITCH_NORM );
        
        
entity_set_floatiEntEV_FL_takedamageDAMAGE_YES );
        
entity_set_floatiEntEV_FL_nextthinkhalflife_time( ) + 0.1 );
    }
}

public 
client_disconnectiId ClearPlayerBitg_iBoughtiId );
 
/* ===========================================================================​====
 *                 [ Other useful stuff ]
 * ===========================================================================​==== */

SetEntityAimingiEnt,iTarget )
{
    static 
Float:fOrigin], Float:fTarget];
    
    
entity_get_vectoriEntEV_VEC_originfOrigin );
    
entity_get_vectoriTargetEV_VEC_originfTarget );
    
    
xs_vec_subfTargetfOriginfTarget );
    
xs_vec_normalizefTargetfTarget );
    
    
vector_to_anglefTargetfTarget ); fTarget] = 0.0;
    
entity_set_vectoriEntEV_VEC_anglesfTarget );
    
    return 
1;
}

GetSentryOrigin( const iIdFloat:vOrigin], Float:vSentryAngles] )
{
    static 
iTraceFloat:vAngles], Float:vViewOfs], Float:vEnd], Float:fFraction;
    
    
entity_get_vectoriIdEV_VEC_originvOrigin );
    
entity_get_vectoriIdEV_VEC_view_ofsvViewOfs );
    
entity_get_vectoriIdEV_VEC_v_anglevAngles );
    
    
vSentryAngles] = vAngles];
    
    
xs_vec_addvOriginvViewOfsvOrigin );
    
    
angle_vectorvAnglesANGLEVECTOR_FORWARDvAngles );
    
    
xs_vec_mul_scalarvAngles128.0vAngles );
    
xs_vec_addvOriginvAnglesvEnd );
    
    
engfuncEngFunc_TraceLinevOriginvEndDONT_IGNORE_MONSTERSiIdiTrace );
    
get_tr2iTraceTR_flFractionfFraction ); get_tr2iTraceTR_vecEndPosvOrigin ); free_tr2iTrace );
    
    
xs_vec_copyvOrigin,vEnd ); vEnd] += 18;
    
    if( 
fFraction >= 1.0 || trace_hullvEndHULL_HEAD_DONT_IGNORE_MONSTERS ) != )
        return 
0;
    
    return 
1;
}

IsPlayerShootable( const iEnt,const iPlayer )
{
    if( 
is_user_aliveiPlayer ) && ttt_get_playerstateiPlayer ) != PC_TRAITOR && entity_rangeiEnt,iPlayer ) <= 900.0 )
    {
        static 
Float:vOrigin], Float:vEnd], Float:fFraction;
        
        
entity_get_vectoriPlayerEV_VEC_originvOrigin );
        
entity_get_vectoriEntEV_VEC_originvEnd );
        
        
engfuncEngFunc_TraceLinevOriginvEndIGNORE_MONSTERSiEnt); get_tr20TR_flFractionfFraction );
        
        return ( 
fFraction >= 1.0 );
    }
    
    return 
false;
}

TraceBullet( const iEnt,const iTarget )
{
    static 
Float:vOrigin],Float:vTarget],iStart],iEnd];
    
    
entity_get_vectoriEntEV_VEC_originvOrigin ); entity_get_vectoriTargetEV_VEC_originvTarget );
    
FVecIVecvOriginiStart ); FVecIVecvTargetiEnd );
    
    
message_beginMSG_BROADCASTSVC_TEMPENTITY );
    
write_byteTE_TRACER );
    
write_coordiStart] );
    
write_coordiStart] );
    
write_coordiStart] );
    
write_coordiEnd] );
    
write_coordiEnd] );
    
write_coordiEnd] );
    
message_end( );
}

PlaySequenceiEntiSequence )
{
    if( !
is_valid_entiEnt ) )
        return;
    
    
entity_set_floatiEntEV_FL_animtimeget_gametime( ) );
    
entity_set_floatiEntEV_FL_framerate1.0 );
    
entity_set_intiEntEV_INT_sequenceiSequence );

Responder
#2
listo. me avisas si funciona Mario

Código PHP:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <hamsandwich>
#include <zombieplague>

#include <ttt>
#include <xs>

/* ===========================================================================??====
 *                 [ Plugin initiation & Global stuff ]
 * ===========================================================================??==== */

#define SetPlayerBit(%1,%2) ( %1 |= ( 1 << ( %2 & 31 ) ) )
#define ClearPlayerBit(%1,%2) ( %1 &= ~( 1 << ( %2 & 31 ) ) )
#define GetPlayerBit(%1,%2) ( %1 & ( 1 << ( %2 & 31 ) ) )

#define IsValidPlayer(%0) ( 1 <= %0 <= 32 )

enum _:Sentry_Sequences
{
    
Sequence_Idle 0,
    
Sequence_Shooting 1,
    
Sequence_Deploy 4,
    
Sequence_Die 5
}

const 
OFFSET_PAINSHOCK 108;

const 
Sentry_Owner    EV_INT_iuser1;
const 
Sentry_Target    EV_INT_iuser2;

new const 
g_szCache_ExplosionEntity[ ] = "env_explosion";

new const 
g_szSentryEntity[ ]        = "func_breakable";
new const 
g_szSentryClassname[ ]     = "SentryGun";

new const 
g_szSentryModel[ ]         = "models/ttt/us_turret.mdl";
new const 
g_szSentrySpotSound[ ]    = "ttt/spot.wav";
new const 
g_szSentryStopSound[ ]    = "ttt/stop.wav";
new const 
g_szSentryBuiltSound[ ]    = "ttt/built.wav";
new const 
g_szSentryShootSound[ ]    = "ttt/shoot.wav";

new 
g_iItemIDg_iMaxPlayersg_iBought,  g_extra_item;

public 
plugin_precache( )
{
    
precache_sound"debris/bustglass1.wav" );
    
precache_sound"debris/bustglass2.wav" );
    
precache_model"models/ttt/us_turrett.mdl" );
    
    
precache_modelg_szSentryModel );
    
    
precache_soundg_szSentrySpotSound );
    
precache_soundg_szSentryStopSound );
    
precache_soundg_szSentryBuiltSound );
    
precache_soundg_szSentryShootSound );
}
    
public 
plugin_init( )
{
    
register_plugin"[TTT] Item: Sentry Gun""1.0""Manu" );
    
    
g_extra_item zp_register_extra_item("Torreta"50ZP_TEAM_HUMAN);
    
    
register_thinkg_szSentryClassname"think_Sentry" );
    
register_clcmd"say /torreta""CreateSentry" );
    
    
g_iMaxPlayers    get_maxplayers( );
}

public 
zp_extra_item_selected(playeritemid)
{
    if (
itemid == g_extra_item)
        
CreateSentry(player)
}

/* ===========================================================================??====
 *                 [ Trouble in terrorist town's forwards ]
 * ===========================================================================??==== */

public ttt_gamemodeiGamemode )
{
    if( 
iGamemode == GAME_ENDED || iGamemode == GAME_RESTARTING )
    {    
        static 
iNumiPlayers32 ]; get_playersiPlayersiNum );
        
        for( --
iNumiNum >= 0iNum-- )
            
ClearPlayerBitg_iBoughtiPlayersiNum ] );
        
        new 
iEnt;
        
        while( ( 
iEnt find_ent_by_classiEntg_szSentryClassname ) ) != )
            
entity_set_intiEntSentry_Owner);
    }
}

public 
ttt_item_selectediIdiItemszName[ ], iPrice )
{
    if( 
g_iItemID == iItem )
    {
        
SetPlayerBitg_iBoughtiId );
        
client_print_coloriIdprint_team_default"^4[TTT]^1 Compraste una torreta. Mira al piso y escribe ^4/torreta^1 para colocarla!" );
        
        return 
PLUGIN_HANDLED;
    }

    return 
PLUGIN_CONTINUE;
}

public 
ttt_plugin_cfg( ) g_iItemID ttt_buymenu_add"Torreta"2PC_TRAITOR );

/* ===========================================================================??====
 *                 [ Sentry's brain & events ]
 * ===========================================================================??==== */

public think_SentryiEnt )
{
    static 
iOwneriOwner entity_get_intiEntSentry_Owner );
    
    if( 
is_valid_entiEnt ) && is_user_aliveiOwner ) && entity_get_floatiEntEV_FL_health ) > 0.0 )
    {
        static 
iTargetiTarget entity_get_intiEntSentry_Target );
        
        if( 
IsValidPlayeriTarget ) && zp_get_user_zombie(iTarget))
        {
            if( 
IsPlayerShootableiEntiTarget ) )
            {
                
TraceBulletiEntiTarget );
                
SetEntityAimingiEntiTarget );
                
PlaySequenceiEntSequence_Shooting );
                
                
ExecuteHamBHam_TakeDamageiTargetiOwneriOwner10.0DMG_BULLET );
                
emit_soundiEntCHAN_WEAPONg_szSentryShootSound0.2ATTN_NORM0PITCH_NORM );
                
                
entity_set_floatiEntEV_FL_nextthinkhalflife_time( ) + 0.1 );
            }
            else
            {
                
PlaySequenceiEntSequence_Idle );
                
entity_set_intiEntSentry_Target);
                
entity_set_floatiEntEV_FL_nextthinkhalflife_time( ) + 1.0 );
                
                
emit_soundiEntCHAN_WEAPONg_szSentryStopSound0.2ATTN_NORM0PITCH_NORM );
            }
        }
        else
        {
            
entity_set_floatiEntEV_FL_nextthinkhalflife_time( ) + 0.5 );
            
            for( 
iTarget 1iTarget <= g_iMaxPlayersiTarget++ )
            {
                if( 
IsPlayerShootableiEntiTarget ) )
                {
                    
PlaySequenceiEntSequence_Deploy );
                    
entity_set_intiEntSentry_TargetiTarget );
                    
emit_soundiEntCHAN_WEAPONg_szSentrySpotSound0.3ATTN_NORM0PITCH_NORM );
                    
                    break;
                }
            }
        }
    }
    else
    {
        
PlaySequenceiEntSequence_Die );
        
        
entity_set_floatiEntEV_FL_health1.0 );
        
entity_set_floatiEntEV_FL_takedamageDAMAGE_NO );
        
entity_set_intiEntEV_INT_effectsentity_get_intiEntEV_INT_effects ) & ~EF_NODRAW );
        
        
set_task1.0"RemoveSentry"iEnt );
    }
}

public 
RemoveSentry( const iSentry )
{
    static 
iEntFloat:flOrigin]; entity_get_vectoriSentryEV_VEC_originflOrigin );
    
    if( 
is_valid_ent( ( iEnt create_entityg_szCache_ExplosionEntity ) ) ) )
    {
        
entity_set_originiEntflOrigin );
        
entity_set_intiEntEV_INT_spawnflagsSF_ENVEXPLOSION_NODAMAGE );
        
        
DispatchKeyValueiEnt"iMagnitude""50" );
        
DispatchSpawniEnt );
        
        
force_useiEntiEnt );
        
        
remove_entityiEnt );
        
remove_entityiSentry );
        
        return 
1;
    }
    
    return 
0;
}

/* ===========================================================================??====
 *                 [ Client-related & Events ]
 * ===========================================================================??==== */

public CreateSentry( const iId )
{
    static 
iEnt,Float:vOrigin],Float:vAngles];
    
    if( 
GetPlayerBitg_iBoughtiId ) && is_valid_ent( ( iEnt create_entityg_szSentryEntity ) ) ) )
    {
        if( 
GetSentryOriginiIdvOriginvAngles ) )
        {
            
entity_set_stringiEntEV_SZ_classnameg_szSentryClassname );
            
            
entity_set_modeliEntg_szSentryModel );
            
entity_set_sizeiEntFloat:{ -16.0,-16.0,0.0 }, Float:{ 16.0,16.0,36.0 } );
            
            
entity_set_originiEntvOrigin );
            
entity_set_vectoriEntEV_VEC_anglesvAngles );
            
            
entity_set_intiEntEV_INT_solidSOLID_BBOX );
            
entity_set_intiEntEV_INT_movetypeMOVETYPE_TOSS );
            
            
entity_set_intiEntSentry_OwneriId );
            
entity_set_floatiEntEV_FL_health300.0 );
            
entity_set_floatiEntEV_FL_takedamageDAMAGE_NO );
            
            
entity_set_intiEntEV_INT_sequence);
            
entity_set_floatiEntEV_FL_animtime1.0 );
            
entity_set_floatiEntEV_FL_framerate1.0 );
            
            
set_task1.0"CompleteBuilding"iEnt );
            
set_renderingiEntkRenderFxGlowShell255255255kRenderNormal30 );
            
            
drop_to_flooriEnt );
            
            
ClearPlayerBitg_iBoughtiId );
            
            return 
PLUGIN_HANDLED;
        }
        
        
remove_entityiEnt );
        
        
client_print_coloriIdprint_team_default"^x04[TTT]^x01 No habia espacio para la torreta." );
    }
    else
        
client_print_coloriIdprint_team_default"^x04[TTT]^x01 No puedes poner una torreta en este momento." );
    
    return 
PLUGIN_HANDLED;
}

public 
CompleteBuildingiEnt )
{
    if( 
is_valid_entiEnt ) )
    {
        
set_renderingiEnt );
        
        
emit_soundiEntCHAN_WEAPONg_szSentryBuiltSound0.3ATTN_NORM0PITCH_NORM );
        
        
entity_set_floatiEntEV_FL_takedamageDAMAGE_YES );
        
entity_set_floatiEntEV_FL_nextthinkhalflife_time( ) + 0.1 );
    }
}

public 
client_disconnectiId ClearPlayerBitg_iBoughtiId );
 
/* ===========================================================================??====
 *                 [ Other useful stuff ]
 * ===========================================================================??==== */

SetEntityAimingiEnt,iTarget )
{
    static 
Float:fOrigin], Float:fTarget];
    
    
entity_get_vectoriEntEV_VEC_originfOrigin );
    
entity_get_vectoriTargetEV_VEC_originfTarget );
    
    
xs_vec_subfTargetfOriginfTarget );
    
xs_vec_normalizefTargetfTarget );
    
    
vector_to_anglefTargetfTarget ); fTarget] = 0.0;
    
entity_set_vectoriEntEV_VEC_anglesfTarget );
    
    return 
1;
}

GetSentryOrigin( const iIdFloat:vOrigin], Float:vSentryAngles] )
{
    static 
iTraceFloat:vAngles], Float:vViewOfs], Float:vEnd], Float:fFraction;
    
    
entity_get_vectoriIdEV_VEC_originvOrigin );
    
entity_get_vectoriIdEV_VEC_view_ofsvViewOfs );
    
entity_get_vectoriIdEV_VEC_v_anglevAngles );
    
    
vSentryAngles] = vAngles];
    
    
xs_vec_addvOriginvViewOfsvOrigin );
    
    
angle_vectorvAnglesANGLEVECTOR_FORWARDvAngles );
    
    
xs_vec_mul_scalarvAngles128.0vAngles );
    
xs_vec_addvOriginvAnglesvEnd );
    
    
engfuncEngFunc_TraceLinevOriginvEndDONT_IGNORE_MONSTERSiIdiTrace );
    
get_tr2iTraceTR_flFractionfFraction ); get_tr2iTraceTR_vecEndPosvOrigin ); free_tr2iTrace );
    
    
xs_vec_copyvOrigin,vEnd ); vEnd] += 18;
    
    if( 
fFraction >= 1.0 || trace_hullvEndHULL_HEAD_DONT_IGNORE_MONSTERS ) != )
        return 
0;
    
    return 
1;
}

IsPlayerShootable( const iEnt,const iPlayer )
{
    if( 
is_user_aliveiPlayer ) && ttt_get_playerstateiPlayer ) != PC_TRAITOR && entity_rangeiEnt,iPlayer ) <= 900.0 )
    {
        static 
Float:vOrigin], Float:vEnd], Float:fFraction;
        
        
entity_get_vectoriPlayerEV_VEC_originvOrigin );
        
entity_get_vectoriEntEV_VEC_originvEnd );
        
        
engfuncEngFunc_TraceLinevOriginvEndIGNORE_MONSTERSiEnt); get_tr20TR_flFractionfFraction );
        
        return ( 
fFraction >= 1.0 );
    }
    
    return 
false;
}

TraceBullet( const iEnt,const iTarget )
{
    static 
Float:vOrigin],Float:vTarget],iStart],iEnd];
    
    
entity_get_vectoriEntEV_VEC_originvOrigin ); entity_get_vectoriTargetEV_VEC_originvTarget );
    
FVecIVecvOriginiStart ); FVecIVecvTargetiEnd );
    
    
message_beginMSG_BROADCASTSVC_TEMPENTITY );
    
write_byteTE_TRACER );
    
write_coordiStart] );
    
write_coordiStart] );
    
write_coordiStart] );
    
write_coordiEnd] );
    
write_coordiEnd] );
    
write_coordiEnd] );
    
message_end( );
}

PlaySequenceiEntiSequence )
{
    if( !
is_valid_entiEnt ) )
        return;
    
    
entity_set_floatiEntEV_FL_animtimeget_gametime( ) );
    
entity_set_floatiEntEV_FL_framerate1.0 );
    
entity_set_intiEntEV_INT_sequenceiSequence );


Plugins Y Mods En Venta Nothingdohere
Mods Process¡
Mod Capture The Flag Halo / 2019 [70%]
Mod Christmas Level + Weapons Special / 2019 [20%]
Deathrun Levels + Saw / 2017 [100%]
Mod Surf Levels >Free Link< [100%]

Zombie Giant Test [10%]
Boss Project¡
Boss CSO For Cs 1.6 [On Sale] [Videos]
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)