Raised This Month: $ Target: $400
 0% 

[SEARCH] V weapon model on center.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bardukis
Member
Join Date: Jul 2014
Old 11-14-2014 , 05:17   Re: [SEARCH] V weapon model on center.
Reply With Quote #1

Maybe something like this?

Spoiler


PHP Code:
#include <amxmodx> 
#include <fakemeta>  
#include <hamsandwich>  

new const weapon_model[] = { "models/weapon_name.mdl" 

const 
XO_CBASEPLAYERITEM 
const m_pPlayer 41 

new g_iMaxPlayers  
#define IsPlayer(%0)    ( 1 <= (%0) <= g_iMaxPlayers )  

public plugin_precache()  

    
engfunc(EngFunc_PrecacheModelweapon_model


public 
plugin_init()  

    
RegisterHam(Ham_Item_Deploy"weapon_hegrenade""OnCWeapon_Deploy_Post"true)  
         
    
g_iMaxPlayers get_maxplayers()  
}  

public 
OnCWeapon_Deploy_Post(iWeapon)  
{  
    new 
id get_pdata_cbase(iWeaponm_pPlayerXO_CBASEPLAYERITEM)   
    if( 
IsPlayer(id) )   
    {     
        
set_pev(idpev_viewmodel2weapon_model)  
    }   


Last edited by bardukis; 11-14-2014 at 05:18.
bardukis is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 11-14-2014 , 05:38   Re: [SEARCH] V weapon model on center.
Reply With Quote #2

bardukis, Thank U, but i need different.
I want to CHANGE player weapon ORIGIN to CENTER from right/left position.
FromTheFuture 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:00.


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