Raised This Month: $ Target: $400
 0% 

Improving and optimizing this thing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-29-2022 , 11:31   Re: Improving and optimizing this thing
Reply With Quote #1

CurWeapon
PHP Code:
    switch ( get_user_weapon(id) ) 
    {
        case 
CSW_KNIFE CSW_P90
        {
            
Set_Model(id)
        }    
    } 
Set_Model
PHP Code:
public Set_Model(id
{
    switch ( 
get_user_weapon(id) )
    {
        case 
CSW_KNIFE:
        {
            
set_pev(idpev_viewmodel2KnifeModels[player_item[1][id]]);
        }
        case 
CSW_P90
        {
            
set_pev(idpev_viewmodel2P90Models[player_item[2][id]]);
        }
    }
    
    return 
PLUGIN_CONTINUE;

__________________
Bugsy 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 21:22.


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