hlmod.hu

Magyar Half-Life Mód közösség!
Pontos idő: 2024.05.23. 11:45



Jelenlévő felhasználók

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

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

Regisztrált felhasználók: Bing [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  A témát lezárták, nem szerkesztheted a hozzászólásaid, és nem küldhetsz új hozzászólást.  [ 5 hozzászólás ] 
Szerző Üzenet
 Hozzászólás témája: Ékezetek
HozzászólásElküldve: 2013.12.22. 12:13 
Offline
Fanatikus

Csatlakozott: 2013.11.19. 12:11
Hozzászólások: 192
Megköszönt másnak: 20 alkalommal
Megköszönték neki: 5 alkalommal
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3. #define KNIFFMESSAGES 4
  4. #define LEVELS 7
  5. #define MESSAGESNOHP 4
  6. #define MESSAGESHP 4
  7.  
  8. new kills[33] = {0,...};
  9. new deaths[33] = {0,...};
  10. new alone_ann = 0
  11. new levels[7] = {3, 5, 7, 9, 10, 13, 15};
  12.  
  13. new stksounds[7][] = {
  14. "sound/ICor3_UltimateSounds2013/multikill",
  15. "sound/ICor3_UltimateSounds2013/ultrakill",
  16. "sound/ICor3_UltimateSounds2013/monsterkill",
  17. "sound/ICor3_UltimateSounds2013/killingspree",
  18. "sound/ICor3_UltimateSounds2013/rampage",
  19. "sound/ICor3_UltimateSounds2013/holyshit",
  20. "sound/ICor3_UltimateSounds2013/godlike"};
  21.  
  22. new stkmessages[7][] = {
  23. "%s: Multi-Kill!",
  24. "%s: Ultra-Kill!",
  25. "%s: Monster-Kill!",
  26. "%s: Killing Spree!",
  27. "%s: Rampage!",
  28. "%s: Holy Shit!",
  29. "%s: Godlike!"};
  30.  
  31.  
  32. new kniffmessages[KNIFFMESSAGES][] = {
  33. "%s Kockákra Vágot %s!",
  34. "%s Véged Volt %s!",
  35. "%s Rád Csapta a Kést! %s!",
  36. "%s Felvágott %s!"}
  37.  
  38. new messagesnohp[MESSAGESNOHP][] = {
  39. "%i terrorist vs %i CT^n%s: Most Minden Rajtad Múlik!!",
  40. "%i terrorist vs %i CT^n%s: Remélem Nálad Van Az Elsősegély Táska!",
  41. "%i terrorist vs %i CT^n%s: Minden Csapatársad halot! most Te jösz!",
  42. "%i terrorist vs %i CT^n%s: Na Nyomasd Te kis pro!Egyedül vagy!!"}
  43.  
  44. new messageshp[MESSAGESHP][] = {
  45. "%i terrorist vs %i CT^n%s (%i hp): Most Minden Rajtad Múlik!",
  46. "%i terrorist vs %i CT^n%s (%i hp): Remélem Nálad Van Az Elsősegély Táska!",
  47. "%i terrorist vs %i CT^n%s (%i hp): Minden Csapatársad halot! most Te jösz!",
  48. "%i terrorist vs %i CT^n%s (%i hp): Na Nyomasd Te kis pro!Egyedül vagy!"}
  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(random(256), random(256), random(256), -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. "** Jól Tolod Fiam! már %d Megöltél egyhuzamba!", kills[id]);
  112.  
  113. }
  114.  
  115. else if (deaths[id] > 1)
  116. {
  117. client_print(id, print_chat,
  118. "** Óvatosabban Te Láma..Már %d Meghaltál!", 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(random(256), random(256), random(256), -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 sound/ICor3_UltimateSounds/2013humiliation")
  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(random(256), random(256), random(256), -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 sound/ICor3_UltimateSounds2013/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 sound/ICor3_UltimateSounds2013/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 sound/ICor3_UltimateSounds2013/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(random(256), random(256), random(256), -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 sound/ICor3_UltimateSounds2013/maytheforce")
  241. }
  242. }
  243. return PLUGIN_CONTINUE
  244. }
  245.  
  246.  
  247. public hs()
  248. {
  249. new hsmode[4]
  250. get_cvar_string("hs_mode",hsmode,4)
  251. new hsmode_bit = read_flags(hsmode)
  252.  
  253. if (hsmode_bit & 1)
  254. {
  255. new killer_id = read_data(1)
  256. new victim_id = read_data(2)
  257. new victim_name[33]
  258.  
  259. get_user_name(victim_id,victim_name,33)
  260.  
  261. set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1)
  262. show_hudmessage(killer_id,"Fejlövés^nTe fejbelőtted %s !!",victim_name)
  263. }
  264.  
  265. if (hsmode_bit & 2)
  266. {
  267. client_cmd(0,"spk sound/ICor3_UltimateSounds2013/headshot")
  268. }
  269. }
  270.  
  271. public plugin_precache()
  272. {
  273. precache_sound("sound/ICor3_UltimateSounds2013/monsterkill.wav")
  274. precache_sound("sound/ICor3_UltimateSounds2013/godlike.wav")
  275. precache_sound("sound/ICor3_UltimateSounds2013/headshot.wav")
  276. precache_sound("sound/ICor3_UltimateSounds2013/humiliation.wav")
  277. precache_sound("sound/ICor3_UltimateSounds2013/killingspree.wav")
  278. precache_sound("sound/ICor3_UltimateSounds2013/multikill.wav")
  279. precache_sound("sound/ICor3_UltimateSounds2013/ultrakill.wav")
  280. precache_sound("sound/ICor3_UltimateSounds2013/maytheforce.wav")
  281. precache_sound("sound/WICor3_UltimateSounds2013/oneandonly.wav")
  282. precache_sound("sound/ICor3_UltimateSounds2013/rampage.wav")
  283. precache_sound("sound/ICor3_UltimateSounds2013/holyshit.wav")
  284.  
  285. return PLUGIN_CONTINUE
  286. }
  287.  
  288.  
  289.  
  290. public plugin_init()
  291. {
  292. register_plugin("Ultimate Sound","1.5","Dizzy")
  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. }


Ebbe kéne nekem bele irni az ékezeteket! Ha valaki megcsinálja megy a GOMB!


Hozzászólás jelentése
Vissza a tetejére
   
 
 Hozzászólás témája: Re: Ékezetek
HozzászólásElküldve: 2013.12.22. 12:50 
Offline
Jómunkásember
Avatar

Csatlakozott: 2012.09.23. 20:29
Hozzászólások: 325
Megköszönt másnak: 26 alkalommal
Megköszönték neki: 87 alkalommal
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3. #define KNIFFMESSAGES 4
  4. #define LEVELS 7
  5. #define MESSAGESNOHP 4
  6. #define MESSAGESHP 4
  7.  
  8. new kills[33] = {0,...};
  9. new deaths[33] = {0,...};
  10. new alone_ann = 0
  11. new levels[7] = {3, 5, 7, 9, 10, 13, 15};
  12.  
  13. new stksounds[7][] = {
  14. "sound/ICor3_UltimateSounds2013/multikill",
  15. "sound/ICor3_UltimateSounds2013/ultrakill",
  16. "sound/ICor3_UltimateSounds2013/monsterkill",
  17. "sound/ICor3_UltimateSounds2013/killingspree",
  18. "sound/ICor3_UltimateSounds2013/rampage",
  19. "sound/ICor3_UltimateSounds2013/holyshit",
  20. "sound/ICor3_UltimateSounds2013/godlike"
  21. };
  22.  
  23. new stkmessages[7][] = {
  24. "%s: Multi-Kill!",
  25. "%s: Ultra-Kill!",
  26. "%s: Monster-Kill!",
  27. "%s: Killing Spree!",
  28. "%s: Rampage!",
  29. "%s: Holy Shit!",
  30. "%s: Godlike!"
  31. };
  32.  
  33.  
  34. new kniffmessages[KNIFFMESSAGES][] = {
  35. "%s Kockákra Vágot %s!",
  36. "%s VĂ©ged Volt %s!",
  37. "%s Rád Csapta a Kést! %s!",
  38. "%s Felvágott %s!"
  39. }
  40.  
  41. new messagesnohp[MESSAGESNOHP][] = {
  42. "%i terrorist vs %i CT^n%s: Most Minden Rajtad MĂşlik!!",
  43. "%i terrorist vs %i CT^n%s: Remélem Nálad Van Az Elsősegély Táska!",
  44. "%i terrorist vs %i CT^n%s: Minden Csapatársad halot! most Te jösz!",
  45. "%i terrorist vs %i CT^n%s: Na Nyomasd Te kis pro!EgyedĂĽl vagy!!"
  46. }
  47.  
  48. new messageshp[MESSAGESHP][] = {
  49. "%i terrorist vs %i CT^n%s (%i hp): Most Minden Rajtad MĂşlik!",
  50. "%i terrorist vs %i CT^n%s (%i hp): Remélem Nálad Van Az Elsősegély Táska!",
  51. "%i terrorist vs %i CT^n%s (%i hp): Minden Csapatársad halot! most Te jösz!",
  52. "%i terrorist vs %i CT^n%s (%i hp): Na Nyomasd Te kis pro!EgyedĂĽl vagy!"
  53. }
  54.  
  55. get_streak()
  56. {
  57. new streak[3]
  58. get_cvar_string("streak_mode",streak,2)
  59. return read_flags(streak)
  60. }
  61.  
  62. public death_event(id)
  63. {
  64. new streak = get_streak()
  65.  
  66. if ((streak&1) || (streak&2))
  67. {
  68. new killer = read_data(1);
  69. new victim = read_data(2);
  70.  
  71. kills[killer] += 1;
  72. kills[victim] = 0;
  73. deaths[killer] = 0;
  74. deaths[victim] += 1;
  75.  
  76. for (new i = 0; i < LEVELS; i++)
  77. {
  78. if (kills[killer] == levels[i])
  79. {
  80. announce(killer, i);
  81. return PLUGIN_CONTINUE;
  82. }
  83. }
  84. }
  85. return PLUGIN_CONTINUE;
  86. }
  87.  
  88. announce(killer, level)
  89. {
  90. new streak = get_streak()
  91.  
  92. if (streak&1)
  93. {
  94. new name[32];
  95.  
  96. get_user_name(killer, name, 32);
  97. set_hudmessage(random(255), random(255), random(255), -0.02, 6.0, 0.01, 0.1, 2);
  98. show_hudmessage(0, stkmessages[level], name);
  99. }
  100.  
  101. if (streak&2){
  102. client_cmd(0, "spk %s", stksounds[level]);
  103. }
  104. }
  105.  
  106. public reset_hud(id)
  107. {
  108. new streak = get_streak()
  109.  
  110. if (streak&1)
  111. {
  112.  
  113. if (kills[id] > levels[0])
  114. {
  115. client_print(id, print_chat,
  116. "** Jól Tolod Fiam! már %d Megöltél egyhuzamba!", kills[id]);
  117.  
  118. }
  119.  
  120. else if (deaths[id] > 1)
  121. {
  122. client_print(id, print_chat,
  123. "** Óvatosabban Te Láma..Már %d Meghaltál!", deaths[id]);
  124. }
  125. }
  126. }
  127.  
  128. public client_connect(id)
  129. {
  130. new streak = get_streak()
  131.  
  132. if ((streak&1) || (streak&2))
  133. {
  134. kills[id] = 0;
  135. deaths[id] = 0;
  136. }
  137. }
  138.  
  139. public knife_kill()
  140. {
  141. new kniffmode[4]
  142. get_cvar_string("kniff_mode",kniffmode,4)
  143. new kniffmode_bit = read_flags(kniffmode)
  144.  
  145. if (kniffmode_bit & 1)
  146. {
  147. new killer_id = read_data(1)
  148. new victim_id = read_data(2)
  149. new killer_name[33], victim_name[33]
  150.  
  151. get_user_name(killer_id,killer_name,33)
  152. get_user_name(victim_id,victim_name,33)
  153.  
  154.  
  155. set_hudmessage(random(255), random(255), random(255), -6.0, 6.0, 0.5, 0.15, 1)
  156. show_hudmessage(0,kniffmessages[ random_num(0,KNIFFMESSAGES-1) ],killer_name,victim_name)
  157. }
  158.  
  159. if (kniffmode_bit & 2)
  160. {
  161. client_cmd(0,"spk sound/ICor3_UltimateSounds/2013humiliation")
  162. }
  163. }
  164.  
  165.  
  166. public roundend_msg(id)
  167. alone_ann = 0
  168.  
  169. public death_msg(id)
  170. {
  171.  
  172. new lmmode[8]
  173. get_cvar_string("lastman_mode",lmmode,8)
  174. new lmmode_bit = read_flags(lmmode)
  175.  
  176. new players_ct[32], players_t[32], ict, ite, last
  177. get_players(players_ct,ict,"ae","CT")
  178. get_players(players_t,ite,"ae","TERRORIST")
  179.  
  180. if (ict==1&&ite==1)
  181. {
  182. new name1[32], name2[32]
  183. get_user_name(players_ct[0],name1,32)
  184. get_user_name(players_t[0],name2,32)
  185. set_hudmessage(random(255), random(255), random(255), -6.0, 6.0, 0.5, 0.15, 1)
  186.  
  187. if (lmmode_bit & 1)
  188. {
  189. if (lmmode_bit & 2)
  190. {
  191. show_hudmessage(0,"%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
  192. }
  193.  
  194. else
  195. {
  196. show_hudmessage(0,"%s vs. %s",name1,name2)
  197. }
  198.  
  199. if (lmmode_bit & 4)
  200. {
  201. client_cmd(0,"spk sound/ICor3_UltimateSounds2013/maytheforce")
  202. }
  203. }
  204. }
  205. else
  206. {
  207. if (ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
  208. {
  209. last=players_ct[0]
  210. client_cmd(last,"spk sound/ICor3_UltimateSounds2013/oneandonly")
  211. }
  212.  
  213. else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
  214. {
  215. last=players_t[0]
  216. client_cmd(last,"spk sound/ICor3_UltimateSounds2013/oneandonly")
  217. }
  218.  
  219. else
  220. {
  221. return PLUGIN_CONTINUE
  222. }
  223. alone_ann = last
  224. new name[32]
  225. get_user_name(last,name,32)
  226.  
  227. if (lmmode_bit & 1)
  228. {
  229. set_hudmessage(random(255), random(255), random(255), -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
  230.  
  231. if (lmmode_bit & 2)
  232. {
  233. show_hudmessage(0,messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
  234. }
  235.  
  236. else
  237. {
  238. show_hudmessage(0,messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
  239. }
  240. }
  241.  
  242. if (lmmode_bit & 4)
  243. {
  244. client_cmd(last,"spk sound/ICor3_UltimateSounds2013/maytheforce")
  245. }
  246. }
  247. return PLUGIN_CONTINUE
  248. }
  249.  
  250.  
  251. public hs()
  252. {
  253. new hsmode[4]
  254. get_cvar_string("hs_mode",hsmode,4)
  255. new hsmode_bit = read_flags(hsmode)
  256.  
  257. if (hsmode_bit & 1)
  258. {
  259. new killer_id = read_data(1)
  260. new victim_id = read_data(2)
  261. new victim_name[33]
  262.  
  263. get_user_name(victim_id,victim_name,33)
  264.  
  265. set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1)
  266. show_hudmessage(killer_id,"Fejlövés^nTe fejbelőtted %s !!",victim_name)
  267. }
  268.  
  269. if (hsmode_bit & 2)
  270. {
  271. client_cmd(0,"spk sound/ICor3_UltimateSounds2013/headshot")
  272. }
  273. }
  274.  
  275. public plugin_precache()
  276. {
  277. precache_sound("sound/ICor3_UltimateSounds2013/monsterkill.wav")
  278. precache_sound("sound/ICor3_UltimateSounds2013/godlike.wav")
  279. precache_sound("sound/ICor3_UltimateSounds2013/headshot.wav")
  280. precache_sound("sound/ICor3_UltimateSounds2013/humiliation.wav")
  281. precache_sound("sound/ICor3_UltimateSounds2013/killingspree.wav")
  282. precache_sound("sound/ICor3_UltimateSounds2013/multikill.wav")
  283. precache_sound("sound/ICor3_UltimateSounds2013/ultrakill.wav")
  284. precache_sound("sound/ICor3_UltimateSounds2013/maytheforce.wav")
  285. precache_sound("sound/WICor3_UltimateSounds2013/oneandonly.wav")
  286. precache_sound("sound/ICor3_UltimateSounds2013/rampage.wav")
  287. precache_sound("sound/ICor3_UltimateSounds2013/holyshit.wav")
  288.  
  289. return PLUGIN_CONTINUE
  290. }
  291.  
  292.  
  293.  
  294. public plugin_init()
  295. {
  296. register_plugin("Ultimate Sound","1.5","Dizzy")
  297. register_event("DeathMsg","hs","a","3=1")
  298. register_event("DeathMsg","knife_kill","a","4&kni")
  299. register_event("ResetHUD", "reset_hud", "b");
  300. register_event("DeathMsg", "death_event", "a")
  301. register_event("SendAudio","roundend_msg","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
  302. register_event("TextMsg","roundend_msg","a","2&#Game_C","2&#Game_w")
  303. register_event("DeathMsg","death_msg","a")
  304. register_cvar("lastman_mode","abc")
  305. register_cvar("streak_mode","ab")
  306. register_cvar("kniff_mode","ab")
  307. register_cvar("hs_mode","ab")
  308.  
  309. return PLUGIN_CONTINUE
  310. }
  311.  


Hozzászólás jelentése
Vissza a tetejére
   
 
 Hozzászólás témája: Re: Ékezetek
HozzászólásElküldve: 2013.12.22. 13:05 
Offline
Tiszteletbeli
Avatar

Csatlakozott: 2012.10.09. 13:48
Hozzászólások: 1439
Megköszönték neki: 174 alkalommal
Vagy csak használj UTF-8 kódolást...

_________________
Minden jót! :)


Hozzászólás jelentése
Vissza a tetejére
   
 
 Hozzászólás témája: Re: Ékezetek
HozzászólásElküldve: 2013.12.22. 19:10 
Offline
Őskövület
Avatar

Csatlakozott: 2011.12.28. 00:35
Hozzászólások: 2736
Megköszönt másnak: 56 alkalommal
Megköszönték neki: 275 alkalommal
Erik írta:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3. #define KNIFFMESSAGES 4
  4. #define LEVELS 7
  5. #define MESSAGESNOHP 4
  6. #define MESSAGESHP 4
  7.  
  8. new kills[33] = {0,...};
  9. new deaths[33] = {0,...};
  10. new alone_ann = 0
  11. new levels[7] = {3, 5, 7, 9, 10, 13, 15};
  12.  
  13. new stksounds[7][] = {
  14. "sound/ICor3_UltimateSounds2013/multikill",
  15. "sound/ICor3_UltimateSounds2013/ultrakill",
  16. "sound/ICor3_UltimateSounds2013/monsterkill",
  17. "sound/ICor3_UltimateSounds2013/killingspree",
  18. "sound/ICor3_UltimateSounds2013/rampage",
  19. "sound/ICor3_UltimateSounds2013/holyshit",
  20. "sound/ICor3_UltimateSounds2013/godlike"
  21. };
  22.  
  23. new stkmessages[7][] = {
  24. "%s: Multi-Kill!",
  25. "%s: Ultra-Kill!",
  26. "%s: Monster-Kill!",
  27. "%s: Killing Spree!",
  28. "%s: Rampage!",
  29. "%s: Holy Shit!",
  30. "%s: Godlike!"
  31. };
  32.  
  33.  
  34. new kniffmessages[KNIFFMESSAGES][] = {
  35. "%s Kockákra Vágot %s!",
  36. "%s VĂ©ged Volt %s!",
  37. "%s Rád Csapta a Kést! %s!",
  38. "%s Felvágott %s!"
  39. }
  40.  
  41. new messagesnohp[MESSAGESNOHP][] = {
  42. "%i terrorist vs %i CT^n%s: Most Minden Rajtad MĂşlik!!",
  43. "%i terrorist vs %i CT^n%s: Remélem Nálad Van Az Elsősegély Táska!",
  44. "%i terrorist vs %i CT^n%s: Minden Csapatársad halot! most Te jösz!",
  45. "%i terrorist vs %i CT^n%s: Na Nyomasd Te kis pro!EgyedĂĽl vagy!!"
  46. }
  47.  
  48. new messageshp[MESSAGESHP][] = {
  49. "%i terrorist vs %i CT^n%s (%i hp): Most Minden Rajtad MĂşlik!",
  50. "%i terrorist vs %i CT^n%s (%i hp): Remélem Nálad Van Az Elsősegély Táska!",
  51. "%i terrorist vs %i CT^n%s (%i hp): Minden Csapatársad halot! most Te jösz!",
  52. "%i terrorist vs %i CT^n%s (%i hp): Na Nyomasd Te kis pro!EgyedĂĽl vagy!"
  53. }
  54.  
  55. get_streak()
  56. {
  57. new streak[3]
  58. get_cvar_string("streak_mode",streak,2)
  59. return read_flags(streak)
  60. }
  61.  
  62. public death_event(id)
  63. {
  64. new streak = get_streak()
  65.  
  66. if ((streak&1) || (streak&2))
  67. {
  68. new killer = read_data(1);
  69. new victim = read_data(2);
  70.  
  71. kills[killer] += 1;
  72. kills[victim] = 0;
  73. deaths[killer] = 0;
  74. deaths[victim] += 1;
  75.  
  76. for (new i = 0; i < LEVELS; i++)
  77. {
  78. if (kills[killer] == levels[i])
  79. {
  80. announce(killer, i);
  81. return PLUGIN_CONTINUE;
  82. }
  83. }
  84. }
  85. return PLUGIN_CONTINUE;
  86. }
  87.  
  88. announce(killer, level)
  89. {
  90. new streak = get_streak()
  91.  
  92. if (streak&1)
  93. {
  94. new name[32];
  95.  
  96. get_user_name(killer, name, 32);
  97. set_hudmessage(random(255), random(255), random(255), -0.02, 6.0, 0.01, 0.1, 2);
  98. show_hudmessage(0, stkmessages[level], name);
  99. }
  100.  
  101. if (streak&2){
  102. client_cmd(0, "spk %s", stksounds[level]);
  103. }
  104. }
  105.  
  106. public reset_hud(id)
  107. {
  108. new streak = get_streak()
  109.  
  110. if (streak&1)
  111. {
  112.  
  113. if (kills[id] > levels[0])
  114. {
  115. client_print(id, print_chat,
  116. "** Jól Tolod Fiam! már %d Megöltél egyhuzamba!", kills[id]);
  117.  
  118. }
  119.  
  120. else if (deaths[id] > 1)
  121. {
  122. client_print(id, print_chat,
  123. "** Óvatosabban Te Láma..Már %d Meghaltál!", deaths[id]);
  124. }
  125. }
  126. }
  127.  
  128. public client_connect(id)
  129. {
  130. new streak = get_streak()
  131.  
  132. if ((streak&1) || (streak&2))
  133. {
  134. kills[id] = 0;
  135. deaths[id] = 0;
  136. }
  137. }
  138.  
  139. public knife_kill()
  140. {
  141. new kniffmode[4]
  142. get_cvar_string("kniff_mode",kniffmode,4)
  143. new kniffmode_bit = read_flags(kniffmode)
  144.  
  145. if (kniffmode_bit & 1)
  146. {
  147. new killer_id = read_data(1)
  148. new victim_id = read_data(2)
  149. new killer_name[33], victim_name[33]
  150.  
  151. get_user_name(killer_id,killer_name,33)
  152. get_user_name(victim_id,victim_name,33)
  153.  
  154.  
  155. set_hudmessage(random(255), random(255), random(255), -6.0, 6.0, 0.5, 0.15, 1)
  156. show_hudmessage(0,kniffmessages[ random_num(0,KNIFFMESSAGES-1) ],killer_name,victim_name)
  157. }
  158.  
  159. if (kniffmode_bit & 2)
  160. {
  161. client_cmd(0,"spk sound/ICor3_UltimateSounds/2013humiliation")
  162. }
  163. }
  164.  
  165.  
  166. public roundend_msg(id)
  167. alone_ann = 0
  168.  
  169. public death_msg(id)
  170. {
  171.  
  172. new lmmode[8]
  173. get_cvar_string("lastman_mode",lmmode,8)
  174. new lmmode_bit = read_flags(lmmode)
  175.  
  176. new players_ct[32], players_t[32], ict, ite, last
  177. get_players(players_ct,ict,"ae","CT")
  178. get_players(players_t,ite,"ae","TERRORIST")
  179.  
  180. if (ict==1&&ite==1)
  181. {
  182. new name1[32], name2[32]
  183. get_user_name(players_ct[0],name1,32)
  184. get_user_name(players_t[0],name2,32)
  185. set_hudmessage(random(255), random(255), random(255), -6.0, 6.0, 0.5, 0.15, 1)
  186.  
  187. if (lmmode_bit & 1)
  188. {
  189. if (lmmode_bit & 2)
  190. {
  191. show_hudmessage(0,"%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
  192. }
  193.  
  194. else
  195. {
  196. show_hudmessage(0,"%s vs. %s",name1,name2)
  197. }
  198.  
  199. if (lmmode_bit & 4)
  200. {
  201. client_cmd(0,"spk sound/ICor3_UltimateSounds2013/maytheforce")
  202. }
  203. }
  204. }
  205. else
  206. {
  207. if (ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
  208. {
  209. last=players_ct[0]
  210. client_cmd(last,"spk sound/ICor3_UltimateSounds2013/oneandonly")
  211. }
  212.  
  213. else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
  214. {
  215. last=players_t[0]
  216. client_cmd(last,"spk sound/ICor3_UltimateSounds2013/oneandonly")
  217. }
  218.  
  219. else
  220. {
  221. return PLUGIN_CONTINUE
  222. }
  223. alone_ann = last
  224. new name[32]
  225. get_user_name(last,name,32)
  226.  
  227. if (lmmode_bit & 1)
  228. {
  229. set_hudmessage(random(255), random(255), random(255), -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
  230.  
  231. if (lmmode_bit & 2)
  232. {
  233. show_hudmessage(0,messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
  234. }
  235.  
  236. else
  237. {
  238. show_hudmessage(0,messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
  239. }
  240. }
  241.  
  242. if (lmmode_bit & 4)
  243. {
  244. client_cmd(last,"spk sound/ICor3_UltimateSounds2013/maytheforce")
  245. }
  246. }
  247. return PLUGIN_CONTINUE
  248. }
  249.  
  250.  
  251. public hs()
  252. {
  253. new hsmode[4]
  254. get_cvar_string("hs_mode",hsmode,4)
  255. new hsmode_bit = read_flags(hsmode)
  256.  
  257. if (hsmode_bit & 1)
  258. {
  259. new killer_id = read_data(1)
  260. new victim_id = read_data(2)
  261. new victim_name[33]
  262.  
  263. get_user_name(victim_id,victim_name,33)
  264.  
  265. set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1)
  266. show_hudmessage(killer_id,"Fejlövés^nTe fejbelőtted %s !!",victim_name)
  267. }
  268.  
  269. if (hsmode_bit & 2)
  270. {
  271. client_cmd(0,"spk sound/ICor3_UltimateSounds2013/headshot")
  272. }
  273. }
  274.  
  275. public plugin_precache()
  276. {
  277. precache_sound("sound/ICor3_UltimateSounds2013/monsterkill.wav")
  278. precache_sound("sound/ICor3_UltimateSounds2013/godlike.wav")
  279. precache_sound("sound/ICor3_UltimateSounds2013/headshot.wav")
  280. precache_sound("sound/ICor3_UltimateSounds2013/humiliation.wav")
  281. precache_sound("sound/ICor3_UltimateSounds2013/killingspree.wav")
  282. precache_sound("sound/ICor3_UltimateSounds2013/multikill.wav")
  283. precache_sound("sound/ICor3_UltimateSounds2013/ultrakill.wav")
  284. precache_sound("sound/ICor3_UltimateSounds2013/maytheforce.wav")
  285. precache_sound("sound/WICor3_UltimateSounds2013/oneandonly.wav")
  286. precache_sound("sound/ICor3_UltimateSounds2013/rampage.wav")
  287. precache_sound("sound/ICor3_UltimateSounds2013/holyshit.wav")
  288.  
  289. return PLUGIN_CONTINUE
  290. }
  291.  
  292.  
  293.  
  294. public plugin_init()
  295. {
  296. register_plugin("Ultimate Sound","1.5","Dizzy")
  297. register_event("DeathMsg","hs","a","3=1")
  298. register_event("DeathMsg","knife_kill","a","4&kni")
  299. register_event("ResetHUD", "reset_hud", "b");
  300. register_event("DeathMsg", "death_event", "a")
  301. register_event("SendAudio","roundend_msg","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
  302. register_event("TextMsg","roundend_msg","a","2&#Game_C","2&#Game_w")
  303. register_event("DeathMsg","death_msg","a")
  304. register_cvar("lastman_mode","abc")
  305. register_cvar("streak_mode","ab")
  306. register_cvar("kniff_mode","ab")
  307. register_cvar("hs_mode","ab")
  308.  
  309. return PLUGIN_CONTINUE
  310. }
  311.  

Tessék.


Úr isten! xd
Ez kicsit bonyolult így, egyszerűbb sokkal az UTF8-as kódolás..

_________________
****


Hozzászólás jelentése
Vissza a tetejére
   
 
 Hozzászólás témája: Re: Ékezetek
HozzászólásElküldve: 2013.12.22. 19:16 
Offline
Tiszteletbeli
Avatar

Csatlakozott: 2012.10.09. 13:48
Hozzászólások: 1439
Megköszönték neki: 174 alkalommal
Kérdés megválaszolva.
Esetleg még evvel is sikeres lehet a dolog: Szines chat + Ékezetek

Zárom.
Erik, neked többször nem szólok! Ha nem tartod be a szabályokat, provokálsz, repülni fog ez a felhasználód is!

_________________
Minden jót! :)


Hozzászólás jelentése
Vissza a tetejére
   
 
Hozzászólások megjelenítése:  Rendezés  
Új téma nyitása  A témát lezárták, nem szerkesztheted a hozzászólásaid, és nem küldhetsz új hozzászólást.  [ 5 hozzászólás ] 


Ki van itt

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