hlmod.hu

Magyar Half-Life Mód közösség!
Pontos idő: 2024.06.16. 21:07



Jelenlévő felhasználók

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

A legtöbb felhasználó (1565 fő) 2020.11.21. 11:26-kor tartózkodott itt.

Regisztrált felhasználók: fiatalveteran 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  [ 4 hozzászólás ] 
Szerző Üzenet
 Hozzászólás témája: hangok kivéttele
HozzászólásElküldve: 2014.08.23. 22:28 
Hali valaki ki venné eböl a FEHLOVES hez tartozó sorokat
magyarul ha valaki hs add akkor ne csináljon semmit
SMA Forráskód: [ Mindet kijelol ]
  1. HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  2.  
  3. // Hun Ultimate 2.0 by BroN` | WarHosting.hu
  4.  
  5. #include <amxmodx>
  6.  
  7. #define KNIFFMESSAGES 1
  8. #define LEVELS 7
  9. #define MESSAGESNOHP 4
  10. #define MESSAGESHP 4
  11.  
  12. new kills[33] = {0,...};
  13. new deaths[33] = {0,...};
  14. new alone_ann = 0
  15. new levels[7] = {3, 5, 7, 9, 10, 13, 15};
  16.  
  17. new stksounds[7][] = {
  18. "hun_ultimate/multikill",
  19. "hun_ultimate/ultrakill",
  20. "hun_ultimate/monsterkill",
  21. "hun_ultimate/killingspree",
  22. "hun_ultimate/rampage",
  23. "hun_ultimate/holyshit",
  24. "hun_ultimate/godlike"};
  25.  
  26. new stkmessages[7][] = {
  27. "%s: Egy Bruta'lis a'llat!",
  28. "HALA'L HALA'L HALA'L!",
  29. "Ve'rz'o' csirkek %s Az isten",
  30. "%s: Egy GYILKOLOGE'P",
  31. "%s: Elpusztithatatlan",
  32. "%s: AZ ARE'NA KIRA'LYA!",
  33. "VE'R F'U'RD'O'"};
  34.  
  35.  
  36. new kniffmessages[KNIFFMESSAGES][] = {
  37. "'Utolso'nak lenni sze'gyen igaz?"}
  38.  
  39. new messagesnohp[MESSAGESNOHP][] = {
  40. "%i terrorista vs %i CT^n%s: Mostma'r minden rajtad mu'lik",
  41. "%i terrorista vs %i CT^n%s: Reme'lem van na'lad e'letment'o' csomag",
  42. "%i terrorista vs %i CT^n%s: Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
  43. "%i terrorista vs %i CT^n%s: Te vagy az u'tolso'"}
  44.  
  45. new messageshp[MESSAGESHP][] = {
  46. "%i terrorista vs %i CT^n%s (%i hp): Mostma'r minden rajtad mu'lik",
  47. "%i terrorista vs %i CT^n%s (%i hp): Reme'lem van na'lad e'letment'o' csomag",
  48. "%i terrorista vs %i CT^n%s (%i hp): Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
  49. "%i terrorista vs %i CT^n%s (%i hp): Te vagy az u'tolso'"}
  50.  
  51. get_streak()
  52. {
  53. new streak[3]
  54. get_cvar_string("streak_mode",streak,2)
  55. return read_flags(streak)
  56. }
  57.  
  58. public death_event(id)
  59. {
  60. new streak = get_streak()
  61.  
  62. if ((streak&1) || (streak&2))
  63. {
  64. new killer = read_data(1);
  65. new victim = read_data(2);
  66.  
  67. kills[killer] += 1;
  68. kills[victim] = 0;
  69. deaths[killer] = 0;
  70. deaths[victim] += 1;
  71.  
  72. for (new i = 0; i < LEVELS; i++)
  73. {
  74. if (kills[killer] == levels[i])
  75. {
  76. announce(killer, i);
  77. return PLUGIN_CONTINUE;
  78. }
  79. }
  80. }
  81. return PLUGIN_CONTINUE;
  82. }
  83.  
  84. announce(killer, level)
  85. {
  86. new streak = get_streak()
  87.  
  88. if (streak&1)
  89. {
  90. new name[32];
  91.  
  92. get_user_name(killer, name, 32);
  93. set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2);
  94. show_hudmessage(0, stkmessages[level], name);
  95. }
  96.  
  97. if (streak&2){
  98. client_cmd(0, "spk %s", stksounds[level]);
  99. }
  100. }
  101.  
  102. public reset_hud(id)
  103. {
  104. new streak = get_streak()
  105.  
  106. if (streak&1)
  107. {
  108.  
  109. if (kills[id] > levels[0])
  110. {
  111. client_print(id, print_chat,
  112. "* Te %d oltel ogy tovabb", kills[id]);
  113.  
  114. }
  115.  
  116. else if (deaths[id] > 1)
  117. {
  118. client_print(id, print_chat,
  119. "* Te meghaltal %dx sorozatban ovatosabban...", deaths[id]);
  120. }
  121. }
  122. }
  123.  
  124. public client_connect(id)
  125. {
  126. new streak = get_streak()
  127.  
  128. if ((streak&1) || (streak&2))
  129. {
  130. kills[id] = 0;
  131. deaths[id] = 0;
  132. }
  133. }
  134.  
  135. public knife_kill()
  136. {
  137. new kniffmode[4]
  138. get_cvar_string("kniff_mode",kniffmode,4)
  139. new kniffmode_bit = read_flags(kniffmode)
  140.  
  141. if (kniffmode_bit & 1)
  142. {
  143. new killer_id = read_data(1)
  144. new victim_id = read_data(2)
  145. new killer_name[33], victim_name[33]
  146.  
  147. get_user_name(killer_id,killer_name,33)
  148. get_user_name(victim_id,victim_name,33)
  149.  
  150.  
  151. set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
  152. show_hudmessage(0,kniffmessages[ random_num(0,KNIFFMESSAGES-1) ],killer_name,victim_name)
  153. }
  154.  
  155. if (kniffmode_bit & 2)
  156. {
  157. client_cmd(0,"spk hun_ultimate/knife")
  158. }
  159. }
  160.  
  161.  
  162. public roundend_msg(id)
  163.  
  164. alone_ann = 0
  165.  
  166. public death_msg(id)
  167. {
  168.  
  169. new lmmode[8]
  170. get_cvar_string("lastman_mode",lmmode,8)
  171. new lmmode_bit = read_flags(lmmode)
  172.  
  173. new players_ct[32], players_t[32], ict, ite, last
  174. get_players(players_ct,ict,"ae","CT")
  175. get_players(players_t,ite,"ae","TERRORIST")
  176.  
  177. if (ict==1&&ite==1)
  178. {
  179. new name1[32], name2[32]
  180. get_user_name(players_ct[0],name1,32)
  181. get_user_name(players_t[0],name2,32)
  182. set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
  183.  
  184. if (lmmode_bit & 1)
  185. {
  186. if (lmmode_bit & 2)
  187. {
  188. show_hudmessage(0,"%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
  189. }
  190.  
  191. else
  192. {
  193. show_hudmessage(0,"%s vs. %s",name1,name2)
  194. }
  195.  
  196. if (lmmode_bit & 4)
  197. {
  198. client_cmd(0,"spk misccc/maytheforce")
  199. }
  200. }
  201. }
  202. else
  203. {
  204. if (ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
  205. {
  206. last=players_ct[0]
  207. client_cmd(last,"spk misccc/oneandonly")
  208. }
  209.  
  210. else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
  211. {
  212. last=players_t[0]
  213. client_cmd(last,"spk misccc/oneandonly")
  214. }
  215.  
  216. else
  217. {
  218. return PLUGIN_CONTINUE
  219. }
  220. alone_ann = last
  221. new name[32]
  222. get_user_name(last,name,32)
  223.  
  224. if (lmmode_bit & 1)
  225. {
  226. set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
  227.  
  228. if (lmmode_bit & 2)
  229. {
  230. show_hudmessage(0,messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
  231. }
  232.  
  233. else
  234. {
  235. show_hudmessage(0,messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
  236. }
  237. }
  238.  
  239. if (lmmode_bit & 4)
  240. {
  241. client_cmd(last,"spk misccc/maytheforce")
  242. }
  243. }
  244. return PLUGIN_CONTINUE
  245. }
  246.  
  247.  
  248. public hs()
  249. {
  250. new hsmode[4]
  251. get_cvar_string("hs_mode",hsmode,4)
  252. new hsmode_bit = read_flags(hsmode)
  253.  
  254. if (hsmode_bit & 1)
  255. {
  256. new killer_id = read_data(1)
  257. new victim_id = read_data(2)
  258. new victim_name[33]
  259.  
  260. get_user_name(victim_id,victim_name,33)
  261.  
  262. set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1)
  263. show_hudmessage(killer_id,"::!FEJLOVES!::",victim_name)
  264. }
  265.  
  266. if (hsmode_bit & 2)
  267. {
  268. client_cmd(0,"spk hun_ultimate/headshot")
  269. }
  270. }
  271.  
  272. public plugin_precache()
  273. {
  274. precache_sound("hun_ultimate/monsterkill.wav")
  275. precache_sound("hun_ultimate/godlike.wav")
  276. precache_sound("hun_ultimate/headshot.wav")
  277. precache_sound("hun_ultimate/knife.wav")
  278. precache_sound("hun_ultimate/killingspree.wav")
  279. precache_sound("hun_ultimate/multikill.wav")
  280. precache_sound("hun_ultimate/ultrakill.wav")
  281. precache_sound("hun_ultimate/prepare.wav")
  282. precache_sound("hun_ultimate/rampage.wav")
  283. precache_sound("hun_ultimate/holyshit.wav")
  284.  
  285. return PLUGIN_CONTINUE
  286. }
  287.  
  288.  
  289.  
  290. public plugin_init()
  291. {
  292. register_plugin("Hungarian Ultimate Sounds","2.0","bron")
  293. register_event("DeathMsg","hs","a","3=1")
  294. register_event("DeathMsg","knife_kill","a","4&kni")
  295. register_event("ResetHUD", "reset_hud", "b");
  296. register_event("DeathMsg", "death_event", "a")
  297. register_event("SendAudio","roundend_msg","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
  298. register_event("TextMsg","roundend_msg","a","2&#Game_C","2&#Game_w")
  299. register_event("DeathMsg","death_msg","a")
  300. register_cvar("lastman_mode","abc")
  301. register_cvar("streak_mode","ab")
  302. register_cvar("kniff_mode","ab")
  303. register_cvar("hs_mode","ab")
  304.  
  305. return PLUGIN_CONTINUE
  306. }


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: hangok kivéttele
HozzászólásElküldve: 2014.08.23. 22:47 
Offline
Senior Tag
Avatar

Csatlakozott: 2014.02.10. 19:10
Hozzászólások: 252
Megköszönt másnak: 10 alkalommal
Megköszönték neki: 44 alkalommal
Tessék:
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. // Hun Ultimate 2.0 by BroN` | WarHosting.hu
  3.  
  4. #include <amxmodx>
  5.  
  6. #define KNIFFMESSAGES 1
  7. #define LEVELS 7
  8. #define MESSAGESNOHP 4
  9. #define MESSAGESHP 4
  10.  
  11. new kills[33] = {0,...};
  12. new deaths[33] = {0,...};
  13. new alone_ann = 0
  14. new levels[7] = {3, 5, 7, 9, 10, 13, 15};
  15.  
  16. new stksounds[7][] = {
  17. "hun_ultimate/multikill",
  18. "hun_ultimate/ultrakill",
  19. "hun_ultimate/monsterkill",
  20. "hun_ultimate/killingspree",
  21. "hun_ultimate/rampage",
  22. "hun_ultimate/holyshit",
  23. "hun_ultimate/godlike"};
  24.  
  25. new stkmessages[7][] = {
  26. "%s: Egy Bruta'lis a'llat!",
  27. "HALA'L HALA'L HALA'L!",
  28. "Ve'rz'o' csirkek %s Az isten",
  29. "%s: Egy GYILKOLOGE'P",
  30. "%s: Elpusztithatatlan",
  31. "%s: AZ ARE'NA KIRA'LYA!",
  32. "VE'R F'U'RD'O'"};
  33.  
  34.  
  35. new kniffmessages[KNIFFMESSAGES][] = {
  36. "'Utolso'nak lenni sze'gyen igaz?"}
  37.  
  38. new messagesnohp[MESSAGESNOHP][] = {
  39. "%i terrorista vs %i CT^n%s: Mostma'r minden rajtad mu'lik",
  40. "%i terrorista vs %i CT^n%s: Reme'lem van na'lad e'letment'o' csomag",
  41. "%i terrorista vs %i CT^n%s: Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
  42. "%i terrorista vs %i CT^n%s: Te vagy az u'tolso'"}
  43.  
  44. new messageshp[MESSAGESHP][] = {
  45. "%i terrorista vs %i CT^n%s (%i hp): Mostma'r minden rajtad mu'lik",
  46. "%i terrorista vs %i CT^n%s (%i hp): Reme'lem van na'lad e'letment'o' csomag",
  47. "%i terrorista vs %i CT^n%s (%i hp): Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
  48. "%i terrorista vs %i CT^n%s (%i hp): Te vagy az u'tolso'"}
  49.  
  50. get_streak()
  51. {
  52. new streak[3]
  53. get_cvar_string("streak_mode",streak,2)
  54. return read_flags(streak)
  55. }
  56.  
  57. public death_event(id)
  58. {
  59. new streak = get_streak()
  60.  
  61. if ((streak&1) || (streak&2))
  62. {
  63. new killer = read_data(1);
  64. new victim = read_data(2);
  65.  
  66. kills[killer] += 1;
  67. kills[victim] = 0;
  68. deaths[killer] = 0;
  69. deaths[victim] += 1;
  70.  
  71. for (new i = 0; i < LEVELS; i++)
  72. {
  73. if (kills[killer] == levels[i])
  74. {
  75. announce(killer, i);
  76. return PLUGIN_CONTINUE;
  77. }
  78. }
  79. }
  80. return PLUGIN_CONTINUE;
  81. }
  82.  
  83. announce(killer, level)
  84. {
  85. new streak = get_streak()
  86.  
  87. if (streak&1)
  88. {
  89. new name[32];
  90.  
  91. get_user_name(killer, name, 32);
  92. set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2);
  93. show_hudmessage(0, stkmessages[level], name);
  94. }
  95.  
  96. if (streak&2){
  97. client_cmd(0, "spk %s", stksounds[level]);
  98. }
  99. }
  100.  
  101. public reset_hud(id)
  102. {
  103. new streak = get_streak()
  104.  
  105. if (streak&1)
  106. {
  107.  
  108. if (kills[id] > levels[0])
  109. {
  110. client_print(id, print_chat,
  111. "* Te %d oltel ogy tovabb", kills[id]);
  112.  
  113. }
  114.  
  115. else if (deaths[id] > 1)
  116. {
  117. client_print(id, print_chat,
  118. "* Te meghaltal %dx sorozatban ovatosabban...", deaths[id]);
  119. }
  120. }
  121. }
  122.  
  123. public client_connect(id)
  124. {
  125. new streak = get_streak()
  126.  
  127. if ((streak&1) || (streak&2))
  128. {
  129. kills[id] = 0;
  130. deaths[id] = 0;
  131. }
  132. }
  133.  
  134. public knife_kill()
  135. {
  136. new kniffmode[4]
  137. get_cvar_string("kniff_mode",kniffmode,4)
  138. new kniffmode_bit = read_flags(kniffmode)
  139.  
  140. if (kniffmode_bit & 1)
  141. {
  142. new killer_id = read_data(1)
  143. new victim_id = read_data(2)
  144. new killer_name[33], victim_name[33]
  145.  
  146. get_user_name(killer_id,killer_name,33)
  147. get_user_name(victim_id,victim_name,33)
  148.  
  149.  
  150. set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
  151. show_hudmessage(0,kniffmessages[ random_num(0,KNIFFMESSAGES-1) ],killer_name,victim_name)
  152. }
  153.  
  154. if (kniffmode_bit & 2)
  155. {
  156. client_cmd(0,"spk hun_ultimate/knife")
  157. }
  158. }
  159.  
  160.  
  161. public roundend_msg(id)
  162.  
  163. alone_ann = 0
  164.  
  165. public death_msg(id)
  166. {
  167.  
  168. new lmmode[8]
  169. get_cvar_string("lastman_mode",lmmode,8)
  170. new lmmode_bit = read_flags(lmmode)
  171.  
  172. new players_ct[32], players_t[32], ict, ite, last
  173. get_players(players_ct,ict,"ae","CT")
  174. get_players(players_t,ite,"ae","TERRORIST")
  175.  
  176. if (ict==1&&ite==1)
  177. {
  178. new name1[32], name2[32]
  179. get_user_name(players_ct[0],name1,32)
  180. get_user_name(players_t[0],name2,32)
  181. set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
  182.  
  183. if (lmmode_bit & 1)
  184. {
  185. if (lmmode_bit & 2)
  186. {
  187. show_hudmessage(0,"%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
  188. }
  189.  
  190. else
  191. {
  192. show_hudmessage(0,"%s vs. %s",name1,name2)
  193. }
  194.  
  195. if (lmmode_bit & 4)
  196. {
  197. client_cmd(0,"spk misccc/maytheforce")
  198. }
  199. }
  200. }
  201. else
  202. {
  203. if (ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
  204. {
  205. last=players_ct[0]
  206. client_cmd(last,"spk misccc/oneandonly")
  207. }
  208.  
  209. else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
  210. {
  211. last=players_t[0]
  212. client_cmd(last,"spk misccc/oneandonly")
  213. }
  214.  
  215. else
  216. {
  217. return PLUGIN_CONTINUE
  218. }
  219. alone_ann = last
  220. new name[32]
  221. get_user_name(last,name,32)
  222.  
  223. if (lmmode_bit & 1)
  224. {
  225. set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
  226.  
  227. if (lmmode_bit & 2)
  228. {
  229. show_hudmessage(0,messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
  230. }
  231.  
  232. else
  233. {
  234. show_hudmessage(0,messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
  235. }
  236. }
  237.  
  238. if (lmmode_bit & 4)
  239. {
  240. client_cmd(last,"spk misccc/maytheforce")
  241. }
  242. }
  243. return PLUGIN_CONTINUE
  244. }
  245.  
  246. public plugin_precache()
  247. {
  248. precache_sound("hun_ultimate/monsterkill.wav")
  249. precache_sound("hun_ultimate/godlike.wav")
  250. precache_sound("hun_ultimate/knife.wav")
  251. precache_sound("hun_ultimate/killingspree.wav")
  252. precache_sound("hun_ultimate/multikill.wav")
  253. precache_sound("hun_ultimate/ultrakill.wav")
  254. precache_sound("hun_ultimate/prepare.wav")
  255. precache_sound("hun_ultimate/rampage.wav")
  256. precache_sound("hun_ultimate/holyshit.wav")
  257.  
  258. return PLUGIN_CONTINUE
  259. }
  260.  
  261.  
  262.  
  263. public plugin_init()
  264. {
  265. register_plugin("Hungarian Ultimate Sounds","2.0","bron")
  266. register_event("DeathMsg","knife_kill","a","4&kni")
  267. register_event("ResetHUD", "reset_hud", "b");
  268. register_event("DeathMsg", "death_event", "a")
  269. register_event("SendAudio","roundend_msg","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
  270. register_event("TextMsg","roundend_msg","a","2&#Game_C","2&#Game_w")
  271. register_event("DeathMsg","death_msg","a")
  272. register_cvar("lastman_mode","abc")
  273. register_cvar("streak_mode","ab")
  274. register_cvar("kniff_mode","ab")
  275.  
  276. return PLUGIN_CONTINUE
  277. }

Ui. Teszt nem volt.

_________________
Általam feltöltött PLUGINOK:
Kattints ide.

Chat INFO MENÜ 0.3 =98%


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: hangok kivéttele
HozzászólásElküldve: 2014.08.23. 22:51 
Koszi :)


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: hangok kivéttele
HozzászólásElküldve: 2014.08.23. 22:53 
Offline
Senior Tag
Avatar

Csatlakozott: 2014.02.10. 19:10
Hozzászólások: 252
Megköszönt másnak: 10 alkalommal
Megköszönték neki: 44 alkalommal
Nm. :) bármikor!

_________________
Általam feltöltött PLUGINOK:
Kattints ide.

Chat INFO MENÜ 0.3 =98%


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  [ 4 hozzászólás ] 


Ki van itt

Jelenlévő fórumozók: nincs regisztrált felhasználó valamint 146 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