mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 06:48:04 +03:00
small changes
This commit is contained in:
parent
4f371ccb6c
commit
25071dce26
@ -83,7 +83,7 @@ public plugin_init() {
|
||||
register_cvar("amx_sql_table","admins")
|
||||
#endif
|
||||
|
||||
register_concmd("amx_reloadadmins","cmdReload",ADMIN_ADMIN)
|
||||
register_concmd("amx_reloadadmins","cmdReload",ADMIN_CFG)
|
||||
|
||||
format( g_cmdLoopback, 15, "amxauth%c%c%c%c" ,
|
||||
random_num('A','Z') , random_num('A','Z') ,random_num('A','Z'),random_num('A','Z') )
|
||||
@ -127,9 +127,6 @@ loadSettings(szFilename[]) {
|
||||
continue
|
||||
|
||||
g_aAccess[ g_aNum ] = read_flags(szAccess)
|
||||
if (!(g_aAccess[g_aNum] & ADMIN_USER) && !(g_aAccess[g_aNum] & ADMIN_ADMIN))
|
||||
g_aAccess[g_aNum] |= ADMIN_ADMIN
|
||||
|
||||
g_aFlags[ g_aNum ] = read_flags( szFlags )
|
||||
++g_aNum
|
||||
}
|
||||
@ -214,6 +211,11 @@ public cmdReload(id,level,cid) {
|
||||
adminSql()
|
||||
#endif
|
||||
|
||||
if (g_aNum == 1)
|
||||
console_print(id,"[AMXX] %L", LANG_SERVER, "SQL_LOADED_ADMIN" )
|
||||
else
|
||||
console_print(id,"[AMXX] %L", LANG_SERVER, "SQL_LOADED_ADMINS", g_aNum )
|
||||
|
||||
return PLUGIN_HANDLED
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user