I get no errors while compiling, but when im in game, i type amx_hsonly and it wont turn it on! did i do an error for the command?
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "amx_hsonly"
#define VERSION "1.0"
#define AUTHOR "Meta"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_hsonly","hs_only",ADMIN_KICK,"enable hs only")
register_cvar("hs_only","0");
}
public hs_only(id,level,cid)
{
if(!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new arg[12];
read_argv(1,arg,11);
if(str_to_num(arg) > 0)
{
client_print(0,print_chat,"Meta-HSONLY: HS ONLY MODE ENABLED FOR THIS ROUND")
set_user_hitzones(0,0,2)
}
else
{
client_print(0,print_chat,"Meta-HSONLY: HS ONLY MODE DISABLED FOR THIS ROUND")
set_user_hitzones(0,0,255) //this is how you set the hitzones back to normal
}
return PLUGIN_CONTINUE
}
__________________