Raised This Month: $32 Target: $400
 8% 

Solved xPaws Santa Hat Only for CT


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Carbonzxc
Member
Join Date: Sep 2015
Old 11-27-2017 , 13:12   xPaws Santa Hat Only for CT
Reply With Quote #1

fixed.

Last edited by Carbonzxc; 08-05-2021 at 14:39.
Carbonzxc is offline
silsfocs
Member
Join Date: Oct 2016
Location: Ocidental Praia Lusitana
Old 11-27-2017 , 13:24   Re: xPaws Santa Hat Only for CT
Reply With Quote #2

a very easy way is just comment the last line like that:
PHP Code:
        //entity_set_model( iEntity, g_szHatModel[ CS_TEAM_T ] ); 
silsfocs is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-27-2017 , 13:57   Re: xPaws Santa Hat Only for CT
Reply With Quote #3

PHP Code:
#include < amxmodx >
#include < engine >
#include < cstrike >
#include < hamsandwich >

new const g_szHatModel[] = "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 );
    
    
RegisterHamHam_Spawn"player""FwdHamPlayerSpawn");
}

public 
plugin_precache( ) {
    
create_entity"env_snow" );
    
    
precache_modelg_szHatModel );
}

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

public 
FwdHamPlayerSpawn( const id ) {
    if( 
is_user_aliveid ) && cs_get_user_team(id) == CS_TEAM_CT) {
        new 
iEntity g_iHatsid ];
        
        if( !
is_valid_entiEntity ) ) {
            if( !( 
iEntity g_iHatsid ] = create_entity"info_target" ) ) )
                return;
            
            
entity_set_modeliEntityg_szHatModel );
            
entity_set_intiEntityEV_INT_movetypeMOVETYPE_FOLLOW );
            
entity_set_edictiEntityEV_ENT_aimentid );
        }
    }

__________________
TheWhitesmith is offline
Carbonzxc
Member
Join Date: Sep 2015
Old 11-27-2017 , 14:25   Re: xPaws Santa Hat Only for CT
Reply With Quote #4

Thanks in advance both works !
Carbonzxc is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:15.


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