HELP MAX_PLAYERS, MAX_CLIENTS, MaxClients
Any one can tell me the difference between MAX_PLAYERS, MAX_CLIENTS, MaxClients
|
Re: HELP MAX_PLAYERS, MAX_CLIENTS, MaxClients
All are the same, it holds server max players slots.
|
Re: HELP MAX_PLAYERS, MAX_CLIENTS, MaxClients
Only MAX_PLAYERS and MaxClients exist in AMXX 1.8.3. MAX_PLAYERS is a constant that's set to 32 (maximum number of players on any server), and MaxClients is the number of player slots on the server running that plugin (up to 32) - basically sv_maxplayers.
|
Re: HELP MAX_PLAYERS, MAX_CLIENTS, MaxClients
That mens i can use MAXClients to get how many players available in server without get_maxplayers right??
MAX_CLIENTS IN reapi |
Re: HELP MAX_PLAYERS, MAX_CLIENTS, MaxClients
Quote:
E.G. I have 16 slots server. So, MAXClients=16 get_maxplayers() is used for the total number of players playing in your server. E.G. I have 16 slots server. Number of players playing now is 10. So get_maxplayers() <=10 I hope it is correct! |
Re: HELP MAX_PLAYERS, MAX_CLIENTS, MaxClients
Quote:
You need to do some basic checking before you post. Please don't post if you know that you're not sure. |
Re: HELP MAX_PLAYERS, MAX_CLIENTS, MaxClients
If i have 16 slots server in which i have 3 bots.
Then get_maxlplayers=13? |
Re: HELP MAX_PLAYERS, MAX_CLIENTS, MaxClients
Quote:
If you start the server with 10 slots, you will have get_maxplayers() = 10. |
Re: HELP MAX_PLAYERS, MAX_CLIENTS, MaxClients
This is not that complicated. If you set your server to 15 slots, then get_maxplayers() returns 15.
As mentioned, MAX_PLAYERS is set to 32 which is the max number of players that a HL1 server supports. This constant can be used for sizing arrays since you cannot use a non-constant, such as get_maxplayers(), for this purpose. The value returned by get_maxplayers() can be used for run-time conditions, such as max iterations for a loop or something. |
| All times are GMT -4. The time now is 04:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.