Hello, sound download, not played ambience random one round:
sma:
Code:
#include <amxmodx>
new const AmbienSound[] = "misc/sds.mp3";
#define POSSIBLE_ROUND_NUM_PER_MAP 50
new i
new g_iPlayed
public plugin_precache ()
{
precache_sound( AmbienSound );
}
public plugin_init ()
{
register_plugin( "Ambience Sound", "0.1", "DeeKeiD" );
register_logevent( "OnRoundStart", 2, "1=Round_Start" );
i = random_num(1, POSSIBLE_ROUND_NUM_PER_MAP)
}
public OnRoundStart()
{
static i2
if(!g_iPlayed)
{
++i2
if(i2 == i)
{
g_iPlayed = 1
client_cmd( 0, "mp3 play %s", AmbienSound );
}
}
}
Please hellp