mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
added flag z to default access
This commit is contained in:
parent
fe966fa63e
commit
95972cb250
@ -44,7 +44,6 @@ public plugin_init()
|
||||
server_cmd("exec %s/amx.cfg" , filename ) // Execute main configuration file
|
||||
format( filename, 63 , "%s/users.ini" , filename )
|
||||
loadSettings( filename ) // Load admins accounts
|
||||
|
||||
}
|
||||
|
||||
loadSettings(szFilename[])
|
||||
@ -138,6 +137,8 @@ getAccess(id,name[],authid[],ip[], password[])
|
||||
else {
|
||||
new defaccess[32]
|
||||
get_cvar_string("amx_default_access",defaccess,31)
|
||||
if (containi(defaccess,"z")==-1)
|
||||
format(defaccess,31,"%sz",defaccess)
|
||||
new idefaccess = read_flags(defaccess)
|
||||
if (idefaccess){
|
||||
result |= 8
|
||||
|
@ -166,6 +166,8 @@ getAccess(id,name[],authid[],ip[], password[]){
|
||||
else {
|
||||
new defaccess[32]
|
||||
get_cvar_string("amx_default_access",defaccess,31)
|
||||
if (containi(defaccess,"z")==-1)
|
||||
format(defaccess,31,"%sz",defaccess)
|
||||
new idefaccess = read_flags(defaccess)
|
||||
if (idefaccess){
|
||||
result |= 8
|
||||
|
Loading…
Reference in New Issue
Block a user