hlmod.hu
https://hlmod.hu/

Segitség
https://hlmod.hu/viewtopic.php?f=24&t=12882
Oldal: 1 / 1

Szerző:  slre141 [2013.11.24. 15:01 ]
Hozzászólás témája:  Segitség

Hali ebbe a pluginba az kéne hogy az idö mindig számoljon ne csak 5mp ként meg a kört bele irni hogy pl 1/45 kor es oda a datum alá
aki megirja megy a gomb
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <dhudmessage>
  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.  
  12. public plugin_init() {
  13.  
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_event("DeathMsg", "halal", "a");
  16. register_logevent("round_first", 2, "0=World triggered", "1&Restart_Round_")
  17. register_logevent("round_first", 2, "0=World triggered", "1=Game_Commencing")
  18.  
  19. set_task(5.0, "hud")
  20. }
  21.  
  22. public round_first()
  23.  
  24. ctfrags = 0, tfrags = 0
  25.  
  26. public halal()
  27. {
  28. static killer
  29. killer = read_data(1);
  30. if(get_user_team(killer) == 2)
  31. ctfrags++
  32. if(get_user_team(killer) == 1)
  33. tfrags++
  34.  
  35. return PLUGIN_CONTINUE
  36.  
  37. }
  38.  
  39. public hud()
  40. {
  41.  
  42. new p_playernum;
  43. new id, count;
  44. new datum[64];
  45. new ido[9];
  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",ido,9)
  53.  
  54. set_dhudmessage(random(255),random(255), random(255), 0.0,2, 0, 0.6, 5.0)
  55. show_dhudmessage(0,"Üdvözölek a Szerveren!^n%s^n%s^nFrags[Ct]: %d^nFrags[TE]: %d^nJátékosok:%d/16^nAdminok:%d",datum,ido,ctfrags, tfrags, p_playernum,count)
  56. }
  57.  

Szerző:  Gatshow [2013.11.24. 17:02 ]
Hozzászólás témája:  Re: Segitség

Try:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <dhudmessage>
  4.  
  5. #define PLUGIN "Frags CT of TE"
  6. #define VERSION "1.0"
  7. #define AUTHOR "pixxa112"
  8.  
  9. new korokszama
  10.  
  11. new ctfrags = 0
  12. new tfrags = 0
  13.  
  14. public plugin_init() {
  15.  
  16. register_plugin(PLUGIN, VERSION, AUTHOR)
  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_logevent("Uj_kor", 2, "1=Round_Start");
  21.  
  22. set_task(0.1, "hud")
  23. }
  24.  
  25. public round_first()
  26.  
  27. ctfrags = 0, tfrags = 0
  28.  
  29. public halal()
  30. {
  31. static killer
  32. killer = read_data(1);
  33. if(get_user_team(killer) == 2)
  34. ctfrags++
  35. if(get_user_team(killer) == 1)
  36. tfrags++
  37.  
  38. return PLUGIN_CONTINUE
  39.  
  40. }
  41.  
  42. public hud()
  43. {
  44.  
  45. new p_playernum;
  46. new id, count;
  47. new datum[64];
  48. new ido[9];
  49. p_playernum = get_playersnum();
  50. for(id = 1 ; id <= get_maxplayers() ; id++)
  51. if(is_user_connected(id))
  52. if(get_user_flags(id) & ADMIN_KICK)
  53. count++
  54. get_time("%Y.%m.%d", datum, 63)
  55. get_time("%H:%M:%S",ido,9)
  56.  
  57. set_dhudmessage(random(255),random(255), random(255), 0.0,2, 0, 0.6, 5.0)
  58. show_dhudmessage(0,"Üdvözölek a Szerveren!^n%s^n%s^nKor: %i/45^nFrags[Ct]: %d^nFrags[TE]: %d^nJátékosok:%d/16^nAdminok:%d",datum,ido,korokszama,ctfrags, tfrags, p_playernum,count)
  59. }
  60.  
  61. public Uj_kor()
  62. {
  63. korokszama++;
  64. }
  65.  

Szerző:  crazy` [2013.11.24. 17:55 ]
Hozzászólás témája:  Re: Segitség

témanév + ezerszer feltetted már ezt a kérdést, de egyszer se tudtál normális témanevet adni neki, kuka

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