/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta_util>
#include <cstrike>
#include <unlocksystemmod>

#define PLUGIN "Primary Weapon: AK47"
#define VERSION "1.0"
#define AUTHOR "Switch"

new g_knife

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
}

public plugin_precache()
{
	g_knife = unlock_register_weapon("Normal Knife", WEAPON_MELEE, 0)
}

public weapon_selected_post(id, wpnid)
{
	if(wpnid == g_knife) get_knife(id)
}

public get_knife(id)
{
	fm_give_item(id, "weapon_knife")
}
