AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [Request] Santa Hat Plugin. (https://forums.alliedmods.net/showthread.php?t=231924)

GBLTeam 12-22-2013 12:24

[Request] Santa Hat Plugin.
 
I need plugin like this
https://forums.alliedmods.net/showthread.php?t=81172

But i want different hats between CT and TT.
I have models some models santahat and jackinbox.

Really i need an plugin which contains different hats between CT and TT.
Like TT to get the Joker hat and CT to get an Santahat.

Silks 12-22-2013 13:12

Re: [Request] Santa Hat Plugin.
 
Id love to have same plugin too, so someone please make one? :)

Fuck For Fun 12-22-2013 14:30

Re: [Request] Santa Hat Plugin.
 
PHP Code:

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

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

new 
g_iHats33 ];

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

public 
plugin_precache( ) {
//  create_entity( "env_snow" );
    
    
precache_modelg_szHatModelCS_TEAM_T ] );
    
precache_modelg_szHatModelCS_TEAM_CT ] );
}

public 
client_disconnectid )
    if( 
is_valid_entg_iHatsid ] ) )
        
remove_entityg_iHatsid ] );

public 
FwdHamPlayerSpawn( const id ) {
    if( 
is_user_aliveid ) ) {
        new 
iEntity g_iHatsid ];
        
        if( !
is_valid_entiEntity ) ) {
            if( !( 
iEntity g_iHatsid ] = create_entity"info_target" ) ) )
                return;
            
            new 
CsTeams:iTeam cs_get_user_teamid );
            
            if( 
iTeam != CS_TEAM_T && iTeam != CS_TEAM_CT )
                
iTeam CS_TEAM_T;
            
            
entity_set_modeliEntityg_szHatModeliTeam ] );
            
entity_set_intiEntityEV_INT_movetypeMOVETYPE_FOLLOW );
            
entity_set_edictiEntityEV_ENT_aimentid );
        }
    }
}

public 
EventTeamInfo( ) {
    new 
id read_data), iEntity g_iHatsid ];
    
    if( !
is_valid_entiEntity ) ) {
        if( 
iEntity )
            
g_iHatsid ] = 0;
        
        return;
    }
    
    new 
szTeam];
    
read_data2szTeam);
    
    if( 
szTeam] == 'C' )
        
entity_set_modeliEntityg_szHatModelCS_TEAM_CT ] );
    else
        
entity_set_modeliEntityg_szHatModelCS_TEAM_T ] );


SantaHatModels.zip

Ex1ne 12-23-2013 12:49

Re: [Request] Santa Hat Plugin.
 
-lol-

ANTICHRISTUS 12-23-2013 14:06

Re: [Request] Santa Hat Plugin.
 
Quote:

Originally Posted by ANTICHRISTUS (Post 2074943)
there is a hats plugin, better to ask there. or if you have some GoldSrc player models wearing some nice hats, I can extract them for you.

also check the winter environement plugin, by Alka.


GuskiS 12-23-2013 15:20

Re: [Request] Santa Hat Plugin.
 
Make a chickens head from the cs_italy map :P


All times are GMT -4. The time now is 20:30.

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