diff --git a/plugins/admin.sma b/plugins/admin.sma index d5159cad..3aa0ce21 100755 --- a/plugins/admin.sma +++ b/plugins/admin.sma @@ -137,8 +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) + if (!defaccess[0]) + defaccess[0] = 'z' new idefaccess = read_flags(defaccess) if (idefaccess){ result |= 8 diff --git a/plugins/admin_mysql.sma b/plugins/admin_mysql.sma index 027ccd73..a211ec07 100755 --- a/plugins/admin_mysql.sma +++ b/plugins/admin_mysql.sma @@ -166,8 +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) + if (!defaccess[0]) + defaccess[0] = 'z' new idefaccess = read_flags(defaccess) if (idefaccess){ result |= 8