AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Players on a team (https://forums.alliedmods.net/showthread.php?t=22322)

Kensai 12-24-2005 00:53

Players on a team
 
Hello,

Was wondering How would I see how many players are ALIVE on CT and T, the link it to a hud message?

Everytime someone dies, the hud message subtracts from the totoal of living players, etc.

I realize that doesn't make much sense. What I wanted to to do, was make a HUD message pop up with how many players are alive on each team. But I got stuck on the part where you tell how many players there are on each team.

Anyone know how?

Thanks for any help.

XxAvalanchexX 12-24-2005 02:52

Code:
new players[32], num;  get_players(players, num, "ae", "TERRORIST");

num contains the number of alive terrorists. The team name for Counter-Terrorists is "CT".

Kensai 12-24-2005 11:41

Alright thanks.


All times are GMT -4. The time now is 15:51.

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