hlmod.hu
https://hlmod.hu/

CT, T frag javítás
https://hlmod.hu/viewtopic.php?f=9&t=12828
Oldal: 1 / 1

Szerző:  slre141 [ 2013.11.23. 11:41 ]
Hozzászólás témája:  CT, T frag javítás

Probálkoztam fele sikerült de a többi nem Kicsit bugol Nem számolja a köröket meg mapot váltok akkor frag te:1 Meg az idöt ugy kéne beálitani hogy a másodpercet mindig váltsa ne csak 1mpkénet Aki megcsinálja megy a gomb
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3.  
  4. #define PLUGIN "Frags CT of TE"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Genius"
  7.  
  8. new ctfrags = 0
  9. new tfrags = 0
  10.  
  11. public plugin_init() {
  12.  
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14. register_event("DeathMsg", "halal", "a");
  15. register_logevent("round_first", 2, "0=World triggered", "1&Restart_Round_")
  16. register_logevent("round_first", 2, "0=World triggered", "1=Game_Commencing")
  17.  
  18. set_task(5.0, "hud")
  19. }
  20.  
  21. public round_first()
  22.  
  23. ctfrags = 0, tfrags = 0
  24.  
  25. public halal()
  26. {
  27. static killer
  28. killer = read_data(1);
  29. if(get_user_team(killer) == 2)
  30. ctfrags++
  31. if(get_user_team(killer) == 1)
  32. tfrags++
  33.  
  34. return PLUGIN_CONTINUE
  35.  
  36. }
  37.  
  38. public hud()
  39. {
  40.  
  41. new p_playernum;
  42. new id, count;
  43. new datum[64];
  44. new timestring[31];
  45. new g_round = 1;
  46. p_playernum = get_playersnum();
  47. for(id = 1 ; id <= get_maxplayers() ; id++)
  48. if(is_user_connected(id))
  49. if(get_user_flags(id) & ADMIN_KICK)
  50. count++
  51. get_time("%Y.%m.%d", datum, 63)
  52. get_time("%H:%M:%S",timestring,8)
  53.  
  54. set_hudmessage(random(255),random(255), random(255), 0.0, 0.2, 0, 0.6, 5.0)
  55. show_hudmessage(0,"^nÜdvözölek a Szerveren^n%s^n%s^nKor: %d^nFrags[Ct]: %d^nFrags[TE]: %d^nJátékosok%d/16^nAdminok:%d",datum,timestring,ctfrags, tfrags, p_playernum,count,g_round)
  56.  
  57. set_task(5.0, "hud")
  58. }
  59.  

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