Nevermore
Пользователь
- Регистрация
- 26 Сен 2017
- Сообщения
- 130
- Симпатии
- 7
- Предупреждения
- 30
Говорят что можно исправить этим Ошибка "Missing RIFF/WAVE chunks" • Русское сообщество по скриптингу AMXX/SM/Metamod
но ничего не понял !
но ничего не понял !
Код:
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,9)
client_cmd(0,"mp3 stop")
switch(rand)
{
case 1: client_cmd(0,"mp3 play sound/muz/1")
case 2: client_cmd(0,"mp3 play sound/muz/2")
case 3: client_cmd(0,"mp3 play sound/muz/3")
case 4: client_cmd(0,"mp3 play sound/muz/4")
case 5: client_cmd(0,"mp3 play sound/muz/5")
case 6: client_cmd(0,"mp3 play sound/muz/6")
case 7: client_cmd(0,"mp3 play sound/muz/7")
case 8: client_cmd(0,"mp3 play sound/muz/8")
case 9: client_cmd(0,"mp3 play sound/muz/9")
case 10: client_cmd(0,"mp3 play sound/muz/10")
}
return PLUGIN_CONTINUE
}
public ct_win()
{
new rand = random_num(1,10)
client_cmd(0,"mp3 stop")
switch(rand)
{
case 1: client_cmd(0,"mp3 play sound/muz/1")
case 2: client_cmd(0,"mp3 play sound/muz/2")
case 3: client_cmd(0,"mp3 play sound/muz/3")
case 4: client_cmd(0,"mp3 play sound/muz/4")
case 5: client_cmd(0,"mp3 play sound/muz/5")
case 6: client_cmd(0,"mp3 play sound/muz/6")
case 7: client_cmd(0,"mp3 play sound/muz/7")
case 8: client_cmd(0,"mp3 play sound/muz/8")
case 9: client_cmd(0,"mp3 play sound/muz/9")
case 10: client_cmd(0,"mp3 play sound/muz/10")
}
return PLUGIN_CONTINUE
}
public plugin_precache()
{
precache_sound("muz/1.mp3")
precache_sound("muz/2.mp3")
precache_sound("muz/3.mp3")
precache_sound("muz/4.mp3")
precache_sound("muz/5.mp3")
precache_sound("muz/6.mp3")
precache_sound("muz/7.mp3")
precache_sound("muz/8.mp3")
precache_sound("muz/9.mp3")
precache_sound("muz/10.mp3")
return PLUGIN_CONTINUE
}