Raised This Month: $ Target: $400
 0% 

Optimize Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-17-2018 , 13:42   Re: Optimize Plugin
Reply With Quote #1

Do they have all 32 players online 24/7? Probably not.
The only right way to loop all players is by using get_players().
__________________

Last edited by OciXCrom; 07-17-2018 at 13:43.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-17-2018 , 13:46   Re: Optimize Plugin
Reply With Quote #2

Quote:
Originally Posted by OciXCrom View Post
Do they have all 32 players online 24/7? Probably not.
The only right way to loop all players is by using get_players().
Is get_players more optimized than for(new .... , also ?
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }

PurposeLessx is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 07-17-2018 , 14:00   Re: Optimize Plugin
Reply With Quote #3

Quote:
Originally Posted by PurposeLessx View Post
Is get_players more optimized than for(new .... , also ?
What kind of question is this ?
__________________
stuff
maqi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode