hlmod.hu
https://hlmod.hu/

zene
https://hlmod.hu/viewtopic.php?f=9&t=21346
Oldal: 1 / 1

Szerző:  apple [2015.07.03. 23:08 ]
Hozzászólás témája:  zene

hali be raktam jól a zenét, le is töltieti velem a szerver be is olvassa de nem játssza le, nem hallom de miért?

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3. // change this number to the amount of sounds u have
  4. #define Maxsounds 1
  5.  
  6. // add here your sounds, sounds must be somewhere in <ModDir>/sounds
  7. // format must be like: {"misc/sound1","ambience/sound2"}
  8. new soundlist[Maxsounds][] = {"misc/acequad"}
  9.  
  10. new plugin_author[] = "S.p.0_o.N"
  11. new plugin_version[] = "1.2.3"
  12.  
  13. public plugin_init(){
  14. register_plugin("Join_Music",plugin_version,plugin_author)
  15. register_cvar("join_music_version",plugin_version,FCVAR_SERVER)
  16. }
  17.  
  18. public plugin_precache(){
  19. for ( new a = 0; a < Maxsounds; a++ ){
  20. new temp[128]
  21. format(temp,127,"sound/%s.wav", soundlist[a])
  22. if ( file_exists(temp) ){
  23. new soundfile[128]
  24. format(soundfile,127,"%s.wav", soundlist[a])
  25. precache_sound( soundfile )
  26. }
  27. }
  28. }
  29.  
  30. public client_putinserver(id){
  31. set_task(1.0,"consound",100+id)
  32. }
  33.  
  34. public consound(timerid_id){
  35. new id = timerid_id - 100
  36. new Usertime
  37. Usertime = get_user_time(id, 0)
  38. if ( Usertime <= 0 ){
  39. set_task(1.0,"consound",timerid_id)
  40. }else{
  41. new i = random(Maxsounds)
  42. client_cmd(id,"spk ^"%s^"",soundlist[i])
  43. }
  44.  
  45. return PLUGIN_CONTINUE
  46. }

Szerző:  DecToR [2015.07.03. 23:09 ]
Hozzászólás témája:  Re: zene

a Hang beálításoknál felvan húzva az MP3 hang?

Szerző:  apple [2015.07.03. 23:13 ]
Hozzászólás témája:  Re: zene

Igen, az alap zenét amit hozzá mellékeltek a plugin hoz azzal megy, csak azzal nem amit én teszek be zenét, pedig az is wav fájlban van és fájl nevét is jól írtam bele...

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