hlmod.hu
https://hlmod.hu/

Ultimate_Sound
https://hlmod.hu/viewtopic.php?f=29&t=14892
Oldal: 1 / 1

Szerző:  adam127 [ 2014.03.09. 13:42 ]
Hozzászólás témája:  Ultimate_Sound

Üdv!

Egy olyan ultimate pluginra lenne szükségem amiben vannak: plant hangok, headshot hangok, gránáttal ölés hangok, öngyilkosság hangok, késsel ölés hangok, és természetesen az alap ultimate hangok.


Üdvözlettel: awR

Szerző:  Badboy.killer [ 2014.03.09. 14:40 ]
Hozzászólás témája:  Re: Ultimate_Sound

ez mindet tartalmazza:
a hozzá tartozó hangok, meghaladják a korlátot, ha megfelel, akkor elküldöm
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. #include <amxmodx>
  3. #include <csx>
  4. #include <cstrike>
  5.  
  6. #define PLUGIN_NAME "_sounds_ultimate"
  7. #define PLUGIN_VERSION "1.0"
  8. #define PLUGIN_AUTHOR "songoku"
  9.  
  10. new kills[33] = {0,...};
  11. new deaths[33] = {0,...};
  12. new firstblood
  13. new kill[33][24];
  14.  
  15. #define LEVELS 14
  16. #define hsounds 12
  17. #define knsounds 5
  18. #define fbsounds 1
  19. #define prpsounds 1
  20. #define suicidesounds 1
  21. #define maxdbsounds 1
  22. #define nadesounds 2
  23. #define plantsounds 5
  24. #define TASK_CLEAR_KILL 100
  25.  
  26. public BombPlanting
  27. public BombDefusing
  28. public BombPlanted
  29. public BombDefused
  30. public BombFailed
  31. public BombPickUp
  32. public BombDrop
  33. public BombCountVoice
  34. public BombCountDef
  35. public BombReached
  36.  
  37. new hsenable
  38. new knifeenable
  39. new firstbloodenable
  40. new nadecvar
  41. new suicidecvar
  42. new cvardouble
  43. new rnstartcvar
  44. new killstreaktype
  45.  
  46. new g_C4Timer
  47. new g_Defusing
  48. new g_Planter
  49. new g_announce_sync
  50. new Float:g_LastOmg
  51.  
  52.  
  53. new levels[14] ={4, 5, 6,7,8,9,10,11,12,13,14,15,16,17};
  54.  
  55. new sounds[14][] =
  56. {
  57. "ultimate_sounds_white/killingspree",
  58. "ultimate_sounds_white/megakill",
  59. "ultimate_sounds_white/holyshit",
  60. "ultimate_sounds_white/ludicrouskill",
  61. "ultimate_sounds_white/rampage",
  62. "ultimate_sounds_white/unstoppable",
  63. "ultimate_sounds_white/monsterkill",
  64. "ultimate_sounds_white/dominating",
  65. "ultimate_sounds_white/godlike",
  66. "ultimate_sounds_white/multikill",
  67. "ultimate_sounds_white/multikill2",
  68. "ultimate_sounds_white/ultrakill",
  69. "ultimate_sounds_white/triplekill",
  70. "ultimate_sounds_white/whickedsick"
  71. };
  72.  
  73. new messages[7][] =
  74. {
  75. "gyilkologep",
  76. "mega gyilkolas",
  77. "isteni oles",
  78. "megalithatatlan",
  79. "vicces gyilkosag",
  80. "a legerosebb",
  81. "szornyu gyilkosag"
  82. };
  83.  
  84. new hslist[hsounds][] =
  85. {
  86. "ultimate_sounds_white/headshot1",
  87. "ultimate_sounds_white/headshot2",
  88. "ultimate_sounds_white/headshot3",
  89. "ultimate_sounds_white/headshot4",
  90. "ultimate_sounds_white/headshot5",
  91. "ultimate_sounds_white/headshot6",
  92. "ultimate_sounds_white/headshot7",
  93. "ultimate_sounds_white/headshot8",
  94. "ultimate_sounds_white/headshot9",
  95. "ultimate_sounds_white/headshot10",
  96. "ultimate_sounds_white/headshot11",
  97. "ultimate_sounds_white/headshot12"
  98. }
  99.  
  100. new fblist[fbsounds][]=
  101. {
  102. "ultimate_sounds_white/firstblood"
  103. }
  104.  
  105. new preplist[prpsounds][]=
  106. {
  107. "ultimate_sounds_white/prepare1"
  108. }
  109.  
  110. new fbmessages[3][]=
  111. {
  112. "az elso gyilkolás ",
  113. " meg va naz elso oles ",
  114. " az elso oles meg szuletet"
  115. }
  116.  
  117. new hsmessages[4][]=
  118. {
  119. "boooooooom headshot",
  120. "juj mekora hed <!-- s:P --><img src=\"{SMILIES_PATH}/icon_razz.gif\" alt=\":P\" title=\"vicces\" /><!-- s:P -->",
  121. "uram irgalmaz mekora hed",
  122. "huhuhuhu mekora booom hedshot"
  123. }
  124.  
  125. new knlist[knsounds][]=
  126. {
  127. "ultimate_sounds_white/knife1",
  128. "ultimate_sounds_white/knife2",
  129. "ultimate_sounds_white/knife3",
  130. "ultimate_sounds_white/knife4",
  131. "ultimate_sounds_white/knife5"
  132. }
  133.  
  134. new knmessages[3][]=
  135. {
  136. " ",
  137. " ",
  138. " "
  139. }
  140.  
  141. new nademessages[3][]=
  142. {
  143. "hat ez szivas",
  144. "lol ezt be nyaltad",
  145. "hoho bum roban"
  146. }
  147. new suicidemess[2][]=
  148. {
  149. "haha jolbe egtel haver",
  150. "low-.-"
  151. }
  152.  
  153. new suicidelist[suicidesounds][]=
  154. {
  155. "ultimate_sounds_white/suicide1"
  156. }
  157.  
  158. new nadelist [nadesounds][]=
  159. {
  160. "ultimate_sounds_white/grenade1",
  161. "ultimate_sounds_white/grenade2"
  162. }
  163. new doublelist[maxdbsounds][]=
  164. {
  165. "ultimate_sounds_white/doublekill"
  166. }
  167.  
  168. new plantlist[plantsounds][]=
  169. {
  170. "ultimate_sounds_white/planted1",
  171. "ultimate_sounds_white/planted2",
  172. "ultimate_sounds_white/planted3",
  173. "ultimate_sounds_white/planted4",
  174. "ultimate_sounds_white/planted5"
  175. }
  176.  
  177. is_mode_set(bits) {
  178. new mode[9];
  179. get_cvar_string("ut_killstreak_advanced", mode, 8);
  180. return read_flags(mode) & bits;
  181. }
  182.  
  183. public plugin_init() {
  184. register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
  185. killstreaktype = register_cvar("ut_killstreak_advanced", "3");
  186. register_event("ResetHUD", "reset_hud", "b");
  187. register_event("HLTV","rnstart","a", "1=0", "2=0");
  188. register_event("DeathMsg", "event_death", "a");
  189. hsenable = register_cvar("ut_killstreak_hs","1");
  190. knifeenable = register_cvar("ut_killstreak_knife","1");
  191. firstbloodenable = register_cvar("ut_firstblood","1");
  192. nadecvar = register_cvar("ut_nade_events","1");
  193. suicidecvar = register_cvar("ut_suicide_events","1");
  194. cvardouble = register_cvar("ut_doublekill_events","1");
  195. rnstartcvar = register_cvar("ut_roundcout_sounds","1");
  196.  
  197. return PLUGIN_CONTINUE;
  198. }
  199.  
  200.  
  201. public event_death(id) {
  202. new killer = read_data(1);
  203. new victim = read_data(2);
  204. new headshot = read_data(3);
  205. new weapon[24], vicname[32], killname[32]
  206. read_data(4,weapon,23)
  207. get_user_name(victim,vicname,31)
  208. get_user_name(killer,killname,31)
  209.  
  210.  
  211.  
  212. if(headshot == 1 && get_pcvar_num(hsenable) ==1)
  213. {
  214. set_hudmessage(0, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
  215. show_hudmessage(0, (hsmessages[random_num(0,3)]), killname, vicname)
  216. new i
  217. i = random_num(0,hsounds-1)
  218. client_cmd(0,"spk %s",hslist[i])
  219. }
  220.  
  221.  
  222. if(weapon[0] == 'k' && get_pcvar_num(knifeenable) ==1)
  223. {
  224. set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
  225. show_hudmessage(0, (knmessages[random_num(0,2)]), killname, vicname)
  226. new r
  227. r = random_num(0,knsounds-1)
  228. client_cmd(0,"spk %s",knlist[r])
  229. }
  230.  
  231.  
  232. if(firstblood && killer!=victim && killer>0 && get_pcvar_num(firstbloodenable) ==1)
  233. {
  234. set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
  235. show_hudmessage(0, (fbmessages[random_num(0,2)]), killname)
  236. new t
  237. t = random_num(0,fbsounds-1)
  238. client_cmd(0,"spk %s",fblist[t])
  239. firstblood = 0
  240. }
  241.  
  242.  
  243. if(weapon[1] == 'r' && get_pcvar_num(nadecvar) ==1)
  244. {
  245. set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
  246. show_hudmessage(0,(nademessages[random_num(0,2)]),killname,vicname)
  247. new n
  248. n = random_num(0,nadesounds-1)
  249. client_cmd(0,"spk %s",nadelist[n])
  250. }
  251.  
  252.  
  253. if(killer == victim && get_pcvar_num(suicidecvar) ==1)
  254. {
  255. set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
  256. show_hudmessage(0,(suicidemess[random_num(0,1)]), vicname)
  257. new z
  258. z = random_num(0,suicidesounds-1)
  259. client_cmd(0,"spk %s",suicidelist[z])
  260.  
  261. }
  262.  
  263.  
  264. if(kill[killer][0] && equal(kill[killer],weapon) && get_pcvar_num(cvardouble) == 1)
  265. {
  266. set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
  267. show_hudmessage(0,"Wow %s made a double kill", killname)
  268. kill[killer][0] = 0;
  269. new q
  270. q= random_num(0,maxdbsounds-1)
  271. client_cmd(0,"spk %s",doublelist[q])
  272. }
  273.  
  274. else
  275. {
  276. kill[killer] = weapon;
  277. set_task(0.1,"clear_kill",TASK_CLEAR_KILL+killer);
  278. }
  279.  
  280.  
  281.  
  282. kills[killer] += 1;
  283. kills[victim] = 0;
  284. deaths[killer] = 0;
  285. deaths[victim] += 1;
  286.  
  287. for (new i = 0; i < LEVELS; i++)
  288. {
  289. if (kills[killer] == levels[i])
  290. {
  291. announce(killer, i);
  292. return PLUGIN_CONTINUE;
  293. }
  294. }
  295.  
  296. return PLUGIN_CONTINUE;
  297. }
  298.  
  299. announce(killer, level)
  300. {
  301.  
  302. new name[33]
  303. new r = random(256)
  304. new g = random(256)
  305. new b = random(256)
  306.  
  307. get_user_name(killer, name, 32);
  308. set_hudmessage(r,g,b, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2);
  309.  
  310. if( (get_pcvar_num(killstreaktype) <= 0 ) || get_pcvar_num(killstreaktype) > 3)
  311. return PLUGIN_HANDLED;
  312.  
  313.  
  314.  
  315. if(get_pcvar_num(killstreaktype) == 1)
  316. {
  317. show_hudmessage(0, messages[level], name);
  318. }
  319.  
  320. if(get_pcvar_num(killstreaktype) == 2)
  321. {
  322. client_cmd(0, "spk %s", sounds[level]);
  323. }
  324.  
  325. if(get_pcvar_num(killstreaktype) == 3)
  326. {
  327. show_hudmessage(0, messages[level], name);
  328. client_cmd(0, "spk %s", sounds[level]);
  329. }
  330.  
  331. return PLUGIN_CONTINUE;
  332.  
  333. }
  334.  
  335.  
  336. public reset_hud(id)
  337. {
  338. firstblood = 1
  339. if (is_mode_set(16)) {
  340. if (kills[id] > levels[0]) {
  341. client_print(id, print_chat,
  342. "* You are on a killstreak with %d kills.", kills[id]);
  343. } else if (deaths[id] > 1) {
  344. client_print(id, print_chat,
  345. "* Take care, you are on a deathstreak with %d deaths in a row.", deaths[id]);
  346.  
  347. }
  348. }
  349. }
  350.  
  351. public rnstart(id)
  352. {
  353. if(get_pcvar_num(rnstartcvar) == 1)
  354. {
  355. firstblood = 1
  356. set_hudmessage(0, 150, 255, -1.0, 0.30, 0, 6.0, 6.0)
  357. show_hudmessage(0, "menyetek oljetek zombit/humant")
  358. new q
  359. q = random_num(0,prpsounds-1)
  360. client_cmd(0,"spk %s",preplist[q])
  361. }
  362. }
  363.  
  364. public client_connect(id) {
  365. kills[id] = 0;
  366. deaths[id] = 0;
  367. }
  368.  
  369. public clear_kill(taskid)
  370. {
  371. new id = taskid-TASK_CLEAR_KILL;
  372. kill[id][0] = 0;
  373. }
  374.  
  375.  
  376.  
  377.  
  378. announceEvent(id, message[])
  379. {
  380. new name[32]
  381.  
  382. get_user_name(id, name, 31)
  383. set_hudmessage(255, 100, 50, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, -1)
  384. ShowSyncHudMsg(0, g_announce_sync, "%L", LANG_PLAYER, message, name)
  385. }
  386.  
  387. public eBombPickUp(id)
  388. {
  389. if (BombPickUp)
  390. announceEvent(id, "PICKED_BOMB")
  391. }
  392.  
  393. public eBombDrop()
  394. {
  395. if (BombDrop)
  396. announceEvent(g_Planter, "DROPPED_BOMB")
  397. }
  398.  
  399. public eGotBomb(id)
  400. {
  401. g_Planter = id
  402.  
  403. if (BombReached && read_data(1) == 2 && g_LastOmg < get_gametime())
  404. {
  405. g_LastOmg = get_gametime() + 15.0
  406. announceEvent(g_Planter, "REACHED_TARGET")
  407. }
  408. }
  409. public bombTimer()
  410. {
  411. if (--g_C4Timer > 0)
  412. {
  413. if (BombCountVoice)
  414. {
  415. if (g_C4Timer == 30 || g_C4Timer == 20)
  416. {
  417. new temp[64]
  418.  
  419. num_to_word(g_C4Timer, temp, 63)
  420. format(temp, 63, "^"vox/%s seconds until explosion^"", temp)
  421. play_sound(temp)
  422. }
  423. else if (g_C4Timer < 11)
  424. {
  425. new temp[64]
  426.  
  427. num_to_word(g_C4Timer, temp, 63)
  428. format(temp, 63, "^"vox/%s^"", temp)
  429. play_sound(temp)
  430. }
  431. }
  432. if (BombCountDef && g_Defusing)
  433. client_print(g_Defusing, print_center, "%d", g_C4Timer)
  434. }
  435. else
  436. remove_task(8038)
  437. }
  438.  
  439. public bomb_planted(planter)
  440. {
  441. g_Defusing = 0
  442.  
  443. if (BombPlanted)
  444. announceEvent(planter, "SET_UP_BOMB")
  445.  
  446. g_C4Timer = get_cvar_num("mp_c4timer")
  447. set_task(1.0, "bombTimer", 8038, "", 0, "b")
  448.  
  449. new pl
  450. pl = random_num(0,plantsounds-1)
  451. client_cmd(0,"spk %s",plantlist[pl])
  452. }
  453.  
  454. public bomb_planting(planter)
  455. {
  456. if (BombPlanting)
  457. announceEvent(planter, "PLANT_BOMB")
  458. }
  459.  
  460. public bomb_defusing(defuser)
  461. {
  462. if (BombDefusing)
  463. announceEvent(defuser, "DEFUSING_BOMB")
  464.  
  465. g_Defusing = defuser
  466. }
  467.  
  468. public bomb_defused(defuser)
  469. {
  470. if (BombDefused)
  471. announceEvent(defuser, "DEFUSED_BOMB")
  472. }
  473.  
  474. public bomb_explode(planter, defuser)
  475. {
  476. if (BombFailed && defuser)
  477. announceEvent(defuser, "FAILED_DEFU")
  478. }
  479.  
  480. public play_sound(sound[])
  481. {
  482. new players[32], pnum
  483. get_players(players, pnum, "c")
  484. new i
  485.  
  486. for (i = 0; i < pnum; i++)
  487. {
  488. if (is_user_connecting(players[i]))
  489. continue
  490.  
  491. client_cmd(players[i], "spk %s", sound)
  492. }
  493. }
  494.  
  495.  
  496. public plugin_precache()
  497. {
  498. precache_sound("ultimate_sounds_white/dominating.wav")
  499. precache_sound("ultimate_sounds_white/doublekill.wav")
  500. precache_sound("ultimate_sounds_white/firstblood.wav")
  501. precache_sound("ultimate_sounds_white/godlike.wav")
  502. precache_sound("ultimate_sounds_white/grenade1.wav")
  503. precache_sound("ultimate_sounds_white/grenade2.wav")
  504. precache_sound("ultimate_sounds_white/headshot1.wav")
  505. precache_sound("ultimate_sounds_white/headshot2.wav")
  506. precache_sound("ultimate_sounds_white/headshot3.wav")
  507. precache_sound("ultimate_sounds_white/headshot4.wav")
  508. precache_sound("ultimate_sounds_white/headshot5.wav")
  509. precache_sound("ultimate_sounds_white/headshot6.wav")
  510. precache_sound("ultimate_sounds_white/headshot7.wav")
  511. precache_sound("ultimate_sounds_white/headshot8.wav")
  512. precache_sound("ultimate_sounds_white/headshot9.wav")
  513. precache_sound("ultimate_sounds_white/headshot10.wav")
  514. precache_sound("ultimate_sounds_white/headshot12.wav")
  515. precache_sound("ultimate_sounds_white/holyshit.wav")
  516. precache_sound("ultimate_sounds_white/humiliation.wav")
  517. precache_sound("ultimate_sounds_white/killingspree.wav")
  518. precache_sound("ultimate_sounds_white/ludicrouskill.wav")
  519. precache_sound("ultimate_sounds_white/megakill.wav")
  520. precache_sound("ultimate_sounds_white/monsterkill.wav")
  521. precache_sound("ultimate_sounds_white/multikill.wav")
  522. precache_sound("ultimate_sounds_white/multikill2.wav")
  523. precache_sound("ultimate_sounds_white/prepare1.wav")
  524. precache_sound("ultimate_sounds_white/rampage.wav")
  525. precache_sound("ultimate_sounds_white/triplekill.wav")
  526. precache_sound("ultimate_sounds_white/ultrakill.wav")
  527. precache_sound("ultimate_sounds_white/unstoppable.wav")
  528. precache_sound("ultimate_sounds_white/suicide1.wav")
  529. precache_sound("ultimate_sounds_white/whickedsick.wav")
  530. precache_sound("ultimate_sounds_white/knife1.wav")
  531. precache_sound("ultimate_sounds_white/knife2.wav")
  532. precache_sound("ultimate_sounds_white/knife3.wav")
  533. precache_sound("ultimate_sounds_white/knife4.wav")
  534. precache_sound("ultimate_sounds_white/knife5.wav")
  535. precache_sound("ultimate_sounds_white/planted1.wav")
  536. precache_sound("ultimate_sounds_white/planted2.wav")
  537. precache_sound("ultimate_sounds_white/planted3.wav")
  538. precache_sound("ultimate_sounds_white/planted4.wav")
  539. precache_sound("ultimate_sounds_white/planted5.wav")
  540.  
  541. }
  542. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  543. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
  544. */
  545.  

Szerző:  Beckx [ 2014.03.09. 14:49 ]
Hozzászólás témája:  Re: Ultimate_Sound

BBk, nekem elküldenéd?

Szerző:  Badboy.killer [ 2014.03.09. 14:56 ]
Hozzászólás témája:  Re: Ultimate_Sound

hangok

Csatolmányok:
2.fele.rar [1.28 MiB]
Letöltve 72 alkalommal.
1.fele.rar [1.15 MiB]
Letöltve 79 alkalommal.

Szerző:  adam127 [ 2014.03.09. 17:11 ]
Hozzászólás témája:  Re: Ultimate_Sound

Köszönöm szépen, pontosan erre a pluginra volt szükségem, mert régen megvolt csak elkeveredett!

Köszönöm :)

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