hlmod.hu

Magyar Half-Life Mód közösség!
Pontos idő: 2025.06.17. 01:33



Jelenlévő felhasználók

Jelenleg 363 felhasználó van jelen :: 1 regisztrált, 0 rejtett és 362 vendég

A legtöbb felhasználó (2761 fő) 2025.01.09. 20:06-kor tartózkodott itt.

Regisztrált felhasználók: Google [Bot]az elmúlt 5 percben aktív felhasználók alapján

Utoljára aktív
Ahhoz hogy lásd ki volt utoljára aktív, be kell jelentkezned.



Az oldal teljeskörű
használatához regisztrálj.

Regisztráció

Kereső


Új téma nyitása Hozzászólás a témához  [3 hozzászólás ] 
Szerző Üzenet
 Hozzászólás témája: Korvegi zene cimel
HozzászólásElküldve:2014.08.10. 19:13 
Nem jatsza le az oszes zenet mi lehet a baj?

SMX Forráskód: [ Mindet kijelol ]
  1. #include < amxmodx >
  2. #include < amxmisc >
  3. #include < fun >
  4. #include < fakemeta >
  5. #include < cstrike >
  6. #include < hamsandwich >
  7. enum Color
  8. {
  9. NORMAL = 1, // clients scr_concolor cvar color
  10. GREEN, // Green Color
  11. TEAM_COLOR, // Red, grey, blue
  12. GREY, // grey
  13. RED, // Red
  14. BLUE, // Blue
  15. }
  16.  
  17. new TeamName[][] =
  18. {
  19. "",
  20. "TERRORIST",
  21. "CT",
  22. "SPECTATOR"
  23. }
  24.  
  25. ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
  26. {
  27. static message[256];
  28.  
  29. switch(type)
  30. {
  31. case NORMAL: // clients scr_concolor cvar color
  32. {
  33. message[0] = 0x01;
  34. }
  35. case GREEN: // Green
  36. {
  37. message[0] = 0x04;
  38. }
  39. default: // White, Red, Blue
  40. {
  41. message[0] = 0x03;
  42. }
  43. }
  44.  
  45. vformat(message[1], 251, msg, 4);
  46. message[192] = '^0';
  47.  
  48. static team, ColorChange, index, MSG_Type;
  49.  
  50. if(id)
  51. {
  52. MSG_Type = MSG_ONE;
  53. index = id;
  54. } else {
  55. index = FindPlayer();
  56. MSG_Type = MSG_ALL;
  57. }
  58.  
  59. team = get_user_team(index);
  60. ColorChange = ColorSelection(index, MSG_Type, type);
  61.  
  62. ShowColorMessage(index, MSG_Type, message);
  63.  
  64. if(ColorChange)
  65. {
  66. Team_Info(index, MSG_Type, TeamName[team]);
  67. }
  68. }
  69.  
  70. ShowColorMessage(id, type, message[])
  71. {
  72. message_begin(type, get_user_msgid("SayText"), _, id);
  73. write_byte(id)
  74. write_string(message);
  75. message_end();
  76. }
  77.  
  78. Team_Info(id, type, team[])
  79. {
  80. message_begin(type, get_user_msgid("TeamInfo"), _, id);
  81. write_byte(id);
  82. write_string(team);
  83. message_end();
  84.  
  85. return 1;
  86. }
  87.  
  88. ColorSelection(index, type, Color:Type)
  89. {
  90. switch(Type)
  91. {
  92. case RED:
  93. {
  94. return Team_Info(index, type, TeamName[1]);
  95. }
  96. case BLUE:
  97. {
  98. return Team_Info(index, type, TeamName[2]);
  99. }
  100. case GREY:
  101. {
  102. return Team_Info(index, type, TeamName[0]);
  103. }
  104. }
  105.  
  106. return 0;
  107. }
  108.  
  109. FindPlayer()
  110. {
  111. static i;
  112. i = -1;
  113.  
  114. while(i <= get_maxplayers())
  115. {
  116. if(is_user_connected(++i))
  117. {
  118. return i;
  119. }
  120. }
  121.  
  122. return -1;
  123. }
  124. new szerverprefix[] = "Korvegi Zene"
  125.  
  126. new const zene_cimek [ ] [ ] =
  127. {
  128. "",
  129. "Mr.Busta Ak26-Farkasok",
  130. "Mr.Busta-Minden Rendben feat.BSW",
  131. "Awful feat.AK26-Bomba",
  132. "Mr.Busta-Utcahimnusz",
  133. "Barbarfiverek-Uthenger",
  134. "Mr.Busta-Nevetek feat.Fura Cse",
  135. "Mr.Busta.feat-Essemm-Eyyo 2",
  136. "AK26-Fenn A Kezed km.Awful",
  137. "Mr.Busta és Essemm-Ez A Mi Utunk",
  138. "Mr.Busta & Essemm-Menj tovabb!"
  139. };
  140. public plugin_precache(){
  141. precache_sound("korv/zene01.mp3")
  142. precache_sound("korv/zene02.mp3")
  143. precache_sound("korv/zene03.mp3")
  144. precache_sound("korv/zene04.mp3")
  145. precache_sound("korv/zene05.mp3")
  146. precache_sound("korv/zene06.mp3")
  147. precache_sound("korv/zene07.mp3")
  148. precache_sound("korv/zene08.mp3")
  149. precache_sound("korv/zene09.mp3")
  150. precache_sound("korv/zene10.mp3")
  151.  
  152. }
  153. public plugin_init(){
  154. register_plugin("K?rv?gi zene c?mmel","1.0", "DeRoiD")
  155. register_event("SendAudio", "zene", "a", "2&%!MRAD_ctwin")
  156. register_event("SendAudio", "zene", "a", "2&%!MRAD_terwin")
  157. }
  158.  
  159. public zene(){
  160. switch (random_num(1, 6)){
  161. case 1 :{
  162. client_cmd(0,"mp3 play sound/korv/zene01.mp3")
  163. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 1 ] )
  164. }
  165. case 2 :{
  166. client_cmd(0,"mp3 play sound/korv/zene02.mp3")
  167. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 2 ] )
  168. }
  169. case 3 :{
  170. client_cmd(0,"mp3 play sound/korv/zene03.mp3")
  171. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 3 ] )
  172. }
  173. case 4 :{
  174. client_cmd(0,"mp3 play sound/korv/zene04.mp3")
  175. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 4 ] )
  176. }
  177. case 5 :{
  178. client_cmd(0,"mp3 play sound/korv/zene05.mp3")
  179. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 5 ] )
  180. }
  181. case 6 :{
  182. client_cmd(0,"mp3 play sound/korv/zene06.mp3")
  183. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 6 ] )
  184. }
  185. case 7 :{
  186. client_cmd(0,"mp3 play sound/korv/zene07.mp3")
  187. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 7 ] )
  188. }
  189. case 8 :{
  190. client_cmd(0,"mp3 play sound/korv/zene08.mp3")
  191. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 8 ] )
  192. }
  193. case 9 :{
  194. client_cmd(0,"mp3 play sound/korv/zene09.mp3")
  195. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 9 ] )
  196. }
  197. case 10 :{
  198. client_cmd(0,"mp3 play sound/korv/zene10.mp3")
  199. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 10 ] )
  200. }
  201. }
  202. }
  203. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  204. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang2070\\ f0\\ fs16 \n\\ par }
  205. */
  206.  


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Korvegi zene cimel
HozzászólásElküldve:2014.08.10. 20:23 
Offline
Nagyúr
Avatar

Csatlakozott:2013.09.04. 15:21
Hozzászólások:635
Megköszönt másnak: 1 alkalommal
Megköszönték neki: 141 alkalommal
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. enum Color
  8. {
  9. NORMAL = 1, // clients scr_concolor cvar color
  10. GREEN, // Green Color
  11. TEAM_COLOR, // Red, grey, blue
  12. GREY, // grey
  13. RED, // Red
  14. BLUE, // Blue
  15. }
  16.  
  17. new TeamName[][] =
  18. {
  19. "",
  20. "TERRORIST",
  21. "CT",
  22. "SPECTATOR"
  23. }
  24.  
  25. ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
  26. {
  27. static message[256];
  28.  
  29. switch(type)
  30. {
  31. case NORMAL: // clients scr_concolor cvar color
  32. {
  33. message[0] = 0x01;
  34. }
  35. case GREEN: // Green
  36. {
  37. message[0] = 0x04;
  38. }
  39. default: // White, Red, Blue
  40. {
  41. message[0] = 0x03;
  42. }
  43. }
  44.  
  45. vformat(message[1], 251, msg, 4);
  46. message[192] = '^0';
  47.  
  48. static team, ColorChange, index, MSG_Type;
  49.  
  50. if(id)
  51. {
  52. MSG_Type = MSG_ONE;
  53. index = id;
  54. } else {
  55. index = FindPlayer();
  56. MSG_Type = MSG_ALL;
  57. }
  58.  
  59. team = get_user_team(index);
  60. ColorChange = ColorSelection(index, MSG_Type, type);
  61.  
  62. ShowColorMessage(index, MSG_Type, message);
  63.  
  64. if(ColorChange)
  65. {
  66. Team_Info(index, MSG_Type, TeamName[team]);
  67. }
  68. }
  69.  
  70. ShowColorMessage(id, type, message[])
  71. {
  72. message_begin(type, get_user_msgid("SayText"), _, id);
  73. write_byte(id)
  74. write_string(message);
  75. message_end();
  76. }
  77.  
  78. Team_Info(id, type, team[])
  79. {
  80. message_begin(type, get_user_msgid("TeamInfo"), _, id);
  81. write_byte(id);
  82. write_string(team);
  83. message_end();
  84.  
  85. return 1;
  86. }
  87.  
  88. ColorSelection(index, type, Color:Type)
  89. {
  90. switch(Type)
  91. {
  92. case RED:
  93. {
  94. return Team_Info(index, type, TeamName[1]);
  95. }
  96. case BLUE:
  97. {
  98. return Team_Info(index, type, TeamName[2]);
  99. }
  100. case GREY:
  101. {
  102. return Team_Info(index, type, TeamName[0]);
  103. }
  104. }
  105.  
  106. return 0;
  107. }
  108.  
  109. FindPlayer()
  110. {
  111. static i;
  112. i = -1;
  113.  
  114. while(i <= get_maxplayers())
  115. {
  116. if(is_user_connected(++i))
  117. {
  118. return i;
  119. }
  120. }
  121.  
  122. return -1;
  123. }
  124. new szerverprefix[] = "Korvegi Zene"
  125.  
  126. new const zene_cimek [ ] [ ] =
  127. {
  128. "",
  129. "Mr.Busta Ak26-Farkasok",
  130. "Mr.Busta-Minden Rendben feat.BSW",
  131. "Awful feat.AK26-Bomba",
  132. "Mr.Busta-Utcahimnusz",
  133. "Barbarfiverek-Uthenger",
  134. "Mr.Busta-Nevetek feat.Fura Cse",
  135. "Mr.Busta.feat-Essemm-Eyyo 2",
  136. "AK26-Fenn A Kezed km.Awful",
  137. "Mr.Busta és Essemm-Ez A Mi Utunk",
  138. "Mr.Busta & Essemm-Menj tovabb!"
  139. };
  140. public plugin_precache(){
  141. precache_sound("korv/zene01.mp3")
  142. precache_sound("korv/zene02.mp3")
  143. precache_sound("korv/zene03.mp3")
  144. precache_sound("korv/zene04.mp3")
  145. precache_sound("korv/zene05.mp3")
  146. precache_sound("korv/zene06.mp3")
  147. precache_sound("korv/zene07.mp3")
  148. precache_sound("korv/zene08.mp3")
  149. precache_sound("korv/zene09.mp3")
  150. precache_sound("korv/zene10.mp3")
  151.  
  152. }
  153. public plugin_init(){
  154. register_plugin("K?rv?gi zene c?mmel","1.0", "DeRoiD")
  155. register_event("SendAudio", "zene", "a", "2&%!MRAD_ctwin")
  156. register_event("SendAudio", "zene", "a", "2&%!MRAD_terwin")
  157. }
  158.  
  159. public zene(){
  160. switch (random_num(1, 10)){
  161. case 1 :{
  162. client_cmd(0,"mp3 play sound/korv/zene01.mp3")
  163. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 1 ] )
  164. }
  165. case 2 :{
  166. client_cmd(0,"mp3 play sound/korv/zene02.mp3")
  167. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 2 ] )
  168. }
  169. case 3 :{
  170. client_cmd(0,"mp3 play sound/korv/zene03.mp3")
  171. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 3 ] )
  172. }
  173. case 4 :{
  174. client_cmd(0,"mp3 play sound/korv/zene04.mp3")
  175. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 4 ] )
  176. }
  177. case 5 :{
  178. client_cmd(0,"mp3 play sound/korv/zene05.mp3")
  179. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 5 ] )
  180. }
  181. case 6 :{
  182. client_cmd(0,"mp3 play sound/korv/zene06.mp3")
  183. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 6 ] )
  184. }
  185. case 7 :{
  186. client_cmd(0,"mp3 play sound/korv/zene07.mp3")
  187. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 7 ] )
  188. }
  189. case 8 :{
  190. client_cmd(0,"mp3 play sound/korv/zene08.mp3")
  191. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 8 ] )
  192. }
  193. case 9 :{
  194. client_cmd(0,"mp3 play sound/korv/zene09.mp3")
  195. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 9 ] )
  196. }
  197. case 10 :{
  198. client_cmd(0,"mp3 play sound/korv/zene10.mp3")
  199. ColorChat(0,GREEN,"[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 10 ] )
  200. }
  201. }
  202. }

_________________
My Steam:
KépKép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Korvegi zene cimel
HozzászólásElküldve:2014.08.10. 20:34 
:xicon_e_biggrin: :xicon_e_biggrin: Koszi de már rájottem magamtol is hogy itt nem
SMX Forráskód: [ Mindet kijelol ]
  1. switch (random_num(1, 6)){
kell leni-e hanem amenyi zene van benne :D


Hozzászólás jelentése
Vissza a tetejére
   
Hozzászólások megjelenítése: Rendezés 
Új téma nyitása Hozzászólás a témához  [3 hozzászólás ] 


Ki van itt

Jelenlévő fórumozók: nincs regisztrált felhasználó valamint 25 vendég


Nyithatsz új témákat ebben a fórumban.
Válaszolhatsz egy témára ebben a fórumban.
Nem szerkesztheted a hozzászólásaidat ebben a fórumban.
Nem törölheted a hozzászólásaidat ebben a fórumban.
Nem küldhetsz csatolmányokat ebben a fórumban.

Keresés:
Ugrás:  
Powered by phpBB® Forum Software © phpBB Limited
Magyar fordítás © Magyar phpBB Közösség
Portal: Kiss Portal Extension © Michael O'Toole