I am trying to log someone out from admin privilages.
Code:
public logout(id)
{
set_user_flags(id, "z")
client_print(id, print_console, "[AMXX AUTH] You are now logged out of administrator status")
return PLUGIN_HANDLED
}
Quote:
amx_logincopy.sma(75) : error 035: argument type mismatch (argument 2)
1 Error.
|
I knew that wouldn't work but I tried it anyway.
I have also tried
Code:
public logout(id)
{
set_user_flags(id, ADMIN_USER)
client_print(id, print_console, "[AMXX AUTH] You are now logged out of administrator status")
return PLUGIN_HANDLED
}
It compiles but when I login then logout it I still have admin flags
and I have also tried
Code:
public logout(id)
{
set_user_flags(id, -1)
client_print(id, print_console, "[AMXX AUTH] You are now logged out of administrator status")
return PLUGIN_HANDLED
}
It compiles but when I login then logout it I still have admin flags
Any ideas anyone?
__________________