hlmod.hu
https://hlmod.hu/

fRAG,jATEKOSOK
https://hlmod.hu/viewtopic.php?f=10&t=14133
Oldal: 1 / 1

Szerző:  slre141 [ 2014.01.31. 20:18 ]
Hozzászólás témája:  fRAG,jATEKOSOK

Hali nekem olyan plugin kellene ami kir irja hogy menyi a ct frag,Te frag,És az Online játékosokat ijra ki,Másik plugin ahogy mindig belép a szerver kirja Betopant a szervere jo játékot Aki meg adja megy a gomb

Szerző:  lis789 [ 2014.01.31. 20:32 ]
Hozzászólás témája:  Re: fRAG,jATEKOSOK

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 timestring[31];
  44. new g_round = 1;
  45. p_playernum = get_playersnum();
  46. for(id = 1 ; id <= get_maxplayers() ; id++)
  47. if(is_user_connected(id))
  48. if(get_user_flags(id) & ADMIN_KICK)
  49.  
  50. set_hudmessage(random(255),random(255), random(255), 0.0, 0.2, 0, 0.6, 5.0)
  51. show_hudmessage(0,"^nBetoppant a szerverre! Jó játékot!^n%s^nFrags[Ct]: %d^nFrags[TE]: %d^nJátékosok%d/16",timestring,ctfrags, tfrags, p_playernum,count,g_round)
  52.  
  53. set_task(5.0, "hud")
  54. }
  55.  


UTF-8 kódólásra tedd át hogy mutassa az ékezeteket is!

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