hlmod.hu
https://hlmod.hu/

Hud info
https://hlmod.hu/viewtopic.php?f=24&t=13908
Oldal: 1 / 1

Szerző:  Telapo11 [2014.01.20. 16:32 ]
Hozzászólás témája:  Hud info

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <fakemeta>
  4.  
  5. #define PLUGIN "Frags CT of TE"
  6. #define VERSION "1.0"
  7. #define AUTHOR "pixxa112"
  8.  
  9. new szinek[5][3] = {
  10. {0,255,100},
  11. {255, 170, 0},
  12. {255,0,0},
  13. {0,255,0},
  14. {255,0,255}
  15. }
  16. new szinum
  17. new ctfrag = 0
  18. new tfrag = 0
  19.  
  20. public plugin_init()
  21. {
  22. register_plugin(PLUGIN, VERSION, AUTHOR)
  23.  
  24. register_event("DeathMsg", "halal", "a")
  25. register_logevent("round_first", 2, "0=World triggered", "1&Restart_Round_")
  26. register_logevent("round_first", 2, "0=World triggered", "1=Game_Commencing")
  27. register_event("HLTV", "event_new_round", "a", "1=0", "2=0")
  28.  
  29. hud()
  30. pcv_sv_maxround = get_cvar_pointer("sv_maxround")
  31. }
  32.  
  33. public event_new_round()
  34. g_round++
  35.  
  36. public round_first()
  37. ctfrags = 0, tfrags = 0, g_round = 0
  38.  
  39. public halal()
  40. {
  41. static killer
  42. killer = read_data(1)
  43.  
  44. if(get_user_team(killer) == 2)
  45. ctfrags++
  46. if(get_user_team(killer) == 1)
  47. tfrags++
  48.  
  49. return PLUGIN_CONTINUE
  50. }
  51.  
  52. public hud()
  53. {
  54. new id, count
  55. new datum[64]
  56. new timestring[31]
  57.  
  58. for(id = 1 ; id <= get_maxplayers() ; id++)
  59. if(is_user_connected(id))
  60. if(get_user_flags(id) & ADMIN_KICK)
  61. count++
  62.  
  63. get_time("%Y.%m.%d", datum, 63)
  64. get_time("%H:%M:%S", timestring, 8)
  65.  
  66. {
  67. set_hudmessage(szinek[szinum][0], szinek[szinum][1], szinek[szinum][2], 0.01, 0.15, 0, 6.0, 6.0)
  68. show_hudmessage(nPlayer_S, "Jó Játékot!^n%s^n%s^nAdminok: %d^nKör: %d/30^nJátékosok: %d/%d^nFRAGS [T]: %d^nFRAGS [CT]: %d^nConfig by:", datum, iTime, count, gSzamolas, jatekosok, get_maxplayers(), tfrag, ctfrag)
  69.  
  70. set_task(1.0, "hud")
  71. }
  72.  


Valaki javitsa :D

Szerző:  BeepBeep [2014.01.20. 16:37 ]
Hozzászólás témája:  Re: Hud info

Hud hiba
Kuka + figyelmeztetés.

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