Pojedynczy post dla tematu:

Max Payne Zoom

Odp: Max Payne Zoom

seba is Offline
Super Mod
 
Avatar seba
 
Postów: 13,346

Poziom upalenia:
XXXXXXX- Doświadczenie: konsument, hodowca, eksporter
Zarejestrowany: Jun 2007
Wiek: 4
   

Tak, wiem, zapomniałem poprawić.
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 || !read_data(3)) 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




Graczu CS'a, coś dla Ciebie:
# Puchatek 4FuN - Serwer CS 1.6 NonSteam / Steam z wysokim poziomem - IP: 84.38.95.197:27020

# Serwer Ventrilo (VT) w wersji 2.1.4 - IP: 84.38.95.197 Port: 3784

# Nie masz ściągniętego CS'a? Żaden problem! Możesz go pobrać za darmo bez limitów klikając tutaj
Jeżeli Ci mało, więcej znajdziesz na Puchatkowych serwerach


  
 
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