Hi there.
I have this countdown thing, "iTimeDelta" which i want to play it with the music in the folder, so i have 10 to 0 in mp3 sound, and the countdown is from 10 to 0, so... which emitsound should i use for make it happen ?
Im actually using just ClientCommand, but i can't change the volume level, and the players are complaining because its too loud
PHP Code:
char szSound[16];
int iCountdownTimeFloor = RoundToFloor(g_fCountdownTime);
g_iCountdownCount++;
if(g_iCountdownCount < g_fCountdownTime) {
for(int iClient = 1; iClient < MaxClients; iClient++) {
if(IsClientInGame(iClient)) {
int iTimeDelta = iCountdownTimeFloor - g_iCountdownCount;
IntToString(iTimeDelta, szSound, 15);
ClientCommand(iClient, "play */contador/%s.mp3", szSound);
PrintCenterText(iClient, "\n %t", "Start Countdown", iTimeDelta, (iTimeDelta == 1) ? "" : "s");
int team = GetClientTeam(iClient);
if(!IsPlayerAlive(iClient) && (team == CS_TEAM_CT || team == CS_TEAM_T))
{
CS_RespawnPlayer(iClient);
}
}
}
return Plugin_Continue;
}
If u can give me like another point of view to work this out please, thanks !
__________________