hlmod.hu
https://hlmod.hu/

Mi volt benne a hiba
https://hlmod.hu/viewtopic.php?f=9&t=22111
Oldal: 1 / 1

Szerző:  Charlie224 [ 2015.09.02. 19:24 ]
Hozzászólás témája:  Re: Mi volt benne a hiba

Szerkesztetem egy plugint , de hibás sajnos. Hangot szeretem volna beleírni , de nem sikerült. Hogyan kellet volna ?
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. * Plugin generated by AMXX-Studio */ #include <amxmodx>#include <amxmisc> #define PLUGIN "New Plug-In"#define VERSION "1.0"#define AUTHOR "author" new korokszamanew const koreleji[][] ={ "Küzdj és harcolj!^n%d. Fordulo", "Play! Play! Play! Play!^n%d. Kor", "Vasarold meg a fegyvereidet!^n%d. Kor", "Keszülj fel a harcra!^n%d. Forulo", "Kesztsd elo a fegyvereidet!^n%d.Kor"} new prpsounds[][] = { "mappa/prepare1", "mappa/prepare2", "mappa/prepare3", "mappa/prepare4"}; public plugin_init(){ register_plugin(PLUGIN, VERSION, AUTHOR) register_logevent("koreleje", 2, "1=Round_Start")} public koreleje(){ korokszama++ set_hudmessage(random(255), random(255), random(255), -1.0, 0.30, 1, 6.0, 6.0) show_hudmessage(0, (koreleji[random_num(0,3)]), korokszama) new q q = random_num(0,prpsounds-1) client_cmd(0,"spk %s",preplist[q]) } }



Megoldottam. Akinek kell az smaa tessék
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. * Plugin generated by AMXX-Studio */
  3.  
  4. #include <amxmodx>
  5. #include <amxmisc>
  6.  
  7. #define PLUGIN "New Plug-In"
  8. #define VERSION "1.0"
  9. #define AUTHOR "author"
  10.  
  11. new korokszama
  12. new const koreleji[][] =
  13. {
  14. "Küzdj és harcolj!^n%d. Fordulo",
  15. "Play! Play! Play! Play!^n%d. Kor",
  16. "Vasarold meg a fegyvereidet!^n%d. Kor",
  17. "Keszülj fel a harcra!^n%d. Forulo",
  18. "Kesztsd elo a fegyvereidet!^n%d.Kor"
  19. }
  20.  
  21. new prepare_sounds[][] =
  22. {
  23. "mappa/prepare1",
  24. "mappa/prepare2",
  25. "mappa/prepare3",
  26. "mappa/prepare4"
  27. };
  28.  
  29. public plugin_init()
  30. {
  31. register_plugin(PLUGIN, VERSION, AUTHOR)
  32.  
  33. register_logevent("koreleje", 2, "1=Round_Start")
  34. }
  35.  
  36. public koreleje()
  37. {
  38. korokszama++
  39.  
  40. set_hudmessage(random(255), random(255), random(255), -1.0, 0.30, 1, 6.0, 6.0)
  41. show_hudmessage(0, (koreleji[random_num(0,3)]), korokszama)
  42.  
  43. client_cmd(0,"spk %s",prepare_sounds[random(sizeof prepare_sounds)]);
  44. }
  45.  
  46.  
  47. public plugin_precache(){
  48. precache_sound("mappa/prepare1.wav")
  49. precache_sound("mappa/prepare2.wav")
  50. precache_sound("mappa/prepare3.wav")
  51. precache_sound("mappa/prepare4.wav")
  52. return PLUGIN_CONTINUE
  53. }
  54.  
  55.  
  56. ]

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/