Code:
public client_putinserver(id)
{
if(g_crowd[id] == 0)
{
g_crowd[id] = 1
set_task(1.0, "crowd_sound")
}
else
{
return PLUGIN_HANDLED
}
}
public crowd_sound(id)
{
client_cmd(id, "spk voi/sj/crowd_b1")
}
i want to play sound of crowd in map soccerjam to each player on connect(and this has to be only once since the sound is looped), but this is actually called everytime player is connected(so the client_cmd is called to player when each player gets connected and sound is played multiple times), how do i fix this ?
__________________