/* AMX Mod X HS Only.

public: -
	hs_only <1|0> or <on|off>
	
*/

#include <amxmodx>
#include <fun>

public hs_only(id)
{
	if (id && !((get_user_flags(id) & ADMIN_LEVEL_A)))
	{
		client_print(id, print_console, "[HS] You do not have access to this command")
		return PLUGIN_CONTINUE
	}
	new arg[8]
	read_argv(1, arg, 7)

	if((equali(arg, "on"))||(equali(arg, "1")))
	{
		set_user_hitzones(0 ,0, 2)
		client_print(id, print_console, "[HS] On - Headshot only mode")
		client_print(0, print_chat, "[HS] On - Headshot only mode")
	}
	else
	{
		set_user_hitzones(0, 0, 255)
		client_print(id, print_console, "[HS] Off - Headshot only mode")
		client_print(0, print_chat, "[HS] Off - Headshot only mode")
	}
	return PLUGIN_HANDLED
}

public plugin_init()
{
	register_plugin("HS only","1.0","me")
	register_concmd("hs_only", "hs_only", ADMIN_LEVEL_A, "hs_only <1|0> or <on|off>")
}