#if defined _vs_core_included
  #endinput
#endif
#define _vs_core_included

#include <vs_consts>

#if AMXX_VERSION_NUM >= 175
	#pragma reqlib vs_core
	#if !defined AMXMODX_NOAUTOLOAD
		#pragma loadlib vs_core
	#endif
#else
	#pragma library vs_core
#endif

	

/*
	Register custom weapon
	@note: must be in plugin_precache()
	
	@param flags                Access flags
	@param reference            Base-name of weapon (without weapon_)
	@param name                 Weapon name	(for menu, some messages)
	@param v_model              View model
	@param p_model              Player model
	@param w_model              World model
	@param ammo                 Clip ammo
	@param bpammo               Backpack ammo
	@param cost                 Weapon cost
	@param damage               Damage modify (in percentage)
	@param team                 Team restrictions (just type first character of team name T | C, Ter | Counter, etc..)
	@param bAutoGet             Force get on player spawn
	@param section              Section to place this weapon
	
	@return       Index of the new entry
*/
native vs_custom_weapon_register(const flags[], const reference[], const name[], const v_model[] = "", const p_model[] = "", const w_model[] = "", ammo = 0, bpammo = 0, cost = 0, Float:damage = 0.0, const team[] = "", bool:bAutoGet = false, const section[] = "");


/*
	Find custom weapon by name
	
	@param name                Custom weapon name
	
	@return       Index of the entry
*/
native vs_custom_weapon_find(const name[]);


/*
	Get size of the entry Custom Weapons
	
	@return       Size of the entry
*/
native vs_custom_weapon_size();


/*
	Force give custom weapon
	
	@param id                   Custom weapon name
	@param item                 Index of the item (Example: you can get index via vs_custom_weapon_find)
	
	@return       true - if success | flase - otherwise
*/
native vs_force_give_item(id, item);


/*
	Call when player get custom weapon
	
	@param id                   Player index
	@param item                 Index of the item
	
	@return       PLUGIN_CONTINUE to let the continue
                  PLUGIN_HANDLED or higher to prevent give custom weapon
*/
forward fw_vs_give_custom_item(id, item);

