Under the give_items function, put this
Code:
if(!cmd_access(id,level,cid,num) // replace num with the number of arguments (including command)
{
return PLUGIN_HANDLED;
}
instead of
Code:
if(!(get_user_access(id,&ADMIN_KICK)) {
client_print(id, print_center, "[AMXX] Access not granted.")
return PLUGIN_HANDLED
}
You also need a register_concmd function in plugin_init() to call the give_items function with a function in your console. ;)
__________________