Raised This Month: $ Target: $400
 0% 

Problem with AMXX 1.8.2 and access


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Elusive13
Member
Join Date: Sep 2011
Old 12-20-2017 , 14:24   Problem with AMXX 1.8.2 and access
Reply With Quote #1

Hello. I have a problem with 1.8.2
I dont have a file cmdaccess.ini.
In my plugin i define a flag ADMIN_LEVEL_C(flag "o") and when i try to use this plugin "You dont have access to this command"..
I cant use my plugins with flags that i want...
Where is the problem and how can i fix it?

Sorry if topic it's not for here , if it's not move it please!
Elusive13 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-20-2017 , 14:27   Re: Problem with AMXX 1.8.2 and access
Reply With Quote #2

What plugin are you using? Seeing the code will let us know if it is actually using cmdaccess.ini. IIRC, cmdaccess.ini is created (if it doesn't exist already) the first time that you run your server with AMX Mod X.
__________________
fysiks is offline
Elusive13
Member
Join Date: Sep 2011
Old 12-20-2017 , 14:48   Re: Problem with AMXX 1.8.2 and access
Reply With Quote #3

My plugin is with registered command and flag ... I dont have the file and i never had before
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>

public plugin_init() {
   
register_plugin("Console Quit","0.1","mICKE")
   
register_concmd("amx_quit","Quit"ADMIN_KICK"<authid, nick or #userid>")
   return 
PLUGIN_CONTINUE
}

public 
Quit(idlevelcid) {
   if (!
cmd_access(id,level,cid,1)) return PLUGIN_HANDLED
   
new arg[32]
   
read_argv(1arg31)
   new 
player cmd_target(idarg2)
   if (
player != 0client_cmd(player"quit")

   new 
authid[32],authid2[32],name2[32],name[32]
   
get_user_authid(id,authid,31)
   
get_user_authid(player,authid2,31)
   
get_user_name(player,name2,31)
   
get_user_name(id,name,31)

   switch(
get_cvar_num("amx_show_activity")) { 
   case 
2:    ColorChat(0,print_chat,"!tADMIN %s: Forced %s to Quit Half-Life",name,name2)
   case 
1:    ColorChat(0,print_chat,"!tADMIN: Forced %s to Quit Half-Life",name2)
   }
   return 
PLUGIN_HANDLED
 
}
 
   public 
Quit2(idlevelcid) {
   if (!
cmd_access(id,level,cid,1)) return PLUGIN_HANDLED
   
new arg[32]
   
read_argv(1arg31)
   new 
player cmd_target(idarg2)
   if (
player != 0client_cmd(player"quit")

   new 
authid[32],authid2[32],name2[32],name[32]
   
get_user_authid(id,authid,31)
   
get_user_authid(player,authid2,31)
   
get_user_name(player,name2,31)
   
get_user_name(id,name,31)

   switch(
get_cvar_num("amx_show_activity")) { 
   case 
2:    ColorChat(0,print_chat,"!tADMIN %s: Forced %s to Quit Half-Life",name,name2)
   case 
1:    ColorChat(0,print_chat,"!tADMIN: Forced %s to Quit Half-Life",name2)
   }
   
   return 
PLUGIN_HANDLED

Elusive13 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 12-20-2017 , 14:55   Re: Problem with AMXX 1.8.2 and access
Reply With Quote #4

slowhacking is forbidden. You can`t force such commands as "quit" on a client. And this plugin won`t work, unless client has cl_filterstuff set to 0.
__________________
retired chump
DjSoftero is offline
Elusive13
Member
Join Date: Sep 2011
Old 12-20-2017 , 17:50   Re: Problem with AMXX 1.8.2 and access
Reply With Quote #5

This is just a sample....where is the problem ? why i dont have cmdaccess.ini and how to fix it? Its posibble to dont have a permissions to write in folder ?
Elusive13 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-20-2017 , 18:20   Re: Problem with AMXX 1.8.2 and access
Reply With Quote #6

Search AMXX logs for
Code:
[AMXX] FlagManager: Cannot open file "addons/amxmodx/configs/cmdaccess.ini" (FILE pointer null!)
Anyway, right, if AMXX can't create that file then it's probably a permissions-related issue.
__________________
klippy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode