Jump to content

Welcome to PISTOLARII România @ Since 2011
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

Toggle shoutbox Chat Online Pistolarii Romania Open the Shoutbox in a popup

@  aLN : (18 May 2024 - 11:44 PM)

neataaa

@  zxc : (18 May 2024 - 04:57 PM)

türk varmı

@  zxc : (18 May 2024 - 04:57 PM)

selam

@  manN1 : (18 May 2024 - 07:36 AM)

Salutare

@  Yumii : (17 May 2024 - 09:15 PM)

Buna seara :)

@  M0taNeL^ : (17 May 2024 - 08:12 PM)

Va salut cu respect

@  Yumii : (17 May 2024 - 05:33 PM)

:D

@  maRy : (17 May 2024 - 03:19 PM)

Yuuum pe bune umbli baba mea :x

@  ERIC : (16 May 2024 - 06:28 PM)

O gramada de lume pe aici, niste postari dragute poate cineva sa faca?

@  Tiberiw : (16 May 2024 - 12:00 PM)

Noroace

@  ACS : (16 May 2024 - 11:42 AM)

sal la lume

@  Yumii : (16 May 2024 - 08:04 AM)

Buna dimi :)

@  mindfreak. : (15 May 2024 - 09:07 PM)

Motănel , nu mai minții că ești combinat frate

@  Yumii : (15 May 2024 - 08:56 PM)

Prea obraznic esti,Alin !

@  M0taNeL^ : (15 May 2024 - 08:06 PM)

AhaaaM :))

@  aLN : (15 May 2024 - 07:50 PM)

Motanel glumim, sa nu te superi, sper ca nu esti combinat pe aici cu cineva :)))) iar daca nu esti, o sa fii =))))

@  Yumii : (15 May 2024 - 07:47 PM)

Motanel,sa nu crezi nimic din ce zice Alin,asa mai face el cand se plictiseste :)

@  Yumii : (15 May 2024 - 07:44 PM)

:)))

@  M0taNeL^ : (15 May 2024 - 07:25 PM)

Moama, cata galagie :))

@  maRy : (15 May 2024 - 07:19 PM)

Lol..numai zic nimic :]. Și tu ai stricat destule nu crezii


[Plugin] SantaHat - Caciulite Craciun


  • Please log in to reply
2 replies to this topic

#1
Guest_negruTi_*

Guest_negruTi_*

  • Guests
  • Warns

Pălărie de Moș Crăciun

v1.3, ultima actualizare: 8 decembrie 2011
Acest plugin pur și simplu adaugă o pălărie de Moș Crăciun tuturor jucătorilor.

Cvar
amx_santahat 0/1 - Comută pălăria de Moș Crăciun (implicit: 1)

 

Descarcare: Attached File  Santa Hat.zip   449.22KB   13 downloads

Dacă doriți ca pălăriile să fie colorate pe echipe (roșu, albastru), utilizați acest cod:





#include < amxmodx >
#include < engine >
#include < cstrike >
#include < hamsandwich >

new const g_szHatModel[ CsTeams ][ ] = {
    "",
    "models/santahat.mdl",
    "models/santahat_blue.mdl",
    ""
};

new g_iHats[ 33 ];

public plugin_init( ) {
    register_plugin( "Santa Hat + Snow", "1.3", "xPaw" );
    
    register_cvar( "santa_hat", "1.3", FCVAR_SERVER );
    
    register_event( "TeamInfo", "EventTeamInfo", "a" );
    
    RegisterHam( Ham_Spawn, "player", "FwdHamPlayerSpawn", 1 );
}

public plugin_precache( ) {
//  create_entity( "env_snow" );
    
    precache_model( g_szHatModel[ CS_TEAM_T ] );
    precache_model( g_szHatModel[ CS_TEAM_CT ] );
}

public client_disconnect( id )
    if( is_valid_ent( g_iHats[ id ] ) )
        remove_entity( g_iHats[ id ] );

public FwdHamPlayerSpawn( const id ) {
    if( is_user_alive( id ) ) {
        new iEntity = g_iHats[ id ];
        
        if( !is_valid_ent( iEntity ) ) {
            if( !( iEntity = g_iHats[ id ] = create_entity( "info_target" ) ) )
                return;
            
            new CsTeams:iTeam = cs_get_user_team( id );
            
            if( iTeam != CS_TEAM_T && iTeam != CS_TEAM_CT )
                iTeam = CS_TEAM_T;
            
            entity_set_model( iEntity, g_szHatModel[ iTeam ] );
            entity_set_int( iEntity, EV_INT_movetype, MOVETYPE_FOLLOW );
            entity_set_edict( iEntity, EV_ENT_aiment, id );
        }
    }
}

public EventTeamInfo( ) {
    new id = read_data( 1 ), iEntity = g_iHats[ id ];
    
    if( !is_valid_ent( iEntity ) ) {
        if( iEntity > 0 )
            g_iHats[ id ] = 0;
        
        return;
    }
    
    new szTeam[ 2 ];
    read_data( 2, szTeam, 1 );
    
    if( szTeam[ 0 ] == 'C' )
        entity_set_model( iEntity, g_szHatModel[ CS_TEAM_CT ] );
    else
        entity_set_model( iEntity, g_szHatModel[ CS_TEAM_T ] );
}


#2
bSp^Claw

bSp^Claw
    Membru

  • Members
  • PipPip
  • posts
  • 13
  • Warns
Likes

Le asteptam si pe server  :wub:  :wub:  :wub:  :wub:



#3
Guest_negruTi_*

Guest_negruTi_*

  • Guests
  • Warns

Au fost adaugate.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users