Is it me or something is wrong with access() ?
Code:
public client_putinserver(id) {
get_user_name(id, name, 32)
set_hudmessage(120, 120, 200, X, Y, Effects, FxTime, HoldTime, FadeIn, FadeOut, Channel)
if (access(id, ADMIN_ADMIN)) {
log_amx(rndSuperAdmin[random(NUM_MSG)], name)
show_hudmessage(0, rndSuperAdmin[random(NUM_MSG)], name)
} else if (is_user_admin(id)) {
log_amx(rndAdmin[random(NUM_MSG)], name)
show_hudmessage(0, rndAdmin[random(NUM_MSG)], name)
} else {
show_hudmessage(0, "%s is ready to fight!", name)
}
}
I got the super-admin msg even if I dont have ADMIN_ADMIN (flag "y") access!? (Im using AmxmodX 1.01)