hlmod.hu
https://hlmod.hu/

KÖr bele irás.
https://hlmod.hu/viewtopic.php?f=24&t=12892
Oldal: 1 / 1

Szerző:  slre141 [2013.11.24. 19:13 ]
Hozzászólás témája:  KÖr bele irás.

Hali valaki ebbe a pluginba bele irná hogy hanyadik körbe vagyunk?
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.  
  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.  
  20. set_task(5.0, "hud")
  21. }
  22.  
  23. public round_first()
  24.  
  25. ctfrags = 0, tfrags = 0
  26.  
  27. public halal()
  28. {
  29. static killer
  30. killer = read_data(1);
  31. if(get_user_team(killer) == 2)
  32. ctfrags++
  33. if(get_user_team(killer) == 1)
  34. tfrags++
  35.  
  36. return PLUGIN_CONTINUE
  37.  
  38. }
  39.  
  40.  
  41. public hud()
  42. {
  43.  
  44. new p_playernum;
  45. new id, count;
  46. new datum[64];
  47. new timestring[31];
  48. new g_round = 1;
  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",timestring,8)
  56.  
  57.  
  58. set_hudmessage(random(255),random(255), random(255), 0.0, 0.1, 0, 0.6, 5.0)
  59. 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,g_round,ctfrags, tfrags, p_playernum,count)
  60.  
  61. set_task(1.0, "hud")
  62. }

Szerző:  crazy` [2013.11.24. 19:15 ]
Hozzászólás témája:  Re: KÖr bele irás.

van már ilyen témád, 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/