Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.

  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

roundsound


  • Zamknięty Temat jest zamknięty
1 odpowiedź w tym temacie

#1 WielkiK

    Nowy

  • Użytkownik

Reputacja: 0
zer0.

  • Postów:1
  • Lokalizacja:Zamość
Offline

Napisano 31.10.2009 16:40

Mam taki problem ze wrzuciłem piosenki na serwer i wszystko działało i chciałem kilka zmienić to nie teraz gra zadana .i piosenki nie scaigaja sie nikomu proszę o pomoc dam pomogl



wpis z sma

#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,11)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: client_cmd(0,"spk misc/cs/t_winsim.wav")
case 1: client_cmd(0,"spk misc/cs/t_winsim1.wav")
case 2: client_cmd(0,"spk misc/cs/t_winsim2.wav")
case 3: client_cmd(0,"spk misc/cs/t_winsim3.wav")
case 4: client_cmd(0,"spk misc/cs/t_winsim4.wav")
case 5: client_cmd(0,"spk misc/cs/t_winsim5.wav")
case 6: client_cmd(0,"spk misc/cs/t_winsim6.wav")
case 7: client_cmd(0,"spk misc/cs/t_winsim7.wav")
case 8: client_cmd(0,"spk misc/cs/t_winsim8.wav")
case 9: client_cmd(0,"spk misc/cs/t_winsim9.wav")
case 10: client_cmd(0,"spk misc/cs/t_winsim10.wav")
case 11: client_cmd(0,"spk misc/cs/t_winsim11.wav")
}

return PLUGIN_HANDLED
}

public ct_win()
{
new rand = random_num(11,22)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: client_cmd(0,"spk misc/cs/ct_winsim.wav")
case 1: client_cmd(0,"spk misc/cs/ct_winsim1.wav")
case 2: client_cmd(0,"spk misc/cs/ct_winsim2.wav")
case 3: client_cmd(0,"spk misc/cs/ct_winsim3.wav")
case 4: client_cmd(0,"spk misc/cs/ct_winsim4.wav")
case 5: client_cmd(0,"spk misc/cs/ct_winsim5.wav")
case 6: client_cmd(0,"spk misc/cs/ct_winsim6.wav")
case 7: client_cmd(0,"spk misc/cs/ct_winsim7.wav")
case 8: client_cmd(0,"spk misc/cs/ct_winsim8.wav")
case 9: client_cmd(0,"spk misc/cs/ct_winsim9.wav")
case 10: client_cmd(0,"spk misc/cs/ct_winsim10.wav")
case 11: client_cmd(0,"spk misc/cs/ct_winsim11.wav")
}

return PLUGIN_HANDLED
}

public plugin_precache()
{
precache_sound("misc/cs/t_winsim.wav")
precache_sound("misc/cs/t_winsim1.wav")
precache_sound("misc/cs/t_winsim2.wav")
precache_sound("misc/cs/t_winsim3.wav")
precache_sound("misc/cs/t_winsim4.wav")
precache_sound("misc/cs/t_winsim5.wav")
precache_sound("misc/cs/t_winsim6.wav")
precache_sound("misc/cs/t_winsim7.wav")
precache_sound("misc/cs/t_winsim8.wav")
precache_sound("misc/cs/t_winsim9.wav")
precache_sound("misc/cs/t_winsim10.wav")
precache_sound("misc/cs/t_winsim11.wav")
precache_sound("misc/cs/ct_winsim12.wav")
precache_sound("misc/cs/ct_winsim13.wav")
precache_sound("misc/cs/ct_winsim14.wav")
precache_sound("misc/cs/ct_winsim15.wav")
precache_sound("misc/cs/ct_winsim16.wav")
precache_sound("misc/cs/ct_winsim17.wav")
precache_sound("misc/cs/ct_winsim18.wav")
precache_sound("misc/cs/ct_winsim19.wav")
precache_sound("misc/cs/ct_winsim20.wav")
precache_sound("misc/cs/ct_winsim21.wav")
precache_sound("misc/cs/ct_winsim22.wav")
return PLUGIN_CONTINUE
}




link do piosenek które chciałem wrzucić


http://www.megaupload.com/?d=QDD016R8
  • +
  • -
  • 0

#2 Ortega

    mów mi Orti

  • Power User

Reputacja: 361
Wszechpomocny

  • Postów:640
  • GG:
  • Steam:steam
  • Imię:Marcin
  • Lokalizacja:Sosnowiec
Offline

Napisano 31.10.2009 19:57

#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,12)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: client_cmd(0,"spk misc/cs/t_winsim.wav")
case 1: client_cmd(0,"spk misc/cs/t_winsim1.wav")
case 2: client_cmd(0,"spk misc/cs/t_winsim2.wav")
case 3: client_cmd(0,"spk misc/cs/t_winsim3.wav")
case 4: client_cmd(0,"spk misc/cs/t_winsim4.wav")
case 5: client_cmd(0,"spk misc/cs/t_winsim5.wav")
case 6: client_cmd(0,"spk misc/cs/t_winsim6.wav")
case 7: client_cmd(0,"spk misc/cs/t_winsim7.wav")
case 8: client_cmd(0,"spk misc/cs/t_winsim8.wav")
case 9: client_cmd(0,"spk misc/cs/t_winsim9.wav")
case 10: client_cmd(0,"spk misc/cs/t_winsim10.wav")
case 11: client_cmd(0,"spk misc/cs/t_winsim11.wav")
case 12: client_cmd(0,"spk misc/cs/twoja_nowa_nuta1.wav")
}

return PLUGIN_HANDLED
}

public ct_win()
{
new rand = random_num(12,24)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: client_cmd(0,"spk misc/cs/ct_winsim.wav")
case 1: client_cmd(0,"spk misc/cs/ct_winsim1.wav")
case 2: client_cmd(0,"spk misc/cs/ct_winsim2.wav")
case 3: client_cmd(0,"spk misc/cs/ct_winsim3.wav")
case 4: client_cmd(0,"spk misc/cs/ct_winsim4.wav")
case 5: client_cmd(0,"spk misc/cs/ct_winsim5.wav")
case 6: client_cmd(0,"spk misc/cs/ct_winsim6.wav")
case 7: client_cmd(0,"spk misc/cs/ct_winsim7.wav")
case 8: client_cmd(0,"spk misc/cs/ct_winsim8.wav")
case 9: client_cmd(0,"spk misc/cs/ct_winsim9.wav")
case 10: client_cmd(0,"spk misc/cs/ct_winsim10.wav")
case 11: client_cmd(0,"spk misc/cs/ct_winsim11.wav")
case 12: client_cmd(0,"spk misc/cs/twoja_nowa_nuta2.wav")
}

return PLUGIN_HANDLED
}

public plugin_precache()
{
precache_sound("misc/cs/t_winsim.wav")
precache_sound("misc/cs/t_winsim1.wav")
precache_sound("misc/cs/t_winsim2.wav")
precache_sound("misc/cs/t_winsim3.wav")
precache_sound("misc/cs/t_winsim4.wav")
precache_sound("misc/cs/t_winsim5.wav")
precache_sound("misc/cs/t_winsim6.wav")
precache_sound("misc/cs/t_winsim7.wav")
precache_sound("misc/cs/t_winsim8.wav")
precache_sound("misc/cs/t_winsim9.wav")
precache_sound("misc/cs/t_winsim10.wav")
precache_sound("misc/cs/t_winsim11.wav")
precache_sound("misc/cs/ct_winsim12.wav")
precache_sound("misc/cs/ct_winsim13.wav")
precache_sound("misc/cs/ct_winsim14.wav")
precache_sound("misc/cs/ct_winsim15.wav")
precache_sound("misc/cs/ct_winsim16.wav")
precache_sound("misc/cs/ct_winsim17.wav")
precache_sound("misc/cs/ct_winsim18.wav")
precache_sound("misc/cs/ct_winsim19.wav")
precache_sound("misc/cs/ct_winsim20.wav")
precache_sound("misc/cs/ct_winsim21.wav")
precache_sound("misc/cs/ct_winsim22.wav")
precache_sound("misc/cs/twoja_nowa_nuta1.wav")
precache_sound("misc/cs/twoja_nowa_nuta2.wav")
return PLUGIN_CONTINUE
}

W miejsce twoja_nowa_nuta1/2.wav daj nazwę utworu , tych nut co chcesz. Pamiętaj muszą być w formacie .wav
  • +
  • -
  • 0




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych