Quote:
Originally Posted by edon1337
We're not here to discuss about the example I gave, I know there's better ways, it was just an example.
What I'm pointing at is, if someone connects to a server and he isn't an admin, isAdmin bool gets ticked false for him, and later on, he receives admin, isAdmin still remains false for him, that's why he should use is_user_admin instead of caching the value.
|
You do make point, but he should never check if the user is admin, some admins might have not those flags and be in the top list, so they won't be able to gain them.
__________________