hlmod.hu
https://hlmod.hu/

Rush számoló
https://hlmod.hu/viewtopic.php?f=9&t=14043
Oldal: 1 / 1

Szerző:  Telapo11 [ 2014.01.27. 14:37 ]
Hozzászólás témája:  Rush számoló

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4. #include <dhudmessage>
  5.  
  6. #define PLUGIN "Rush hud info"
  7. #define AUTHOR "expert"
  8. #define VERSION "1.0"
  9.  
  10. new szamlalo
  11.  
  12. public plugin_init()
  13. {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_logevent("start",2,"1=Round_Start")
  16. register_event("DeathMsg", "Death", "a")
  17. register_logevent("bomba", 3, "2=Planted_The_Bomb")
  18. }
  19. public start()
  20. {
  21. set_task(0.1, "kiiras")
  22. szamlalo = 60
  23. }
  24. public kiiras()
  25. {
  26. new players[32], pnum, tempid;
  27. get_players(players, pnum, "c");
  28. for(new i; i<pnum; i++)
  29. {
  30. tempid = players[i];
  31. if(is_user_alive(tempid) && cs_get_user_team(tempid) == CS_TEAM_CT)
  32. {
  33. if(szamlalo > 0)
  34. {
  35. set_dhudmessage(0,255,0, -1.0, 0.30, 0, 0.0, 1.1, 0.0, 0.0, -1)
  36. show_dhudmessage(tempid, "Rusholás mehet %d másodperc múlva!!", szamlalo)
  37. set_task(1.0, "kiiras")
  38. }
  39. else
  40. {
  41. set_dhudmessage(255,255,0, -1.0, 0.30, 0, 0.0, 1.1, 0.0, 0.0, -1)
  42. show_dhudmessage(tempid, "A CT-k Rusholhatnak!")
  43. return PLUGIN_HANDLED
  44. }
  45. }
  46. }
  47. --szamlalo
  48. return PLUGIN_CONTINUE
  49. }
  50. public Death()
  51. {
  52. new tplayers[32], tpnum
  53. get_players(tplayers, tpnum, "aceh", "TERRORIST")
  54.  
  55. new ctplayers[32], ctpnum
  56. get_players(ctplayers, ctpnum, "aceh", "CT")
  57.  
  58. if(tpnum == 1 || ctpnum == 1)
  59. {
  60. szamlalo = 0
  61. }
  62.  
  63. return PLUGIN_CONTINUE
  64. }
  65. public bomba()
  66. {
  67. szamlalo = 0
  68. }

Ebből valaki vegye azt ki hogy rusholás mehet xy másopercmulva

Szerző:  lis789 [ 2014.01.27. 14:42 ]
Hozzászólás témája:  Re: Rush számoló

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4. #include <dhudmessage>
  5.  
  6. #define PLUGIN "Rush hud info"
  7. #define AUTHOR "expert"
  8. #define VERSION "1.0"
  9.  
  10. new szamlalo
  11.  
  12. public plugin_init()
  13. {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_logevent("start",2,"1=Round_Start")
  16. register_event("DeathMsg", "Death", "a")
  17. register_logevent("bomba", 3, "2=Planted_The_Bomb")
  18. }
  19. public start()
  20. {
  21. set_task(0.1, "kiiras")
  22. szamlalo = 60
  23. }
  24. public kiiras()
  25. {
  26. new players[32], pnum, tempid;
  27. get_players(players, pnum, "c");
  28. for(new i; i<pnum; i++)
  29. {
  30. tempid = players[i];
  31. if(is_user_alive(tempid) && cs_get_user_team(tempid) == CS_TEAM_CT)
  32. {
  33. if(szamlalo > 0)
  34. {
  35. set_dhudmessage(255,255,0, -1.0, 0.30, 0, 0.0, 1.1, 0.0, 0.0, -1)
  36. show_dhudmessage(tempid, "A CT-k Rusholhatnak!")
  37. return PLUGIN_HANDLED
  38. }
  39. }
  40. }
  41. --szamlalo
  42. return PLUGIN_CONTINUE
  43. }
  44. public Death()
  45. {
  46. new tplayers[32], tpnum
  47. get_players(tplayers, tpnum, "aceh", "TERRORIST")
  48.  
  49. new ctplayers[32], ctpnum
  50. get_players(ctplayers, ctpnum, "aceh", "CT")
  51.  
  52. if(tpnum == 1 || ctpnum == 1)
  53. {
  54. szamlalo = 0
  55. }
  56.  
  57. return PLUGIN_CONTINUE
  58. }
  59. public bomba()
  60. {
  61. szamlalo = 0
  62. }

Szerző:  Telapo11 [ 2014.01.27. 14:47 ]
Hozzászólás témája:  Re: Rush számoló

Valami nem jó kör elején irja ki amikor vagyunk 10 en

Szerző:  lis789 [ 2014.01.27. 14:59 ]
Hozzászólás témája:  Re: Rush számoló

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4. #include <dhudmessage>
  5.  
  6. #define PLUGIN "Rush hud info"
  7. #define AUTHOR "expert"
  8. #define VERSION "1.0"
  9.  
  10. new szamlalo
  11.  
  12. public plugin_init()
  13. {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_logevent("start",2,"1=Round_Start")
  16. register_event("DeathMsg", "Death", "a")
  17. register_logevent("bomba", 3, "2=Planted_The_Bomb")
  18. }
  19. public start()
  20. {
  21. set_task(0.1, "kiiras")
  22. szamlalo = 60
  23. }
  24. public kiiras()
  25. {
  26. new players[32], pnum, tempid;
  27. get_players(players, pnum, "c");
  28. for(new i; i<pnum; i++)
  29. {
  30. tempid = players[i];
  31. if(is_user_alive(tempid) && cs_get_user_team(tempid) == CS_TEAM_CT)
  32. {
  33. if(szamlalo > 60)
  34. {
  35. set_dhudmessage(255,255,0, -1.0, 0.30, 0, 0.0, 1.1, 0.0, 0.0, -1)
  36. show_dhudmessage(tempid, "A CT-k Rusholhatnak!")
  37. return PLUGIN_HANDLED
  38. }
  39. }
  40. }
  41. --szamlalo
  42. return PLUGIN_CONTINUE
  43. }
  44. public Death()
  45. {
  46. new tplayers[32], tpnum
  47. get_players(tplayers, tpnum, "aceh", "TERRORIST")
  48.  
  49. new ctplayers[32], ctpnum
  50. get_players(ctplayers, ctpnum, "aceh", "CT")
  51.  
  52. if(tpnum == 1 || ctpnum == 1)
  53. {
  54. szamlalo = 0
  55. }
  56.  
  57. return PLUGIN_CONTINUE
  58. }
  59. public bomba()
  60. {
  61. szamlalo = 0
  62. }
  63.  

Szerző:  Telapo11 [ 2014.01.27. 15:22 ]
Hozzászólás témája:  Re: Rush számoló

Most meg nem is ir ki semmit

Szerző:  norbee.16 [ 2014.01.27. 15:54 ]
Hozzászólás témája:  Re: Rush számoló

Telapo11 írta:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4. #include <dhudmessage>
  5.  
  6. #define PLUGIN "Rush hud info"
  7. #define AUTHOR "expert"
  8. #define VERSION "1.0"
  9.  
  10. new szamlalo
  11.  
  12. public plugin_init()
  13. {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_logevent("start",2,"1=Round_Start")
  16. register_event("DeathMsg", "Death", "a")
  17. register_logevent("bomba", 3, "2=Planted_The_Bomb")
  18. }
  19. public start()
  20. {
  21. set_task(0.1, "kiiras")
  22. szamlalo = 60
  23. }
  24. public kiiras()
  25. {
  26. new players[32], pnum, tempid;
  27. get_players(players, pnum, "c");
  28. for(new i; i<pnum; i++)
  29. {
  30. tempid = players[i];
  31. if(is_user_alive(tempid) && cs_get_user_team(tempid) == CS_TEAM_CT)
  32. {
  33. if(szamlalo > 0)
  34. {
  35. set_dhudmessage(0,255,0, -1.0, 0.30, 0, 0.0, 1.1, 0.0, 0.0, -1)
  36. show_dhudmessage(tempid, "Rusholás mehet %d másodperc múlva!!", szamlalo)
  37. set_task(1.0, "kiiras")
  38. }
  39. else
  40. {
  41. set_dhudmessage(255,255,0, -1.0, 0.30, 0, 0.0, 1.1, 0.0, 0.0, -1)
  42. show_dhudmessage(tempid, "A CT-k Rusholhatnak!")
  43. return PLUGIN_HANDLED
  44. }
  45. }
  46. }
  47. --szamlalo
  48. return PLUGIN_CONTINUE
  49. }
  50. public Death()
  51. {
  52. new tplayers[32], tpnum
  53. get_players(tplayers, tpnum, "aceh", "TERRORIST")
  54.  
  55. new ctplayers[32], ctpnum
  56. get_players(ctplayers, ctpnum, "aceh", "CT")
  57.  
  58. if(tpnum == 1 || ctpnum == 1)
  59. {
  60. szamlalo = 0
  61. }
  62.  
  63. return PLUGIN_CONTINUE
  64. }
  65. public bomba()
  66. {
  67. szamlalo = 0
  68. }

Ebből valaki vegye azt ki hogy rusholás mehet xy másopercmulva


SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4. #include <dhudmessage>
  5.  
  6. #define PLUGIN "Rush hud info"
  7. #define AUTHOR "expert"
  8. #define VERSION "1.0"
  9.  
  10. new szamlalo
  11.  
  12. public plugin_init()
  13. {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_logevent("start",2,"1=Round_Start")
  16. register_event("DeathMsg", "Death", "a")
  17. register_logevent("bomba", 3, "2=Planted_The_Bomb")
  18. }
  19. public start()
  20. {
  21. set_task(0.1, "kiiras")
  22. szamlalo = 60
  23. }
  24. public kiiras()
  25. {
  26. new players[32], pnum, tempid;
  27. get_players(players, pnum, "c");
  28. for(new i; i<pnum; i++)
  29. {
  30. tempid = players[i];
  31. if(is_user_alive(tempid) && cs_get_user_team(tempid) == CS_TEAM_CT)
  32. {
  33. if(szamlalo > 0)
  34. {
  35. //set_dhudmessage(0,255,0, -1.0, 0.30, 0, 0.0, 1.1, 0.0, 0.0, -1)
  36. //show_dhudmessage(tempid, "Rusholás mehet %d másodperc múlva!!", szamlalo)
  37. set_task(1.0, "kiiras")
  38. }
  39. else
  40. {
  41. set_dhudmessage(255,255,0, -1.0, 0.30, 0, 0.0, 1.1, 0.0, 0.0, -1)
  42. show_dhudmessage(tempid, "A CT-k Rusholhatnak!")
  43. return PLUGIN_HANDLED
  44. }
  45. }
  46. }
  47. --szamlalo
  48. return PLUGIN_CONTINUE
  49. }
  50. public Death()
  51. {
  52. new tplayers[32], tpnum
  53. get_players(tplayers, tpnum, "aceh", "TERRORIST")
  54.  
  55. new ctplayers[32], ctpnum
  56. get_players(ctplayers, ctpnum, "aceh", "CT")
  57.  
  58. if(tpnum == 1 || ctpnum == 1)
  59. {
  60. szamlalo = 0
  61. }
  62.  
  63. return PLUGIN_CONTINUE
  64. }
  65. public bomba()
  66. {
  67. szamlalo = 0
  68. }

Szerző:  Telapo11 [ 2014.01.27. 16:07 ]
Hozzászólás témája:  Re: Rush számoló

Nem irja ki amikor pl lerakják a bombát meg semikor nem irja!
Rendesen kérném és akkor megy a gomb vagy előbb teszteld

Szerző:  norbee.16 [ 2014.01.27. 16:09 ]
Hozzászólás témája:  Re: Rush számoló

Telapo11 írta:
Nem irja ki amikor pl lerakják a bombát meg semikor nem irja!
Rendesen kérném és akkor megy a gomb vagy előbb teszteld

Ezt nem értem!! Azt írtad hogy azt ne írja ki hogy mennyi idő van még a rusholási azt ki is vettem!!

Szerző:  Telapo11 [ 2014.02.01. 18:42 ]
Hozzászólás témája:  Re: Rush számoló

Valaki megcsinálja??

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