Raised This Month: $ Target: $400
 0% 

get team limit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tlc660
Junior Member
Join Date: Jan 2007
Old 01-28-2007 , 14:46   get team limit
Reply With Quote #1

is there any way to get current map max players count or team limit?
i try get_maxplayers(), it return not the map max players but the settings.

thanks
tlc660 is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-28-2007 , 14:48   Re: get team limit
Reply With Quote #2

20 players in each team is the limit ( i belive ).
or do you wanna count spawns?
[ --<-@ ] Black Rose is offline
tlc660
Junior Member
Join Date: Jan 2007
Old 01-28-2007 , 14:50   Re: get team limit
Reply With Quote #3

because some map can up to 15 players per team, but some only 10
i want to know how many players are the limit per team for current map
tlc660 is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-28-2007 , 14:54   Re: get team limit
Reply With Quote #4

Maby spawns limit teams too. Here's a code to count spawns
Code:
#include <amxmodx> #include <fakemeta> public plugin_init() {     register_plugin("", "", "")         new ent = get_maxplayers(), ctspawns, tspawns     while ((ent = engfunc(EngFunc_FindEntityByString, ent, "classname", "info_player_deathmatch")))         tspawns++     ent = 0     while ((ent = engfunc(EngFunc_FindEntityByString, ent, "classname", "info_player_start")))         ctspawns++ }

Last edited by [ --<-@ ] Black Rose; 01-28-2007 at 15:09.
[ --<-@ ] Black Rose is offline
tlc660
Junior Member
Join Date: Jan 2007
Old 01-28-2007 , 15:05   Re: get team limit
Reply With Quote #5

hmmm....
it work, but seem not all map are return correct number

can i know what is the info_player_deathmatch and info_player_start?
and what actually those code doing?

thanks
tlc660 is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-28-2007 , 15:09   Re: get team limit
Reply With Quote #6

info_player_deathmatch is a terrorist spawnpoint.
info_player_start is a counter-terrorist spawnpoint.

This code search for these entitys and simply counts them.
[ --<-@ ] Black Rose is offline
tlc660
Junior Member
Join Date: Jan 2007
Old 01-28-2007 , 15:11   Re: get team limit
Reply With Quote #7

ic,

dedust2 can return 20 for each team, but why only can have up to 16 players in each team?
tlc660 is offline
s p l i t
Senior Member
Join Date: May 2006
Location: US, NC
Old 01-28-2007 , 15:53   Re: get team limit
Reply With Quote #8

CS has a max of 32 players but the map was made with more spawns available.
s p l i t is offline
Send a message via AIM to s p l i t Send a message via MSN to s p l i t
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-28-2007 , 17:46   Re: get team limit
Reply With Quote #9

Quote:
Originally Posted by s p l i t View Post
CS has a max of 32 players but the map was made with more spawns available.
Also note that you can have more than 16 players on each team, but no more than 32 players on a server.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 01-30-2007 , 15:03   Re: get team limit
Reply With Quote #10

Quote:
Originally Posted by SweatyBanana View Post
Also note that you can have more than 16 players on each team, but no more than 32 players on a server.

I fail to see the logic in this statement.

16 per team....2 teams = 32 players

more than 16 per team....2 teams = more than 32

Quote:
Originally Posted by SweatyBanana
you can have more than 16 players on each team
17 per team....2 teams = 34 (Your logic)
Quote:
Originally Posted by SweatyBanana
but no more than 32 players on a server
Refer to above formula.
organizedKaoS is offline
Reply


Thread Tools
Display Modes

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 00:34.


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