#include <amxmodx>

public plugin_init() 
{ 
  register_plugin("RoundSound","1.0","top1")
  register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
  register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")  
}

public t_win()
{
  new rand = random_num(1,25)

  client_cmd(0,"stopsound")

  switch(rand)
  {
    case 1: client_cmd(0,"mp3 play sound/roundsound/t1.mp3")
    case 2: client_cmd(0,"mp3 play sound/roundsound/t2.mp3")
    case 3: client_cmd(0,"mp3 play sound/roundsound/t3.mp3")
    case 4: client_cmd(0,"mp3 play sound/roundsound/t4.mp3")
    case 5: client_cmd(0,"mp3 play sound/roundsound/t5.mp3")
    case 6: client_cmd(0,"mp3 play sound/roundsound/t6.mp3")
	case 7: client_cmd(0,"mp3 play sound/roundsound/t7.mp3")
	case 8: client_cmd(0,"mp3 play sound/roundsound/t8.mp3")
	case 9: client_cmd(0,"mp3 play sound/roundsound/t9.mp3")
        case 10: client_cmd(0,"mp3 play sound/roundsound/t10.mp3")
        case 11: client_cmd(0,"mp3 play sound/roundsound/t11.mp3")
        case 12: client_cmd(0,"mp3 play sound/roundsound/t12.mp3")
        case 13: client_cmd(0,"mp3 play sound/roundsound/t13.mp3")
        case 14: client_cmd(0,"mp3 play sound/roundsound/t14.mp3")
        case 15: client_cmd(0,"mp3 play sound/roundsound/t15.mp3")
        case 16: client_cmd(0,"mp3 play sound/roundsound/t16.mp3")
        case 17: client_cmd(0,"mp3 play sound/roundsound/t17.mp3")
        case 18: client_cmd(0,"mp3 play sound/roundsound/t18.mp3")
        case 19: client_cmd(0,"mp3 play sound/roundsound/t19.mp3")
        case 20: client_cmd(0,"mp3 play sound/roundsound/t20.mp3")
        case 21: client_cmd(0,"mp3 play sound/roundsound/t21.mp3")
        case 22: client_cmd(0,"mp3 play sound/roundsound/t22.mp3")
        case 23: client_cmd(0,"mp3 play sound/roundsound/t23.mp3")
        case 24: client_cmd(0,"mp3 play sound/roundsound/t24.mp3")
        case 25: client_cmd(0,"mp3 play sound/roundsound/t25.mp3")
  }

  return PLUGIN_HANDLED
}

public ct_win()
{
  new rand = random_num(1,25)

  client_cmd(0,"stopsound")

  switch(rand)
  {
    case 1: client_cmd(0,"mp3 play sound/roundsound/ct1.mp3")
    case 2: client_cmd(0,"mp3 play sound/roundsound/ct2.mp3")
    case 3: client_cmd(0,"mp3 play sound/roundsound/ct3.mp3")
    case 4: client_cmd(0,"mp3 play sound/roundsound/ct4.mp3")
    case 5: client_cmd(0,"mp3 play sound/roundsound/ct5.mp3")
    case 6: client_cmd(0,"mp3 play sound/roundsound/ct6.mp3")
	case 7: client_cmd(0,"mp3 play sound/roundsound/ct7.mp3")
	case 8: client_cmd(0,"mp3 play sound/roundsound/ct8.mp3")
        case 9: client_cmd(0,"mp3 play sound/roundsound/ct9.mp3")
        case 10: client_cmd(0,"mp3 play sound/roundsound/ct10.mp3")
        case 11: client_cmd(0,"mp3 play sound/roundsound/ct11.mp3")
        case 12: client_cmd(0,"mp3 play sound/roundsound/ct12.mp3")
        case 13: client_cmd(0,"mp3 play sound/roundsound/ct13.mp3")
        case 14: client_cmd(0,"mp3 play sound/roundsound/ct14.mp3")
        case 15: client_cmd(0,"mp3 play sound/roundsound/ct15.mp3")
        case 16: client_cmd(0,"mp3 play sound/roundsound/ct16.mp3")
        case 17: client_cmd(0,"mp3 play sound/roundsound/ct17.mp3")
        case 18: client_cmd(0,"mp3 play sound/roundsound/ct18.mp3")
        case 19: client_cmd(0,"mp3 play sound/roundsound/ct19.mp3")
        case 20: client_cmd(0,"mp3 play sound/roundsound/ct20.mp3")
        case 21: client_cmd(0,"mp3 play sound/roundsound/ct21.mp3")
        case 22: client_cmd(0,"mp3 play sound/roundsound/ct22.mp3")
        case 23: client_cmd(0,"mp3 play sound/roundsound/ct23.mp3")
        case 24: client_cmd(0,"mp3 play sound/roundsound/ct24.mp3")
        case 25: client_cmd(0,"mp3 play sound/roundsound/ct25.mp3")
  }

  return PLUGIN_HANDLED
}

public plugin_precache() 
{
  precache_sound("roundsound/ct1.mp3")
  precache_sound("roundsound/ct2.mp3")
  precache_sound("roundsound/ct3.mp3")
  precache_sound("roundsound/ct4.mp3")
  precache_sound("roundsound/ct5.mp3")
  precache_sound("roundsound/ct6.mp3")
  precache_sound("roundsound/ct7.mp3")
  precache_sound("roundsound/ct8.mp3")
  precache_sound("roundsound/ct9.mp3")
  precache_sound("roundsound/ct10.mp3")
  precache_sound("roundsound/ct11.mp3")
  precache_sound("roundsound/ct12.mp3")
  precache_sound("roundsound/ct13.mp3")
  precache_sound("roundsound/ct14.mp3")
  precache_sound("roundsound/ct15.mp3")
  precache_sound("roundsound/ct16.mp3")
  precache_sound("roundsound/ct17.mp3")
  precache_sound("roundsound/ct18.mp3")
  precache_sound("roundsound/ct19.mp3")
  precache_sound("roundsound/ct20.mp3")
  precache_sound("roundsound/ct21.mp3")
  precache_sound("roundsound/ct22.mp3")
  precache_sound("roundsound/ct23.mp3")
  precache_sound("roundsound/ct24.mp3")
  precache_sound("roundsound/ct25.mp3")
  precache_sound("roundsound/t1.mp3")
  precache_sound("roundsound/t2.mp3")
  precache_sound("roundsound/t3.mp3")
  precache_sound("roundsound/t4.mp3")
  precache_sound("roundsound/t5.mp3")
  precache_sound("roundsound/t6.mp3")
  precache_sound("roundsound/t7.mp3")
  precache_sound("roundsound/t8.mp3")
  precache_sound("roundsound/t9.mp3")
  precache_sound("roundsound/t10.mp3")
  precache_sound("roundsound/t11.mp3")
  precache_sound("roundsound/t12.mp3")
  precache_sound("roundsound/t13.mp3")
  precache_sound("roundsound/t14.mp3")
  precache_sound("roundsound/t15.mp3")
  precache_sound("roundsound/t16.mp3")
  precache_sound("roundsound/t17.mp3")
  precache_sound("roundsound/t18.mp3")
  precache_sound("roundsound/t19.mp3")
  precache_sound("roundsound/t20.mp3")
  precache_sound("roundsound/t21.mp3")
  precache_sound("roundsound/t22.mp3")
  precache_sound("roundsound/t23.mp3")
  precache_sound("roundsound/t24.mp3")
  precache_sound("roundsound/t25.mp3")

  return PLUGIN_CONTINUE
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/
