Hi!
I want to replace mp5navy model. So.. i used this code:
PHP Code:
ovoid public ham_spawn_player( aint userid )
{
if( is_user_connected( userid ) )
{
char itemname[32] = null;
int startammo = 104,
itemgameid = 19;
formatex( itemname, 31, "weapon_mp5navy" );
int entid = give_item( userid, itemname );
entity_set_string( userid, EV_SZ_weaponmodel, "models/special/v_mt9g2.mdl" );
entity_set_string( userid, EV_SZ_viewmodel, "models/special/p_mt9g2.mdl" );
cs_set_weapon_ammo( entid, 34 );
set_user_maxspeed( userid, 247.0 / 255.0 );
cs_set_user_bpammo( userid, itemgameid, startammo );
}
}
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...