Pojedynczy post dla tematu:

Max Payne Zoom

Odp: Max Payne Zoom

pyzatka is Offline
Starsza lamka
 
Postów: 33

Poziom upalenia:
-------- Doświadczenie: abstynent
Zarejestrowany: Sep 2008
   

Cytat:
Napisał seba Zobacz post
Kod php:
#include <amxmodx>
#include <engine>

#define PLUGIN    "Max Payne Zoom"
#define AUTHOR    "genesis"
#define VERSION   "1.2"

public plugin_init()
{
      
register_plugin(PLUGINVERSIONAUTHOR)

    
register_event("DeathMsg","MPZ_eventDeath","a")

    
register_cvar("MPZ_velocity""2000"// recommend setting around 6000 set sv_maxvelocity to 6000 as well
}

public 
plugin_precache()
{
    
precache_model("models/shell.mdl")
}

public 
MPZ_eventDeath()
{
    new 
theKiller read_data(1)

    if(!
theKiller) return PLUGIN_CONTINUE
    
    
new FloatOrigin[3], FloatVelocity[3], FloatvAngle[3], Ent
    
    entity_get_vector
(theKillerEV_VEC_origin Origin)
    
entity_get_vector(theKillerEV_VEC_v_anglevAngle)
            
    
Ent create_entity("info_target")

    if(!
is_valid_ent(Ent))
        return 
PLUGIN_CONTINUE

    entity_set_string
(EntEV_SZ_classname"MPZ_chaser")
    
entity_set_model(Ent"models/shell.mdl")
            
    new 
Float:MinBox[3] = {-1.0, -1.0, -1.0}
    new 
Float:MaxBox[3] = {1.01.01.0}
    
entity_set_vector(EntEV_VEC_minsMinBox)
    
entity_set_vector(EntEV_VEC_maxsMaxBox)
    
entity_set_float(EntEV_FL_gravity0.01)
            
    
entity_set_origin(EntOrigin)
    
entity_set_vector(EntEV_VEC_anglesvAngle)
            
    
entity_set_int(EntEV_INT_effects2)
    
entity_set_int(EntEV_INT_solid1)
    
entity_set_int(EntEV_INT_movetype10)
    
entity_set_edict(EntEV_ENT_ownertheKiller)
            
    
VelocityByAim(theKillerget_cvar_num("MPZ_velocity"), Velocity)
    
entity_set_vector(EntEV_VEC_velocity ,Velocity)
              
    
attach_view(theKillerEnt)
    return 
PLUGIN_CONTINUE
}

public 
vexd_pfntouch(pToucherpTouched
{
    new 
szClassName[32]

    if ( 
pToucher 0
    {
        if(!
is_valid_ent(pToucher))
            return 
PLUGIN_CONTINUE

        entity_get_string
(pToucherEV_SZ_classnameszClassName31)
    }
  
    if(
equal(szClassName"MPZ_chaser")) 
    {
            new 
oid entity_get_edict(pToucherEV_ENT_owner)
            
attach_view(oidoid)
            
remove_entity(pToucher)
    }
    
    return 
PLUGIN_CONTINUE


Dziala ale nie tak jak chcialem:P po kazdym zabiciu jest ten Zoom ale obojetnie jak zabije:/ a ja chcialem tylko przy "HeadShot" xD
  
 
X Przeglądasz forum jako gość, zarejestruj się aby uzyskać pełen dostęp do wiaderkowego stuff'u ganja

zalogowani nie widzą reklam


Copyright © 2006-2011 Forum Wiaderko - Counter Strike, gry, programy, muzyka, mp3, filmy, download, rapidshare, pobierz