#include <amxmodx>
#include <fakemeta>


new MODEL_KNIFE_V[]			= "models/the_last_stand/v_umb_knife.mdl"
new MODEL_GLOCK_V[]			= "models/the_last_stand/v_glock18.mdl"



public plugin_init()
{
	register_plugin( "TLS :: Umbrella Models", "1.0", "Good_Hash" );
	register_event("CurWeapon","NewModels","be","1=1")
}


public plugin_precache()
{
	precache_model(MODEL_KNIFE_V)
	precache_model(MODEL_GLOCK_V)
}

public NewModels(id)
{
	if ( get_user_weapon(id) == CSW_KNIFE )
	{
		set_pev(id, pev_viewmodel2,MODEL_KNIFE_V)
		//set_pev(id, pev_weaponmodel2, MODEL_TH_KNIFE_P)
	}
	if ( get_user_weapon(id) == CSW_GLOCK18 )
	{
		set_pev(id, pev_viewmodel2,MODEL_GLOCK_V)
	}
	
	return PLUGIN_CONTINUE
}