/* Plugin generated by AMXX-Studio */

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

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

new g_p90

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

public plugin_precache()
{
	g_p90 = unlock_register_weapon("P90", WEAPON_PRIMARY, 0)
}

public wpn_selected_post(id, wpnid)
{
	if(wpnid == g_p90) get_famas(id)
}

public get_famas(id)
{
	fm_give_item(id, "weapon_p90")
	cs_set_user_bpammo(id, CSW_P90, 200)
}
