View Single Post
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-30-2018 , 08:01   Re: Top Flags [29/08/2018]
Reply With Quote #8

Quote:
Originally Posted by Natsheh View Post
Iknow thats why you can call it on each player connects
Rather than setting a task to be executed each second,
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.
__________________

Last edited by edon1337; 08-30-2018 at 08:02.
edon1337 is offline