|
Author
|
Message
|
|
Junior Member
|

11-01-2013
, 09:49
Re: Play 2 Sounds At The Same Time
|
#1
|
Quote:
Originally Posted by ConnorMcLeod
PHP Code:
BlueSounds(id)
{
PlayWinSound(id, "TF/youhavetheenemyflag.wav", "TF/wehavetheenemyflag.wav");
}
PlayWinSound(iWinnerIndex, const szWinnerSound[]="", const szWinningTeamSound[]="")
{
if( !is_user_connected(iWinnerIndex) )
{
return 0;
}
static const cmd[] = "spk %s";
if( szWinnerSound[0] )
{
client_cmd(iWinnerIndex, cmd, szWinnerSound);
}
if( szWinningTeamSound[0] )
{
new players[32], num, id, szTeam[11];
get_user_team(id, szTeam, charsmax(szTeam));
get_players(players, num, "ce", szTeam);
for(--num; num>=0; num--)
{
id = players[num];
if( id != iWinnerIndex )
{
client_cmd(id, cmd, szWinningTeamSound);
}
}
}
return 1;
}
|
The player can hear the sounds but no his team, im not sure how to fix this.
|
|
|
|