/*================================================================================
	
	--------------------------------
	-*- [ZP] Extra Items Example -*-
	--------------------------------
	
	~~~~~~~~~~~~~~~
	- Description -
	~~~~~~~~~~~~~~~
	
	This is just an example on how to add additional extra items in ZP.
	
================================================================================*/

#include <amxmodx>
#include <zombieplague>

// Item IDs
new g_itemid1, g_itemid2, g_itemid3

public plugin_init()
{
	register_plugin("[ZP] Additional Extra Items", "0.1", "Example")
	
	// Register the new items and store their IDs for reference
	g_itemid1 = zp_register_extra_item("My Extra Item 1", 3, ZP_TEAM_ZOMBIE)
	g_itemid2 = zp_register_extra_item("My Extra Item 2", 6, ZP_TEAM_HUMAN)
	g_itemid3 = zp_register_extra_item("My Extra Item 3", 9, ZP_TEAM_HUMAN)
}

// Item Selected forward
public zp_extra_item_selected(player, itemid)
{
	// check if the selected item matches any of our registered ones
	if (itemid == g_itemid1)
		client_print(player, print_chat, "[ZP] You have purchased My extra item 1!")
	else if (itemid == g_itemid2)
		client_print(player, print_chat, "[ZP] You have purchased My extra item 2!")
	else if (itemid == g_itemid3)
		client_print(player, print_chat, "[ZP] You have purchased My extra item 3!")
}
