hlmod.hu
https://hlmod.hu/

Hud bug/hiba
https://hlmod.hu/viewtopic.php?f=9&t=13662
Oldal: 1 / 1

Szerző:  Telapo11 [2014.01.04. 09:36 ]
Hozzászólás témája:  Hud bug/hiba

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 ctfrags = 0
  10. new tfrags = 0
  11. new g_round, pcv_sv_maxround
  12.  
  13. public plugin_init()
  14. {
  15. register_plugin(PLUGIN, VERSION, AUTHOR)
  16.  
  17. register_event("DeathMsg", "halal", "a")
  18. register_logevent("round_first", 2, "0=World triggered", "1&Restart_Round_")
  19. register_logevent("round_first", 2, "0=World triggered", "1=Game_Commencing")
  20. register_event("HLTV", "event_new_round", "a", "1=0", "2=0")
  21.  
  22. hud()
  23. pcv_sv_maxround = get_cvar_pointer("sv_maxround")
  24. }
  25.  
  26. public event_new_round()
  27. g_round++
  28.  
  29. public round_first()
  30. ctfrags = 0, tfrags = 0, g_round = 0
  31.  
  32. public halal()
  33. {
  34. static killer
  35. killer = read_data(1)
  36.  
  37. if(get_user_team(killer) == 2)
  38. ctfrags++
  39. if(get_user_team(killer) == 1)
  40. tfrags++
  41.  
  42. return PLUGIN_CONTINUE
  43. }
  44.  
  45. public hud()
  46. {
  47. new id, count
  48. new datum[64]
  49. new timestring[31]
  50.  
  51. for(id = 1 ; id <= get_maxplayers() ; id++)
  52. if(is_user_connected(id))
  53. if(get_user_flags(id) & ADMIN_KICK)
  54. count++
  55.  
  56. get_time("%Y.%m.%d", datum, 63)
  57. get_time("%H:%M:%S", timestring, 8)
  58.  
  59. set_hudmessage(random(255),random(255), random(255), 0.0, 0.17, 0, 6.0, 1.0)
  60. show_hudmessage(0,"^nJó Játékot!^n%s^n%s^nKör: %d/50^nFrags[CT]: %d^nFrags[TE]: %d^nJátékosok: %d/%d^nAdminok:%d^nConfing By:Keep Call Mee", datum, timestring, g_round, pcv_sv_maxround, ctfrags, tfrags, get_playersnum(), get_maxplayers(), count)
  61.  
  62. set_task(1.0, "hud")
  63. }


Valaki javitsa mert össze vissza buggol

Szerző:  lis789 [2014.01.04. 09:54 ]
Hozzászólás témája:  Re: hiba

Nincs semmi hiba! Lement!

Szerző:  Telapo11 [2014.01.04. 17:49 ]
Hozzászólás témája:  Re: hiba

Akkor ez mi??

Csatolmányok:
2014-01-04_00001.jpg
2014-01-04_00001.jpg [220.95KiB |Megtekintve 473 alkalommal ]

Szerző:  NiGGeR-BorZ [2014.01.04. 17:53 ]
Hozzászólás témája:  Re: hiba

Valamelyik pluginal nem működik együtt.
Szerintem.

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