When the admin is offline I don't think you can get admin info from anything but the file.
Read the file, it's not a bad way.
Something like:
Code:
stock get_offline_flags(const SteamID[]) {
new file[64];
new len = get_localinfo("amxx_configsdir", file, 63);
copy(file[len], 63-len, "/users.ini");
new fh = fopen(file, "r");
new data[128];
new data2[32];
while( ! feof(fh) ) {
fgets(fh, data, 127);
trim(data);
if ( ! data[0] || data[0] == '^n' || data[0] == ';' )
continue;
if ( containi(data, SteamID) != -1 ) {
strbreak(data, data2, 31, data, 127);
strbreak(data, data2, 31, data, 127);
strbreak(data, data2, 31, data, 127);
fclose(fh);
return read_flags(data2);
}
}
fclose(fh);
return 0;
}