#include <amxmodx>
#include <cstrike>
#include <fun>
#include <unlocksystemmod>

#define PLUGIN "Secondary Weapon: Usp"
#define VERSION "1.0"
#define AUTHOR "Switch"

new g_usp

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

public plugin_precache()
{
	g_usp = unlock_register_weapon("USP", WEAPON_SECONDARY, 0)
}

public wpn_selected_post(id, wpnid)
{
	if(wpnid == g_usp) get_usp(id)
}

public get_usp(id)
{
	give_item(id, "weapon_usp")
	cs_set_user_bpammo(id, CSW_USP, 200)
}
