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
}