View Single Post
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 09-10-2020 , 22:38   Re: Money System [Bank | Donate | Give | Take | Time presents]
Reply With Quote #18

Quote:
Originally Posted by Bugsy View Post
1. This is because the issue only impacts bots--it's an efficiency item to not waste calling natives on bots which will never use your money commands. Just add the brackets around the set_task()'s, simple fix.
2. Good
3. Again, get_players() fills the array with only CONNECTED player id's, so you do not need to use is_user_connected(). It's more efficient to add the "ch" flags which automatically excludes bots and hltv, so you can avoid calling is_user_bot() and is_user_hltv() multiple times.
Okay thanks for your explain i will fix set_task's and do what you said
Supremache is offline