hlmod.hu
https://hlmod.hu/

Frag a radar alatt
https://hlmod.hu/viewtopic.php?f=29&t=17702
Oldal: 1 / 1

Szerző:  Charlie224 [ 2014.10.24. 11:30 ]
Hozzászólás témája:  Frag a radar alatt

Sziasztok nekem olyan plugin kellene ami ki írja a radar alatt a Frageke-ket csapatonként és az online játékosokat.
Változon a színe és közepes méretűek legyenek.Ne legyen DHUDOS.+ ami fent van az nagy és nem változtatja a szinét .Mielőtt valaki ezt írná.

Szerző:  Beckx [ 2014.10.24. 11:37 ]
Hozzászólás témája:  Re: Frag a radar alatt

Ez jó lesz?

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4.  
  5. #define PLUGIN "HUD Info"
  6. #define VERSION "1.0"
  7. #define AUTHOR "N/A"
  8.  
  9. #define MAXROUNDS 40
  10.  
  11. new Rounds
  12.  
  13. new iCTKills
  14. new iTTKills
  15.  
  16. public plugin_init() {
  17. register_plugin(PLUGIN, VERSION, AUTHOR)
  18. register_event( "DeathMsg", "DeathEvent", "a" );
  19. register_event("TextMsg","ResetAll","a","2&#Game_C","2&#Game_w")
  20. register_logevent("NewRounds", 2, "0=World triggered", "1=Round_Start")
  21. set_task(1.0,"HUDInfo" , _ , _ , _ , "b")
  22. }
  23.  
  24. public ResetAll() {
  25. Rounds = 0
  26. iCTKills = 0
  27. iTTKills = 0
  28. }
  29.  
  30. public DeathEvent(){
  31. new Killer = read_data( 1 );
  32. new CsTeams:Team
  33. Team = cs_get_user_team( Killer );
  34. if (Team == CS_TEAM_T)
  35. {
  36. iTTKills++
  37. }
  38. if (Team == CS_TEAM_CT)
  39. {
  40. iCTKills++
  41. }
  42. }
  43.  
  44. public NewRounds(){
  45. Rounds++
  46. }
  47.  
  48. public HUDInfo(){
  49. new Time[9]
  50. get_time("%H:%M",Time,8)
  51.  
  52. new CurrentPlayers = get_playersnum();
  53. new MaxPlayers = get_maxplayers();
  54.  
  55. set_hudmessage(random(255),random(255),random(255), 0.0, 0.19, 1, 6.0, 12.0)
  56. show_hudmessage(0, "Frags of T: %d^nFrags of CT: %d^nJátékosok: %d/%d", iTTKills, iCTKills, CurrentPlayers, MaxPlayers)
  57.  
  58. }
  59.  
  60.  

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