Jump to content
GIGN Forum

Raundsaund


Recommended Posts

Kā redzat pēc nosaukuma,man ir problēma ar šo pluginu.Vispār defultais ir tāds kur ir tikai 4 dziesams katrai komandai un wav fails.

Nu un gribēju pārtaisīt šo sma failu un salikt vairākas dziesmas ,lai skan,lai nau tā ka vislaik skan 2 vai 4 dziesmas.Nu bet man kautkā šis vis neiet.Raunda beigās naau ne dziesmas nekā ,viens vienīgs klusums.

Skaņas sametu-saund/misc mapē.

Šeit ir šis sma fails.Būtu ļoti pateicīgs,ja kāds varētu palīdzēt uztaisīt,tā lai iet,vai varbūt pašiem ir šāda tipa plugins pārtaisīts.Nedodiet man amxmodx.org linkus.

#include <amxmodx>

public plugin_init() 
{ 
  register_plugin("RoundSound","1.0","PaintLancer")
  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(0,6)

  client_cmd(0,"stopsound")

  switch(rand)
  {
    case 0: client_cmd(0,"spk misc/twinnar.mp3")
    case 1: client_cmd(0,"spk misc/twinnar2.mp3")
    case 2: client_cmd(0,"spk misc/twinnar3.mp3")
    case 3: client_cmd(0,"spk misc/twinnar4.mp3")
    case 4: client_cmd(0,"spk misc/twinnar5.mp3")
    case 5: client_cmd(0,"spk misc/twinnar6.mp3")
    case 6: client_cmd(0,"spk misc/twinnar7.mp3")    
  }

  return PLUGIN_CONTINUE
}

public ct_win()
{
  new rand = random_num(0,6)

  client_cmd(0,"stopsound")

  switch(rand)
  {
    case 0: client_cmd(0,"spk misc/ctwinnar.wav")
    case 1: client_cmd(0,"spk misc/ctwinnar2.mp3")
    case 2: client_cmd(0,"spk misc/ctwinnar3.mp3")
    case 3: client_cmd(0,"spk misc/ctwinnar4.mp3")
    case 4: client_cmd(0,"spk misc/ctwinnar5.mp3")
    case 5: client_cmd(0,"spk misc/ctwinnar6.mp3")
    case 6: client_cmd(0,"spk misc/ctwinnar7.mp3")
  }

  return PLUGIN_CONTINUE
}

public plugin_precache() 
{
  precache_sound("misc/ctwinnar.wav")
  precache_sound("misc/ctwinnar2.mp3")
  precache_sound("misc/ctwinnar3.mp3")
  precache_sound("misc/ctwinnar4.mp3")
  precache_sound("misc/ctwinnar5.mp3")
  precache_sound("misc/ctwinnar6.mp3")
  precache_sound("misc/ctwinnar7.mp3")
  precache_sound("misc/twinnar.mp3")
  precache_sound("misc/twinnar2.mp3")
  precache_sound("misc/twinnar3.mp3")
  precache_sound("misc/twinnar4.mp3")
  precache_sound("misc/twinnar5.mp3")
  precache_sound("misc/twinnar6.mp3")
  precache_sound("misc/twinnar7.mp3")
  

  return PLUGIN_CONTINUE
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...