AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Num of players in a team (https://forums.alliedmods.net/showthread.php?t=144041)

† TheAngel † 11-28-2010 04:35

Num of players in a team
 
How do I find out the number of players in a team?

Sorry for asking such a stupid question, but searching in that huge list of functions is giving me headaches.

I want to have a variable that has the value of the number of players in a team, and updates itself everytime the number of players increases or decreases. And another variable of the same type for the other team.

Emp` 11-28-2010 05:07

Re: Num of players in a team
 
A variable itself cannot self update. You have to catch a forward an adjust the variable accordingly.

You could try catching the TeamInfo event.


All times are GMT -4. The time now is 11:19.

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