hlmod.hu
https://hlmod.hu/

Kör játékos számláló
https://hlmod.hu/viewtopic.php?f=9&t=17397
Oldal: 1 / 1

Szerző:  Shaady [ 2014.09.25. 16:02 ]
Hozzászólás témája:  Kör játékos számláló

Sziasztok nekem olyan kellene hogy HUDba számolja a köröket és a játékosokat.Nem annyira értek hozzá.Remélem valaki lessz olyan rendes, hogy ide adja köszi :D Igen tudom nagyon jó a képről fényképezett kép. :D

Csatolmányok:
de_dust20005.PNG
de_dust20005.PNG [ 1.48 MiB | Megtekintve 542 alkalommal ]

Szerző:  pixxa112 [ 2014.09.25. 17:37 ]
Hozzászólás témája:  Re: Kör játékos számláló

Nekem is ugyan ez volt kb 1 éve a régi szeromon..
Tessék:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <dhudmessage>
  4.  
  5. #define VERSION "1.3"
  6.  
  7.  
  8. new rounds_elapsed;
  9. new chat_message;
  10. new g_maxplayers;
  11.  
  12. public plugin_init()
  13. {
  14.  
  15.  
  16. register_plugin("Vox Round Say", VERSION, "God@Dorin")
  17.  
  18.  
  19. register_cvar("round_version", VERSION, FCVAR_SERVER | FCVAR_SPONLY);
  20. set_cvar_string("round_version", VERSION);
  21.  
  22. register_event("HLTV", "new_round", "a", "1=0", "2=0");
  23. register_event("TextMsg", "restart_round", "a", "2=#Game_will_restart_in");
  24.  
  25. chat_message = register_cvar("amx_chatmessage","1");
  26. g_maxplayers = get_maxplayers();
  27. }
  28. public new_round()
  29. {
  30. rounds_elapsed += 1;
  31.  
  32. new p_playernum;
  33. p_playernum = get_playersnum(1);
  34.  
  35. if(get_pcvar_num(chat_message) == 1)
  36. {
  37. set_dhudmessage(0, 255, 255, 0.4, 0.1, 0, 6.0, 12.0)
  38. show_dhudmessage(0, "Kör: %d/50 | Játékosok: %d/%d", rounds_elapsed, p_playernum, get_maxplayers());
  39. }
  40.  
  41. {
  42. new rndctstr[21]
  43. num_to_word(rounds_elapsed, rndctstr, 20);
  44. }
  45. return PLUGIN_CONTINUE;
  46. }
  47. public restart_round()
  48. {
  49. rounds_elapsed = 0;
  50. }

Szerző:  Shaady [ 2014.09.25. 18:50 ]
Hozzászólás témája:  Re: Kör játékos számláló

Köszönöm szépen :*

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