Raised This Month: $ Target: $400
 0% 

Can I set max players num in AMXX


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wwzw
Member
Join Date: Feb 2009
Old 12-19-2011 , 01:32   Can I set max players num in AMXX
Reply With Quote #1

HLDS startup parameters in which I joined "+ maxplayers 21".
Can I change this value in the AMXX?
wwzw is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-19-2011 , 03:03   Re: Can I set max players num in AMXX
Reply With Quote #2

No, it must be changed in the command line. You can, however, change the visble max players by changing the cvar sv_visiblemaxplayers.
__________________

Last edited by fysiks; 12-19-2011 at 03:03.
fysiks is offline
wwzw
Member
Join Date: Feb 2009
Old 12-19-2011 , 04:21   Re: Can I set max players num in AMXX
Reply With Quote #3

Thank you very much! fysiks . But I can not fully determine the effectiveness of setting.
If I set the "+ maxplayers 21". Set_cvar_num ("sv_visiblemaxplayers", 32);
In fact the maximum allowable number of players online server do?
wwzw is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-19-2011 , 13:55   Re: Can I set max players num in AMXX
Reply With Quote #4

Quote:
Originally Posted by wwzw View Post
Thank you very much! fysiks . But I can not fully determine the effectiveness of setting.
If I set the "+ maxplayers 21". Set_cvar_num ("sv_visiblemaxplayers", 32);
In fact the maximum allowable number of players online server do?
"Visible max players" doesn't actually change any settings.
__________________
fysiks is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-19-2011 , 14:29   Re: Can I set max players num in AMXX
Reply With Quote #5

I really wonder why this cvar exist and if it bugs with "get_maxplayers". I know that I had some issues with some plugins when I used "sv_visiblemaxplayers 255".

Connor & Arkshine... show us HLSDK..
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.

Last edited by bibu; 12-19-2011 at 14:29.
bibu is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-19-2011 , 14:34   Re: Can I set max players num in AMXX
Reply With Quote #6

Quote:
Originally Posted by bibu View Post
I really wonder why this cvar exist
I'm guessing it's intention was to hide slots and not to make it look like you have more slots.

I don't see why get_maxplayers() would be affected since "maxplayers" remains unchanged.
__________________
fysiks is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-19-2011 , 14:47   Re: Can I set max players num in AMXX
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
I'm guessing it's intention was to hide slots and not to make it look like you have more slots.
The max amount is 255. Are you sure that it was meant to hide slots?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-19-2011 , 14:53   Re: Can I set max players num in AMXX
Reply With Quote #8

Quote:
Originally Posted by bibu View Post
The max amount is 255. Are you sure that it was meant to hide slots?
255 is the upper limit of an unsigned byte (one of the simplest integers; I'm not saying that's exactly what it is but I'm guessing it is). They really don't need to cap it since there is really no bad side effects from not capping it. Checking if it's over 32 would be just one more conditional in the code.
__________________

Last edited by fysiks; 12-19-2011 at 14:54.
fysiks is offline
wwzw
Member
Join Date: Feb 2009
Old 12-21-2011 , 02:21   Re: Can I set max players num in AMXX
Reply With Quote #9

If I set the "+maxplayers 21" and set_cvar_num("sv_visiblemaxplayers", 12);

When the number of players reached 12, the other players can enter ?
wwzw is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-21-2011 , 03:35   Re: Can I set max players num in AMXX
Reply With Quote #10

Quote:
Originally Posted by wwzw View Post
If I set the "+maxplayers 21" and set_cvar_num("sv_visiblemaxplayers", 12);

When the number of players reached 12, the other players can enter ?
Via Steam Server Browser, No. Via the connect console command, Yes.
__________________
fysiks 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 11:51.


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