hlmod.hu
https://hlmod.hu/

hiba
https://hlmod.hu/viewtopic.php?f=9&t=13589
Oldal: 1 / 1

Szerző:  Telapo11 [ 2013.12.30. 17:20 ]
Hozzászólás témája:  hiba

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. new const PLUGIN [] = "AMX Round Count"
  5. new const VERSION [] = "0.0.1"
  6. new const AUTHOR [] = "Duna"
  7.  
  8. new g_roundCount
  9.  
  10. public plugin_init(){
  11. register_plugin(PLUGIN,VERSION,AUTHOR)
  12. register_event("RoundTime", "roundcount", "bc")
  13. register_event("TextMsg","reset_counter","a","2&#Game_C","2&#Game_w")
  14. return PLUGIN_CONTINUE
  15. }
  16.  
  17. new prepare_sounds[][] =
  18. {
  19. "ICor3_kezdohangok/prepareone",
  20. "ICor3_kezdohangok/preparetwo",
  21. "ICor3_kezdohangok/preparethree",
  22. "ICor3_kezdohangok/preparefour",
  23. "ICor3_kezdohangok/preparefive",
  24. };
  25.  
  26. public roundcount()
  27. if ( read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0) ) {
  28.  
  29. ++g_roundCount
  30.  
  31. new r = random(256)
  32. new g = random(256)
  33. new b = random(256)
  34.  
  35. set_hudmessage(random(256), random(256), random(256), -1.0, 0.30, 0, 6.0, 6.0)
  36. show_hudmessage(0,"^nKĂ©szĂĽlj Fel a Harcra!^n%d FordulĂł", g_roundCount)
  37.  
  38. client_cmd(0,"spk %s",prepare_sounds[random(sizeof prepare_sounds)]);
  39. }
  40.  
  41. public reset_counter(){
  42. g_roundCount = 0
  43. }
  44.  
  45. public plugin_precache(){
  46. precache_sound(ICor3_kezdohangok/prepareone.wav")
  47. precache_sound(ICor3_kezdohangok/preparetwo.wav")
  48. precache_sound(ICor3_kezdohangok/preparethree.wav")
  49. precache_sound(ICor3_kezdohangok/preparefour.wav")
  50. precache_sound(ICor3_kezdohangok/preparefive.wav")
  51. return PLUGIN_CONTINUE
  52. }

Valaki javitsa kérem hogy átt lehessen alakitani

Szerző:  NiGGeR-BorZ [ 2013.12.30. 17:26 ]
Hozzászólás témája:  Re: hiba

Nesze:

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. new const PLUGIN [] = "AMX Round Count"
  5. new const VERSION [] = "0.0.1"
  6. new const AUTHOR [] = "Duna"
  7.  
  8. new g_roundCount
  9.  
  10. public plugin_init(){
  11. register_plugin(PLUGIN,VERSION,AUTHOR)
  12. register_event("RoundTime", "roundcount", "bc")
  13. register_event("TextMsg","reset_counter","a","2&#Game_C","2&#Game_w")
  14. return PLUGIN_CONTINUE
  15. }
  16.  
  17. new prepare_sounds[][] =
  18. {
  19. "ICor3_kezdohangok/prepareone",
  20. "ICor3_kezdohangok/preparetwo",
  21. "ICor3_kezdohangok/preparethree",
  22. "ICor3_kezdohangok/preparefour",
  23. "ICor3_kezdohangok/preparefive"
  24. };
  25.  
  26. public roundcount()
  27. if ( read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0) ) {
  28.  
  29. ++g_roundCount
  30.  
  31. new r = random(256)
  32. new g = random(256)
  33. new b = random(256)
  34.  
  35. set_hudmessage(r, g, b, -1.0, 0.30, 0, 6.0, 6.0)
  36. show_hudmessage(0,"^nKĂ©szĂĽlj Fel a Harcra!^n%d FordulĂł", g_roundCount)
  37.  
  38. client_cmd(0,"spk %s",prepare_sounds[random(sizeof prepare_sounds)]);
  39. }
  40.  
  41. public reset_counter(){
  42. g_roundCount = 0
  43. }
  44.  
  45. public plugin_precache(){
  46. precache_sound("ICor3_kezdohangok/prepareone.wav")
  47. precache_sound("ICor3_kezdohangok/preparetwo.wav")
  48. precache_sound("ICor3_kezdohangok/preparethree.wav")
  49. precache_sound("ICor3_kezdohangok/preparefour.wav")
  50. precache_sound("ICor3_kezdohangok/preparefive.wav")
  51. return PLUGIN_CONTINUE
  52. }

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