hlmod.hu

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



Jelenlévő felhasználók

Jelenleg 360 felhasználó van jelen :: 1 regisztrált, 0 rejtett és 359 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  [5 hozzászólás ] 
Szerző Üzenet
 Hozzászólás témája: Ultimate Sounds
HozzászólásElküldve:2013.12.01. 13:03 
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/WINNeRs_UltimateSounds/multikill",
  15. "sound/WINNeRs_UltimateSounds/ultrakill",
  16. "sound/WINNeRs_UltimateSounds/monsterkill",
  17. "sound/WINNeRs_UltimateSounds/killingspree",
  18. "sound/WINNeRs_UltimateSounds/rampage",
  19. "sound/WINNeRs_UltimateSounds/holyshit",
  20. "sound/WINNeRs_UltimateSounds/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 Sliced And Diced %s!",
  34. "%s Shanked %s!",
  35. "%s Pulled A Knife On %s!",
  36. "%s Knived %s!"}
  37.  
  38. new messagesnohp[MESSAGESNOHP][] = {
  39. "%i terrorist vs %i CT^n%s: Now All Depends On You!",
  40. "%i terrorist vs %i CT^n%s: I Hope You Still Have A Healthpack.",
  41. "%i terrorist vs %i CT^n%s: All Your Teammates Were Killed. Good Luck!",
  42. "%i terrorist vs %i CT^n%s: Now You Are Alone. Have Fun!"}
  43.  
  44. new messageshp[MESSAGESHP][] = {
  45. "%i terrorist vs %i CT^n%s (%i hp): Now All Depend On You!",
  46. "%i terrorist vs %i CT^n%s (%i hp): I Hope You Still Have A Healthpack.",
  47. "%i terrorist vs %i CT^n%s (%i hp): All Your Teammates Were Killed. Good Luck!",
  48. "%i terrorist vs %i CT^n%s (%i hp): Now You Are alone. Have Fun!"}
  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. "* You are on a killstreak with %d kills.", kills[id]);
  112.  
  113. }
  114.  
  115. else if (deaths[id] > 1)
  116. {
  117. client_print(id, print_chat,
  118. "* Take care, you are on a deathstreak with %d deaths in a row.", 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 misc/humiliation")
  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/WINNeRs_UltimateSounds/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/WINNeRs_UltimateSounds/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/WINNeRs_UltimateSounds/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/WINNeRs_UltimateSounds/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^nYou Owned %s !!",victim_name)
  263. }
  264.  
  265. if (hsmode_bit & 2)
  266. {
  267. client_cmd(0,"spk sound/WINNeRs_UltimateSounds/headshot")
  268. }
  269. }
  270.  
  271. public plugin_precache()
  272. {
  273. precache_sound("sound/WINNeRs_UltimateSounds/monsterkill.wav")
  274. precache_sound("sound/WINNeRs_UltimateSounds/godlike.wav")
  275. precache_sound("sound/WINNeRs_UltimateSounds/headshot.wav")
  276. precache_sound("sound/WINNeRs_UltimateSounds/humiliation.wav")
  277. precache_sound("sound/WINNeRs_UltimateSounds/killingspree.wav")
  278. precache_sound("sound/WINNeRs_UltimateSounds/multikill.wav")
  279. precache_sound("sound/WINNeRs_UltimateSounds/ultrakill.wav")
  280. precache_sound("sound/WINNeRs_UltimateSounds/maytheforce.wav")
  281. precache_sound("sound/WINNeRs_UltimateSounds/oneandonly.wav")
  282. precache_sound("sound/WINNeRs_UltimateSounds/rampage.wav")
  283. precache_sound("sound/WINNeRs_UltimateSounds/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. }


Ezt kéne nekem átt irni magyarra és ékezetekre és hogy mindig változtassa a szinet a Hud amikor kiir valamit!
AKI MEG CSINÁLJA MEGY A GOMB!


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Ultimate Sounds
HozzászólásElküldve:2013.12.02. 11:13 
Offline
Félisten
Avatar

Csatlakozott:2013.03.12. 10:03
Hozzászólások:859
Megköszönt másnak: 37 alkalommal
Megköszönték neki: 44 alkalommal
Parancsolj.

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <printcolor>
  3.  
  4. #define KNIFFMESSAGES 4
  5. #define LEVELS 7
  6. #define MESSAGESNOHP 4
  7. #define MESSAGESHP 4
  8.  
  9. new kills[33] = {0,...};
  10. new deaths[33] = {0,...};
  11. new alone_ann = 0
  12. new levels[7] = {3, 5, 7, 9, 10, 13, 15};
  13.  
  14. new stksounds[7][] = {
  15. "sound/WINNeRs_UltimateSounds/multikill",
  16. "sound/WINNeRs_UltimateSounds/ultrakill",
  17. "sound/WINNeRs_UltimateSounds/monsterkill",
  18. "sound/WINNeRs_UltimateSounds/killingspree",
  19. "sound/WINNeRs_UltimateSounds/rampage",
  20. "sound/WINNeRs_UltimateSounds/holyshit",
  21. "sound/WINNeRs_UltimateSounds/godlike"};
  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. new kniffmessages[KNIFFMESSAGES][] = {
  34. "%s Kockákra Vágot %s!",
  35. "%s Véged Volt %s!",
  36. "%s Rád Csapta a Kést! %s!",
  37. "%s Felvágott %s!"}
  38.  
  39. new messagesnohp[MESSAGESNOHP][] = {
  40. "%i terrorist vs %i CT^n%s: Most Minden Rajtad Múlik!!",
  41. "%i terrorist vs %i CT^n%s: Remélem Nálad Van Az Elsősegély Táska!",
  42. "%i terrorist vs %i CT^n%s: Minden Csapatársad halot! most Te jösz!",
  43. "%i terrorist vs %i CT^n%s: Na Nyomasd Te kis pro!Egyedül vagy!!"}
  44.  
  45. new messageshp[MESSAGESHP][] = {
  46. "%i terrorist vs %i CT^n%s (%i hp): Most Minden Rajtad Múlik!",
  47. "%i terrorist vs %i CT^n%s (%i hp): Remélem Nálad Van Az Elsősegély Táska!",
  48. "%i terrorist vs %i CT^n%s (%i hp): Minden Csapatársad halot! most Te jösz!",
  49. "%i terrorist vs %i CT^n%s (%i hp): Na Nyomasd Te kis pro!Egyedül vagy!"}
  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(random(256), random(256), random(256), -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. "* Jól Tolod Fiam! már %d Megöltél egyhuzamba!.", kills[id]);
  113.  
  114. }
  115.  
  116. else if (deaths[id] > 1)
  117. {
  118. client_print(id, print_chat,
  119. "* Óvatosabban Te Láma..Már %d Meghaltál!", 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(random(256), random(256), random(256), -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 misc/humiliation")
  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(random(256), random(256), random(256), -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 sound/WINNeRs_UltimateSounds/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 sound/WINNeRs_UltimateSounds/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 sound/WINNeRs_UltimateSounds/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(random(256), random(256), random(256), -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 sound/WINNeRs_UltimateSounds/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,"Fejlövés^nYou Owned %s !!",victim_name)
  264. }
  265.  
  266. if (hsmode_bit & 2)
  267. {
  268. client_cmd(0,"spk sound/WINNeRs_UltimateSounds/headshot")
  269. }
  270. }
  271.  
  272. public plugin_precache()
  273. {
  274. precache_sound("sound/WINNeRs_UltimateSounds/monsterkill.wav")
  275. precache_sound("sound/WINNeRs_UltimateSounds/godlike.wav")
  276. precache_sound("sound/WINNeRs_UltimateSounds/headshot.wav")
  277. precache_sound("sound/WINNeRs_UltimateSounds/humiliation.wav")
  278. precache_sound("sound/WINNeRs_UltimateSounds/killingspree.wav")
  279. precache_sound("sound/WINNeRs_UltimateSounds/multikill.wav")
  280. precache_sound("sound/WINNeRs_UltimateSounds/ultrakill.wav")
  281. precache_sound("sound/WINNeRs_UltimateSounds/maytheforce.wav")
  282. precache_sound("sound/WINNeRs_UltimateSounds/oneandonly.wav")
  283. precache_sound("sound/WINNeRs_UltimateSounds/rampage.wav")
  284. precache_sound("sound/WINNeRs_UltimateSounds/holyshit.wav")
  285.  
  286. return PLUGIN_CONTINUE
  287. }
  288.  
  289.  
  290.  
  291. public plugin_init()
  292. {
  293. register_plugin("Ultimate Sound","1.5","Dizzy")
  294. register_event("DeathMsg","hs","a","3=1")
  295. register_event("DeathMsg","knife_kill","a","4&kni")
  296. register_event("ResetHUD", "reset_hud", "b");
  297. register_event("DeathMsg", "death_event", "a")
  298. register_event("SendAudio","roundend_msg","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
  299. register_event("TextMsg","roundend_msg","a","2&#Game_C","2&#Game_w")
  300. register_event("DeathMsg","death_msg","a")
  301. register_cvar("lastman_mode","abc")
  302. register_cvar("streak_mode","ab")
  303. register_cvar("kniff_mode","ab")
  304. register_cvar("hs_mode","ab")
  305.  
  306. return PLUGIN_CONTINUE
  307. }
  308.  
  309.  
  310. stock print_color(const id, const input[], any:...)
  311. {
  312. new count = 1, players[32]
  313. static msg[191]
  314. vformat(msg, 190, input, 3)
  315.  
  316. replace_all(msg, 190, "!g", "^4")
  317. replace_all(msg, 190, "!y", "^1")
  318. replace_all(msg, 190, "!t", "^3")
  319. replace_all(msg, 190, "á", "á")
  320. replace_all(msg, 190, "é", "Ă©")
  321. replace_all(msg, 190, "í", "Ă­")
  322. replace_all(msg, 190, "ó", "Ăł")
  323. replace_all(msg, 190, "ö", "ö")
  324. replace_all(msg, 190, "ő", "Ĺ‘")
  325. replace_all(msg, 190, "ú", "Ăş")
  326. replace_all(msg, 190, "ü", "ĂĽ")
  327. replace_all(msg, 190, "ű", "ű")
  328. replace_all(msg, 190, "Á", "Á")
  329. replace_all(msg, 190, "É", "É")
  330. replace_all(msg, 190, "Í", "ĂŤ")
  331. replace_all(msg, 190, "Ó", "Ă“")
  332. replace_all(msg, 190, "Ö", "Ă–")
  333. replace_all(msg, 190, "Ő", "Ő")
  334. replace_all(msg, 190, "Ú", "Ăš")
  335. replace_all(msg, 190, "Ü", "Ăś")
  336. replace_all(msg, 190, "Ű", "Ű")
  337.  
  338. if (id) players[0] = id; else get_players(players, count, "ch")
  339. {
  340. for (new i = 0; i < count; i++)
  341. {
  342. if (is_user_connected(players[i]))
  343. {
  344. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  345. write_byte(players[i])
  346. write_string(msg)
  347. message_end()
  348. }
  349. }
  350. }
  351. return PLUGIN_HANDLED
  352. }

_________________
Kép


A hozzászólást 1 alkalommal szerkesztették, utoljára crazy` 2013.12.02. 15:46-kor.
duplaposztot mellőzd és nem kell külön oda írni, hogy "Valaki segítsen!" mert mindenki látta a témádat, majd segít valaki ha szeretne.


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Ultimate Sounds
HozzászólásElküldve:2013.12.02. 13:06 
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
Nem tölti be és ott a mappa is meg minden!


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Ultimate Sounds
HozzászólásElküldve:2013.12.02. 15:08 
Offline
Félisten
Avatar

Csatlakozott:2013.03.12. 10:03
Hozzászólások:859
Megköszönt másnak: 37 alkalommal
Megköszönték neki: 44 alkalommal
nekem tökéletesen működöt...szóval sztem valamit nem jól írtál..

_________________
Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Ultimate Sounds
HozzászólásElküldve:2013.12.02. 15:49 
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
Hát.... akkor nem tudom de utána nézek


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


Ki van itt

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