HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2.  
  3. #define PLUGIN "CsapatFragek"
  4.  
  5. #define VERSION "1.0"
  6.  
  7. #define AUTHOR "BaSzOgASD"
  8.  
  9.  
  10.  
  11. new ctfrags = 0
  12.  
  13. new tfrags = 0
  14.  
  15.  
  16.  
  17. public plugin_init() {
  18.  
  19. register_plugin(PLUGIN, VERSION, AUTHOR)
  20.  
  21. register_event("DeathMsg", "halal", "a");
  22.  
  23. register_logevent("round_first", 2, "0=World triggered", "1&Restart_Round_")
  24.  
  25. register_logevent("round_first", 2, "0=World triggered", "1=Game_Commencing")
  26.  
  27. set_task(5.0, "hud")
  28.  
  29. }
  30.  
  31.  
  32.  
  33. public round_first()
  34.  
  35. ctfrags = 0, tfrags = 0
  36.  
  37.  
  38.  
  39. public halal()
  40.  
  41. {
  42.  
  43. static killer
  44.  
  45. killer = read_data(1);
  46.  
  47. if(get_user_team(killer) == 2)
  48.  
  49. ctfrags++
  50.  
  51. if(get_user_team(killer) == 1)
  52.  
  53. tfrags++
  54.  
  55. return PLUGIN_CONTINUE
  56.  
  57. }
  58.  
  59.  
  60.  
  61. public hud() {
  62.  
  63. set_hudmessage(0, 255, 0, 0.01, 0.15, 0, 0.6, 5.0)
  64.  
  65. show_hudmessage(0,"CT Fragek:%d^nT Fragek: %d",ctfrags, tfrags)
  66.  
  67. set_task(5.0, "hud")
  68.  
  69. }
  70.