hlmod.hu
https://hlmod.hu/

csatlakozo hang
https://hlmod.hu/viewtopic.php?f=29&t=16041
Oldal: 1 / 1

Szerző:  kovacsgergononame [ 2014.05.26. 22:12 ]
Hozzászólás témája:  csatlakozo hang

üdv,valaki tudna linkelni 1 olyan plugint,ami csatlakozo hangot ad ki? és persze olyat mibe más hangot bele tudok tenni

Szerző:  pixxa112 [ 2014.05.26. 22:13 ]
Hozzászólás témája:  Re: csatlakozo hang

kovacsgergononame írta:
üdv,valaki tudna linkelni 1 olyan plugint,ami csatlakozo hangot ad ki? és persze olyat mibe más hangot bele tudok tenni


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/welcome-by-Sp0oN"}
  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ő:  kovacsgergononame [ 2014.05.26. 23:45 ]
Hozzászólás témája:  Re: csatlakozo hang

és a hangot hova kell beraknom? (van saját)

Szerző:  pixxa112 [ 2014.05.26. 23:48 ]
Hozzászólás témája:  Re: csatlakozo hang

kovacsgergononame írta:
és a hangot hova kell beraknom? (van saját)


new soundlist[Maxsounds][] = {"misc/welcome-by-Sp0oN"}

cstrike/misc/

Szerző:  kovacsgergononame [ 2014.05.27. 08:14 ]
Hozzászólás témája:  Re: csatlakozo hang

köszi!

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