Raised This Month: $ Target: $400
 0% 

New weapon model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CodeStepper
Member
Join Date: Jun 2013
Location: Polska
Old 07-23-2013 , 03:38   New weapon model
Reply With Quote #1

Hi!

I want to replace mp5navy model. So.. i used this code:
PHP Code:
ovoid public ham_spawn_playeraint userid )
{
    if( 
is_user_connecteduserid ) )
    {
        
char itemname[32] = null;
        
int  startammo 104,
             
itemgameid    19;
        
        
formatexitemname31"weapon_mp5navy" );
        
int entid give_itemuseriditemname );

        
entity_set_stringuseridEV_SZ_weaponmodel"models/special/v_mt9g2.mdl" );
        
entity_set_stringuseridEV_SZ_viewmodel"models/special/p_mt9g2.mdl" );
        
        
cs_set_weapon_ammoentid34 );
        
set_user_maxspeeduserid247.0 255.0 );
        
cs_set_user_bpammouseriditemgameidstartammo );
    }

And in plugin_ini RegisterHam - Ham_Spawn of course. And I have a problem... It doesn't display anything... but I can shoot...

What's wrong...
Thanks in advance for answers...
CodeStepper is offline
President
Member
Join Date: May 2013
Old 07-23-2013 , 04:39   Re: New weapon model
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=40822
President is offline
CodeStepper
Member
Join Date: Jun 2013
Location: Polska
Old 07-23-2013 , 06:05   Re: New weapon model
Reply With Quote #3

Thank you
CodeStepper 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 15:15.


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