View Single Post
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-30-2018 , 08:11   Re: Top Flags [29/08/2018]
Reply With Quote #9

Quote:
Originally Posted by edon1337 View Post
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.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 08-30-2018 at 08:12.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh