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
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-27-2018 , 12:09   Re: [HELP] How do I count the number of players in both team?
Reply With Quote #4

Quote:
Originally Posted by GoldNux View Post
I need a function that checks if there are 5 players in each team.
Something like this:

Code:
public checkPlayerAmount() {     if (playersCT == 5 && playersT == 5)     {         console_cmd(0, "csstats_pause 0")     } }
Code:
public CheckPlayers() {     new iPlayers[MAX_PLAYERS], iNum[CsTeams]     get_players(iPlayers, iNum[CS_TEAM_T], "e", "TERRORIST")     get_players(iPlayers, iNum[CS_TEAM_CT], "e", "CT")             if(iNum[CS_TEAM_T] == 5 && iNum[CS_TEAM_CT] == 5)         console_cmd(0, "csstats_pause 0") }

Last edited by iceeedr; 04-27-2018 at 12:10. Reason: .
iceeedr is offline
Send a message via Skype™ to iceeedr
 



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