hlmod.hu
https://hlmod.hu/

Ezt valaki javítaná ?
https://hlmod.hu/viewtopic.php?f=9&t=21141
Oldal: 1 / 1

Szerző:  Charlie224 [2015.06.23. 12:00 ]
Hozzászólás témája:  Ezt valaki javítaná ?

SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. /*
  3. Created Nice Team Score by sector for www.chatbox.do.am
  4.  
  5. All ingenious is simple - Nice. Made in Russia.
  6. */
  7.  
  8. #include <amxmodx>
  9.  
  10. new nMSGS, jatszoter, nCT, nT, nR ,
  11.  
  12. public plugin_init()
  13. {
  14. register_plugin("Nice Team Score", "1.0 Fixed", "sector")
  15.  
  16. register_event("SendAudio", "nice_team_score_ct", "a", "2&%!MRAD_ctwin")
  17. register_event("SendAudio", "nice_team_score_t", "a", "2&%!MRAD_terwin")
  18.  
  19. register_logevent("nice_team_score_round", 2, "1=Round_End")
  20. register_logevent("nice_team_score_reset", 2, "1&Restart_Round_", "1=Game_Commencing")
  21.  
  22. nMSGS = CreateHudSyncObj()
  23.  
  24. set_task(3.0, "nice_team_score_msg", _, _, _, "b")
  25. }
  26.  
  27. public nice_team_score_msg()
  28. {
  29. new nPlayers[32], nNums, nPlayer_S
  30.  
  31. get_players(nPlayers, nNums, "c")
  32.  
  33. for(new i = 0; i < nNums; i++)
  34. {
  35. nPlayer_S = nPlayers[i]
  36. }
  37.  
  38. set_hudmessage(255, 255, 255, -1.0, 0.01, 2, 6.0, 4.0)
  39. ShowSyncHudMsg(0, nMSGS, "J.A.T.SZ.O.T.E.R^nT: %d vs. CT: %d",jatszoter , nT, nCT, nR,)
  40. }
  41.  
  42. public nice_team_score_ct()
  43. {
  44. nCT++
  45. }
  46.  
  47. public nice_team_score_t()
  48. {
  49. nT++
  50. }
  51.  
  52. public nice_team_score_round()
  53. {
  54. nR++
  55. }
  56.  
  57. public nice_team_score_reset()
  58. {
  59. nCT = 0
  60.  
  61. nT = 0
  62.  
  63. nR = 0
  64. }

Szerző:  .:[Z]o.O[M]:. :D [2015.06.23. 12:10 ]
Hozzászólás témája:  Re: Ezt valaki javítaná ?

SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. /*
  3. Created Nice Team Score by sector for www.chatbox.do.am
  4.  
  5. All ingenious is simple - Nice. Made in Russia.
  6. */
  7.  
  8. #include <amxmodx>
  9.  
  10. new nMSGS, jatszoter, nCT, nT, nR
  11.  
  12. public plugin_init() {
  13. register_plugin("Nice Team Score", "1.0 Fixed", "sector")
  14.  
  15. register_event("SendAudio", "nice_team_score_ct", "a", "2&%!MRAD_ctwin")
  16. register_event("SendAudio", "nice_team_score_t", "a", "2&%!MRAD_terwin")
  17.  
  18. register_logevent("nice_team_score_round", 2, "1=Round_End")
  19. register_logevent("nice_team_score_reset", 2, "1&Restart_Round_", "1=Game_Commencing")
  20.  
  21. nMSGS = CreateHudSyncObj()
  22.  
  23. set_task(3.0, "nice_team_score_msg", _, _, _, "b")
  24. }
  25.  
  26. public nice_team_score_msg()
  27. {
  28. new nPlayers[32], nNums, nPlayer_S
  29.  
  30. get_players(nPlayers, nNums, "c")
  31.  
  32. for(new i = 0; i < nNums; i++)
  33. {
  34. nPlayer_S = nPlayers[i]
  35. }
  36.  
  37. set_hudmessage(255, 255, 255, -1.0, 0.01, 2, 6.0, 4.0)
  38. ShowSyncHudMsg(0, nMSGS, "J.A.T.SZ.O.T.E.R^nT: %d vs. CT: %d",jatszoter , nT, nCT, nR)
  39. }
  40.  
  41. public nice_team_score_ct()
  42. {
  43. nCT++
  44. }
  45.  
  46. public nice_team_score_t()
  47. {
  48. nT++
  49. }
  50.  
  51. public nice_team_score_round()
  52. {
  53. nR++
  54. }
  55.  
  56. public nice_team_score_reset()
  57. {
  58. nCT = 0
  59.  
  60. nT = 0
  61.  
  62. nR = 0
  63. }
  64.  

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