hlmod.hu
https://hlmod.hu/

Only De_Dust2
https://hlmod.hu/viewtopic.php?f=29&t=16870
Oldal: 1 / 1

Szerző:  Nascar [ 2014.08.08. 13:24 ]
Hozzászólás témája:  Only De_Dust2

Ojasmi Mapp restartolo plugin kellene ami Hud Messages ben ki irja Hogy -|The-New|- Ez a (szám) kőr
és 50 kőrig mehet utána csinál 1 mapp váltást !!! aki meg csinálja megy a gomb !!

Szerző:  MeSter [ 2014.08.08. 13:28 ]
Hozzászólás témája:  Re: Only De_Dust2

Tessék ez a: -|The-New|- Ez a szám Kor

SMA Forráskód: [ Mindet kijelol ]
  1. /*==========================================================================================
  2.  
  3. AMX Round Count v0.0.1
  4. Copyright © 2010 by Duna. All rights reserved.
  5.  
  6.   Last Update: 29/11/2010
  7.  
  8.  
  9. -*- Description -*-
  10.  
  11. At the beginning of each round, the plugin will display a message on the hud,
  12.   stating the number of round and along with the message, a sound.
  13.   There are 4 different sounds.
  14.  
  15. Enjoy!
  16.  
  17. ===========================================================================================*/
  18.  
  19. #include <amxmodx>
  20. #include <amxmisc>
  21.  
  22. new const PLUGIN [] = "Kor eleji uzenet"
  23. new const VERSION [] = "0.0.1"
  24. new const AUTHOR [] = "Duna"
  25.  
  26. new g_roundCount
  27.  
  28. public plugin_init(){
  29. register_plugin(PLUGIN,VERSION,AUTHOR)
  30. register_event("RoundTime", "roundcount", "bc")
  31. register_event("TextMsg","reset_counter","a","2&#Game_C","2&#Game_w")
  32. return PLUGIN_CONTINUE
  33. }
  34.  
  35. new prepare_sounds[][] =
  36. {
  37. "rcount/prepare1",
  38. "rcount/prepare2",
  39. "rcount/prepare3",
  40. "rcount/prepare4"
  41. };
  42.  
  43. public roundcount()
  44. if ( read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0) ) {
  45.  
  46. ++g_roundCount
  47.  
  48. new r = random(256)
  49. new g = random(256)
  50. new b = random(256)
  51.  
  52. set_hudmessage(r,g,b, -1.0, 0.30, 0, 6.0, 6.0, 1.0, 0.15, 1)
  53. show_hudmessage(0,"^n -|The-New|- Ez a ^n%d. Kor!", g_roundCount)
  54.  
  55. client_cmd(0,"spk %s",prepare_sounds[random(sizeof prepare_sounds)]);
  56. }
  57.  
  58. public reset_counter(){
  59. g_roundCount = 0
  60. }
  61.  
  62. public plugin_precache(){
  63. precache_sound("rcount/prepare1.wav")
  64. precache_sound("rcount/prepare2.wav")
  65. precache_sound("rcount/prepare3.wav")
  66. precache_sound("rcount/prepare4.wav")
  67. return PLUGIN_CONTINUE
  68. }
  69.  
  70. /*==========================================================================================
  71.   the end ...
  72. ===========================================================================================*/
  73.  
  74.  

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