AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get team limit (https://forums.alliedmods.net/showthread.php?t=50532)

tlc660 01-28-2007 14:46

get team limit
 
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

[ --<-@ ] Black Rose 01-28-2007 14:48

Re: get team limit
 
20 players in each team is the limit ( i belive ).
or do you wanna count spawns?

tlc660 01-28-2007 14:50

Re: get team limit
 
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

[ --<-@ ] Black Rose 01-28-2007 14:54

Re: get team limit
 
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++ }

tlc660 01-28-2007 15:05

Re: get team limit
 
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

[ --<-@ ] Black Rose 01-28-2007 15:09

Re: get team limit
 
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.

tlc660 01-28-2007 15:11

Re: get team limit
 
ic,

dedust2 can return 20 for each team, but why only can have up to 16 players in each team?

s p l i t 01-28-2007 15:53

Re: get team limit
 
CS has a max of 32 players but the map was made with more spawns available.

SweatyBanana 01-28-2007 17:46

Re: get team limit
 
Quote:

Originally Posted by s p l i t (Post 432822)
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.

organizedKaoS 01-30-2007 15:03

Re: get team limit
 
Quote:

Originally Posted by SweatyBanana (Post 432873)
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.


All times are GMT -4. The time now is 00:34.

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