Raised This Month: $ Target: $400
 0% 

[HELP] How do I count the number of players in both team?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GoldNux
Senior Member
Join Date: Mar 2018
Old 04-27-2018 , 12:07   Re: [HELP] How do I count the number of players in both team?
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
Can call get_players() twice using the team flag. The count is passed by reference to a variable.
Does this look right?

Code:
public checkPlayerAmount() {     new playersCT[32]     new playersT[32]     new numCT     new numT     get_players(playersCT, numCT "e", "CT")     get_players(playersT, numT "e", "TERRORIST")         if (numCT == 5 && numT == 5)         {             console_cmd(0, "csstats_pause 0")         } }
__________________
Try my version of de_dust2, I think it's great and you should check it out!
https://gamebanana.com/mods/83731
GoldNux is offline
 



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 04:41.


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