Raised This Month: $ Target: $400
 0% 

Pick up gun owner info


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FeehSK
Junior Member
Join Date: Jul 2019
Location: MT - BRAZIL.
Old 04-28-2021 , 20:30   Re: Pick up gun owner info
Reply With Quote #7

Quote:
Originally Posted by Bugsy View Post
I would need to see how the the skin is applied to the weapon. Is it only set as the model?
PHP Code:
new V_MODEL[64] = "models/new/v_ak47.mdl"
new P_MODEL[64] = "models/new/p_ak47.mdl"


public plugin_init()
{
    
register_event("CurWeapon","CurrentWeapon","be","1=1")
}

public 
CurrentWeapon(id)
{
     
replace_weapon_models(idread_data(2))
}

replace_weapon_models(idweaponid)
{
    switch (
weaponid)
    {
        case 
CSW_AK47:
        {
            if(
iSelect[id])
            {
                
set_pev(idpev_viewmodel2V_MODEL)
                
set_pev(idpev_weaponmodel2P_MODEL)
            }            
        }
    }

FeehSK is offline
Send a message via Skype™ to FeehSK
 



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 02:33.


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