Raised This Month: $ Target: $400
 0% 

Check team's on round end - problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 05-28-2014 , 00:24   Re: Check team's on round end - problem
Reply With Quote #2

Code:
new whichsound = random_num(1,2) switch(whichsound) { case 1: case 2: }

for 2 random sounds

im not sure about those events tho, what I'd do is count the players on the round end myself and determine the winning team
Code:
new countt = 0, countct = 0         new iPlayers[32];         new iNum;         new player;         get_players( iPlayers, iNum )         for( new i = 0; i < iNum; i++ )         {             player = iPlayers[i]             if(cs_get_user_team(player)==CS_TEAM_T)             countt=countt+1             else if(cs_get_user_team(player)==CS_TEAM_CT)             countct=countct+1         } if(!countct) { //cts win } else if(!coutt) { //ts win }

Last edited by aron9forever; 05-28-2014 at 00:24.
aron9forever 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 09:48.


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