hlmod.hu
https://hlmod.hu/

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

Szerző:  Shaady [ 2014.11.09. 17:06 ]
Hozzászólás témája:  RUSH

Sziasztok tudnátok nekem egy olyan RUSH-t csinálni, hogy van egy alap Rush és abba beleirjátok hogy mikor mehet a rush kiirja sárgán középen hudba hogy Mehet a Rush. aki segít megy a gomg

Szerző:  MeSter [ 2014.11.09. 17:09 ]
Hozzászólás témája:  Re: RUSH

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, 225, 225, -1.0, 0.30, 1, 0.0, 1.1, 0.0, 0.0, -1)
  36. show_dhudmessage(tempid, "Rusholas 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, 1.1, 0.0, 0.0, -1)
  42. show_dhudmessage(tempid, "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. }
  69.  

Szerző:  Shaady [ 2014.11.09. 17:33 ]
Hozzászólás témája:  Re: RUSH

De nem egybe legyen össze véve egy másik rushal úgy gondoltam hogy ne keljen külön rush-t is rakni

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