Raised This Month: $ Target: $400
 0% 

Max Players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
commonbullet
Veteran Member
Join Date: Oct 2005
Old 01-08-2006 , 15:46   Max Players
Reply With Quote #1

Dumb question.

I've seen in many amxx native functions, players array dimensioned to 32, just like
Code:
get_players ( players[32], &num, const flags = )
But i.e., many CS maps there is room (spawns) for 36 players...
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-08-2006 , 16:07  
Reply With Quote #2

Ignore the extra spawns.

Besides that, what's your question?
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
commonbullet
Veteran Member
Join Date: Oct 2005
Old 01-08-2006 , 16:11  
Reply With Quote #3

Suppose there are 36 players in a server, I wonder if this function would work for retrieving an id from a player indexed as "34" for instance.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-08-2006 , 16:12  
Reply With Quote #4

I don't think so.

Depends on what you're doing, if you really want, for example, to find all bots, just do this:

Code:
new bots; for(new i = 1;i <= 36;i++) {       if(is_user_bot(i))       {               bots++;       } }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
commonbullet
Veteran Member
Join Date: Oct 2005
Old 01-08-2006 , 16:19  
Reply With Quote #5

not for counting...

i.e. suppose you want to change the model of that 34th player...
you'd have to use something like
cs_set_user_model (34,...)

but it's out there at the documentation
Code:
cs_set_user_model ( index, const model[] )
index is a player index from 1 to 32.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-08-2006 , 16:21  
Reply With Quote #6

I don't think it would work.

It's hardcoded into the engine to have a max of 32 players.

The 36 might just be to randomize the location people spawn in.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
commonbullet
Veteran Member
Join Date: Oct 2005
Old 01-08-2006 , 16:23  
Reply With Quote #7

That's what I needed to know.
Thank you.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-08-2006 , 16:35  
Reply With Quote #8

Quote:
Originally Posted by Hawk552
I don't think it would work.
It won't.

Quote:
Originally Posted by Hawk552
The 36 might just be to randomize the location people spawn in.
It is.
Brad is offline
Ingram
Veteran Member
Join Date: May 2004
Old 01-08-2006 , 17:45  
Reply With Quote #9

Quote:
Originally Posted by Brad
Quote:
Originally Posted by Hawk552
The 36 might just be to randomize the location people spawn in.
It is.
the teams could be 18v14...
Ingram is offline
Dirty DuMont
Member
Join Date: Jan 2006
Old 01-09-2006 , 01:40  
Reply With Quote #10

Dirty DuMont is offline
Send a message via AIM to Dirty DuMont
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 15:54.


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