https://dev-cs.ru/resources/19/historyНужно чтобы была возможность через команду amx_addadmin добавить админа в базу данных, есть идеи?
Стоит FreshBans + CS:Bans
/**
* Admin authentication behavior flags
*/
#define FLAG_KICK (1<<0) /* flag "a" */
#define FLAG_TAG (1<<1) /* flag "b" */
#define FLAG_AUTHID (1<<2) /* flag "c" */
#define FLAG_IP (1<<3) /* flag "d" */
#define FLAG_NOPASS (1<<4) /* flag "e" */
#define FLAG_CASE_SENSITIVE (1<<10) /* flag "k" */
enum (<<=1) {
ADMINLOAD_ADD_FILE = 1,
ADMINLOAD_ADD_DB,
ADMINLOAD_ADD_REPLACE
}
switch (g_LoadType) {
case 1: {
if (addFlags & ADMINLOAD_ADD_DB) {
DBAddAdmin(authData, password, access, flags, expired, nickname, static_bantime, replace);
}
}
case 2,3: {
if (addFlags & ADMINLOAD_ADD_DB) {
DBAddAdmin(authData, password, access, flags, expired, nickname, static_bantime, replace);
}
if (addFlags & ADMINLOAD_ADD_FILE) {
FileAddAdmin(authData, password, access, flags, expired, nickname, static_bantime, replace);
}
}
default: {
if (addFlags & ADMINLOAD_ADD_FILE) {
FileAddAdmin(authData, password, access, flags, expired, nickname, static_bantime, replace);
}
}
}