hlmod.hu
https://hlmod.hu/

Körvégi zene címmel
https://hlmod.hu/viewtopic.php?f=29&t=16709
Oldal: 1 / 1

Szerző:  Somterno [2014.07.30. 13:13 ]
Hozzászólás témája:  Körvégi zene címmel

Sziasztok. Gondoltam cserélek körvégiket ugyan úgy megírtam minden. Le is tölti a szerver ,de valamiért kiírja a címét de zenét nem játszik.
SMA
SMA Forráskód: [ Mindet kijelol ]
  1. #include < amxmodx >
  2. #include < amxmisc >
  3. #include < fun >
  4. #include < fakemeta >
  5. #include < cstrike >
  6. #include < hamsandwich >
  7. #include < colorchat >
  8.  
  9. new szerverprefix[] = "Noobokon Most SzĂłl A"
  10.  
  11. new const zene_cimek [ ] [ ] =
  12. {
  13. "",
  14. "Nicole Scherzinger - Your Love",
  15. "Sander van Doorn_ Martin Garrix_ DVBBS - Gold Skies _ft. Aleesia",
  16. "BORGORE _ SIKDOPE - Unicorn Zombie Apocalypse _Original Mix_",
  17. "Flipsyde - Someday",
  18. "Spektrem - Shine _Original Mix_",
  19. "Blue Foundation - Eyes On Fire _Zeds Dead Remix_"
  20. };
  21. public plugin_precache(){
  22. precache_sound("Noobok Korvegi/1.mp3")
  23. precache_sound("Noobok Korvegi/2.mp3")
  24. precache_sound("Noobok Korvegi/3.mp3")
  25. precache_sound("Noobok Korvegi/4.mp3")
  26. precache_sound("Noobok Korvegi/5.mp3")
  27. precache_sound("Noobok Korvegi/6.mp3")
  28. }
  29. public plugin_init(){
  30. register_plugin("Körvégi zene címmel","1.0", "DeRoiD")
  31. register_event("SendAudio", "zene", "a", "2&%!MRAD_ctwin")
  32. register_event("SendAudio", "zene", "a", "2&%!MRAD_terwin")
  33. }
  34.  
  35. public zene(){
  36. switch (random_num(1, 6)){
  37. case 1 :{
  38. client_cmd(0,"mp3 play sound/Noobok Korvegi/1.mp3")
  39. ColorChat(0,BLUE,"[%s]^x01 CĂ­m: %s",szerverprefix, zene_cimek[ 1 ] )
  40. }
  41. case 2 :{
  42. client_cmd(0,"mp3 play sound/Noobok Korvegi/2.mp3")
  43. ColorChat(0,BLUE,"[%s]^x01 CĂ­m: %s",szerverprefix, zene_cimek[ 2 ] )
  44. }
  45. case 3 :{
  46. client_cmd(0,"mp3 play sound/Noobok Korvegi/3.mp3")
  47. ColorChat(0,BLUE,"[%s]^x01 CĂ­m: %s",szerverprefix, zene_cimek[ 3 ] )
  48. }
  49. case 4 :{
  50. client_cmd(0,"mp3 play sound/Noobok Korvegi/4.mp3")
  51. ColorChat(0,BLUE,"[%s]^x01 CĂ­m: %s",szerverprefix, zene_cimek[ 4 ] )
  52. }
  53. case 5 :{
  54. client_cmd(0,"mp3 play sound/Noobok Korvegi/5.mp3")
  55. ColorChat(0,BLUE,"[%s]^x01 CĂ­m: %s",szerverprefix, zene_cimek[ 5 ] )
  56. }
  57. case 6 :{
  58. client_cmd(0,"mp3 play sound/Noobok Korvegi/6.mp3")
  59. ColorChat(0,BLUE,"[%s]^x01 CĂ­m: %s",szerverprefix, zene_cimek[ 6 ] )
  60. }
  61. }
  62. }
  63. stock print_color(const id, const input[], any:...)
  64. {
  65. new count = 1, players[32]
  66. static msg[191]
  67. vformat(msg, 190, input, 3)
  68.  
  69. replace_all(msg, 190, "!g", "^4")
  70. replace_all(msg, 190, "!y", "^1")
  71. replace_all(msg, 190, "!t", "^3")
  72. replace_all(msg, 190, "á", "á")
  73. replace_all(msg, 190, "é", "Ă©")
  74. replace_all(msg, 190, "í", "Ă­")
  75. replace_all(msg, 190, "ó", "Ăł")
  76. replace_all(msg, 190, "ö", "ö")
  77. replace_all(msg, 190, "ő", "Ĺ‘")
  78. replace_all(msg, 190, "ú", "Ăş")
  79. replace_all(msg, 190, "ü", "ĂĽ")
  80. replace_all(msg, 190, "ű", "ű")
  81. replace_all(msg, 190, "Á", "Á")
  82. replace_all(msg, 190, "É", "É")
  83. replace_all(msg, 190, "Í", "ĂŤ")
  84. replace_all(msg, 190, "Ó", "Ă“")
  85. replace_all(msg, 190, "Ö", "Ă–")
  86. replace_all(msg, 190, "Ő", "Ő")
  87. replace_all(msg, 190, "Ú", "Ăš")
  88. replace_all(msg, 190, "Ü", "Ăś")
  89. replace_all(msg, 190, "Ű", "Ű")
  90.  
  91. if (id) players[0] = id; else get_players(players, count, "ch")
  92. {
  93. for (new i = 0; i < count; i++)
  94. {
  95. if (is_user_connected(players[i]))
  96. {
  97. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  98. write_byte(players[i])
  99. write_string(msg)
  100. message_end()
  101. }
  102. }
  103. }
  104. return PLUGIN_HANDLED
  105. }
  106.  

Szerző:  theglorious [2014.07.30. 13:32 ]
Hozzászólás témája:  Re: Körvégi zene címmel

Somterno írta:
Sziasztok. Gondoltam cserélek körvégiket ugyan úgy megírtam minden. Le is tölti a szerver ,de valamiért kiírja a címét de zenét nem játszik.
SMA
SMA Forráskód: [ Mindet kijelol ]
  1. #include < amxmodx >
  2. #include < amxmisc >
  3. #include < fun >
  4. #include < fakemeta >
  5. #include < cstrike >
  6. #include < hamsandwich >
  7. #include < colorchat >
  8.  
  9. new szerverprefix[] = "Noobokon Most SzĂłl A"
  10.  
  11. new const zene_cimek [ ] [ ] =
  12. {
  13. "",
  14. "Nicole Scherzinger - Your Love",
  15. "Sander van Doorn_ Martin Garrix_ DVBBS - Gold Skies _ft. Aleesia",
  16. "BORGORE _ SIKDOPE - Unicorn Zombie Apocalypse _Original Mix_",
  17. "Flipsyde - Someday",
  18. "Spektrem - Shine _Original Mix_",
  19. "Blue Foundation - Eyes On Fire _Zeds Dead Remix_"
  20. };
  21. public plugin_precache(){
  22. precache_sound("Noobok Korvegi/1.mp3")
  23. precache_sound("Noobok Korvegi/2.mp3")
  24. precache_sound("Noobok Korvegi/3.mp3")
  25. precache_sound("Noobok Korvegi/4.mp3")
  26. precache_sound("Noobok Korvegi/5.mp3")
  27. precache_sound("Noobok Korvegi/6.mp3")
  28. }
  29. public plugin_init(){
  30. register_plugin("Körvégi zene címmel","1.0", "DeRoiD")
  31. register_event("SendAudio", "zene", "a", "2&%!MRAD_ctwin")
  32. register_event("SendAudio", "zene", "a", "2&%!MRAD_terwin")
  33. }
  34.  
  35. public zene(){
  36. switch (random_num(1, 6)){
  37. case 1 :{
  38. client_cmd(0,"mp3 play sound/Noobok Korvegi/1.mp3")
  39. ColorChat(0,BLUE,"[%s]^x01 CĂ­m: %s",szerverprefix, zene_cimek[ 1 ] )
  40. }
  41. case 2 :{
  42. client_cmd(0,"mp3 play sound/Noobok Korvegi/2.mp3")
  43. ColorChat(0,BLUE,"[%s]^x01 CĂ­m: %s",szerverprefix, zene_cimek[ 2 ] )
  44. }
  45. case 3 :{
  46. client_cmd(0,"mp3 play sound/Noobok Korvegi/3.mp3")
  47. ColorChat(0,BLUE,"[%s]^x01 CĂ­m: %s",szerverprefix, zene_cimek[ 3 ] )
  48. }
  49. case 4 :{
  50. client_cmd(0,"mp3 play sound/Noobok Korvegi/4.mp3")
  51. ColorChat(0,BLUE,"[%s]^x01 CĂ­m: %s",szerverprefix, zene_cimek[ 4 ] )
  52. }
  53. case 5 :{
  54. client_cmd(0,"mp3 play sound/Noobok Korvegi/5.mp3")
  55. ColorChat(0,BLUE,"[%s]^x01 CĂ­m: %s",szerverprefix, zene_cimek[ 5 ] )
  56. }
  57. case 6 :{
  58. client_cmd(0,"mp3 play sound/Noobok Korvegi/6.mp3")
  59. ColorChat(0,BLUE,"[%s]^x01 CĂ­m: %s",szerverprefix, zene_cimek[ 6 ] )
  60. }
  61. }
  62. }
  63. stock print_color(const id, const input[], any:...)
  64. {
  65. new count = 1, players[32]
  66. static msg[191]
  67. vformat(msg, 190, input, 3)
  68.  
  69. replace_all(msg, 190, "!g", "^4")
  70. replace_all(msg, 190, "!y", "^1")
  71. replace_all(msg, 190, "!t", "^3")
  72. replace_all(msg, 190, "á", "á")
  73. replace_all(msg, 190, "é", "Ă©")
  74. replace_all(msg, 190, "í", "Ă­")
  75. replace_all(msg, 190, "ó", "Ăł")
  76. replace_all(msg, 190, "ö", "ö")
  77. replace_all(msg, 190, "ő", "Ĺ‘")
  78. replace_all(msg, 190, "ú", "Ăş")
  79. replace_all(msg, 190, "ü", "ĂĽ")
  80. replace_all(msg, 190, "ű", "ű")
  81. replace_all(msg, 190, "Á", "Á")
  82. replace_all(msg, 190, "É", "É")
  83. replace_all(msg, 190, "Í", "ĂŤ")
  84. replace_all(msg, 190, "Ó", "Ă“")
  85. replace_all(msg, 190, "Ö", "Ă–")
  86. replace_all(msg, 190, "Ő", "Ő")
  87. replace_all(msg, 190, "Ú", "Ăš")
  88. replace_all(msg, 190, "Ü", "Ăś")
  89. replace_all(msg, 190, "Ű", "Ű")
  90.  
  91. if (id) players[0] = id; else get_players(players, count, "ch")
  92. {
  93. for (new i = 0; i < count; i++)
  94. {
  95. if (is_user_connected(players[i]))
  96. {
  97. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  98. write_byte(players[i])
  99. write_string(msg)
  100. message_end()
  101. }
  102. }
  103. }
  104. return PLUGIN_HANDLED
  105. }
  106.  

Log? 13. Sort torold

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