Raised This Month: $ Target: $400
 0% 

Ham_item_deploy


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
NikKOo31
Senior Member
Join Date: May 2013
Location: Home
Old 05-21-2014 , 18:41   Re: Ham_item_deploy
Reply With Quote #5

I see what you guys are doing, but wouldn't be easier to use curweapon event instead of registering too many stuff?

Edit* just a thought

PHP Code:
public class_models(plr) {
    static 
id get_pdata_cbaseplr41)
    if( 
is_user_alive(id) )   {
        static 
weapon=get_user_weapon(id,_,_)
        
        switch(
weapon) {
            case 
CSW_KNIFE:
            {
                if(
player_class[id] != Ninja) {
                    
entity_set_string(idEV_SZ_viewmodelKNIFE_VIEW)  
                    
entity_set_string(idEV_SZ_weaponmodelKNIFE_PLAYER)  
                }
            }
            case 
CSW_C4:
            {
                
entity_set_string(idEV_SZ_viewmodelC4_VIEW)  
                
entity_set_string(idEV_SZ_weaponmodelC4_PLAYER)  
            }
            case 
CSW_HEGRENADE:
            {
                
entity_set_string(idEV_SZ_viewmodelHE_VIEW)  
                
entity_set_string(idEV_SZ_weaponmodelHE_PLAYER)  
            }
            case 
CSW_FLASHBANG:
            {
                
entity_set_string(idEV_SZ_viewmodelFL_VIEW)  
                
entity_set_string(idEV_SZ_weaponmodelFL_PLAYER)  
            }
            case 
CSW_SMOKEGRENADE:
            {
                
entity_set_string(idEV_SZ_viewmodelSE_VIEW)  
                
entity_set_string(idEV_SZ_weaponmodelSE_PLAYER)  
            }
        }
    }


Last edited by NikKOo31; 05-21-2014 at 18:47.
NikKOo31 is offline
 



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 09:42.


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