hlmod.hu
https://hlmod.hu/

Kör info HUD ba
https://hlmod.hu/viewtopic.php?f=29&t=22730
Oldal: 1 / 1

Szerző:  rolika95 [2015.11.21. 12:41 ]
Hozzászólás témája:  Kör info HUD ba

Sziasztok valaki tudba adni egy olyan plugint ami kiirja kör elején hudba.
Menyien vanak fent és mien map van.

Szerző:  SmaCk [2015.11.21. 12:45 ]
Hozzászólás témája:  Re: Kör info HUD ba

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. }
  51. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  52. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  53. */
  54.  

Szerző:  rolika95 [2015.11.21. 12:51 ]
Hozzászólás témája:  Re: Kör info HUD ba

Köszönöm :)

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