hlmod.hu
https://hlmod.hu/

kör hud üzenet
https://hlmod.hu/viewtopic.php?f=29&t=22468
Oldal: 1 / 1

Szerző:  rolika95 [2015.10.24. 22:39 ]
Hozzászólás témája:  kör hud üzenet

Sziasztok.
Valaki tudna nekem olyan plugint adni hogy minden körbe kiirja középre hud ba hogy hanyadik körbe van.
Köszönöm.

Szerző:  mforce [2015.10.24. 22:41 ]
Hozzászólás témája:  Re: kör hud üzenet

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. new const PLUGIN [] = "AMX Round Count"
  5. new const VERSION [] = "0.0.1"
  6. new const AUTHOR [] = "Duna"
  7.  
  8. new g_roundCount;
  9.  
  10. public plugin_init(){
  11. register_plugin(PLUGIN,VERSION,AUTHOR)
  12. register_event("RoundTime", "roundcount", "bc")
  13. register_event("TextMsg","reset_counter","a","2&#Game_C","2&#Game_w")
  14. return PLUGIN_CONTINUE
  15. }
  16.  
  17. public roundcount()
  18. if ( read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0) ) {
  19.  
  20. ++g_roundCount
  21.  
  22. new r = random(255)
  23. new g = random(255)
  24. new b = random(255)
  25.  
  26. set_hudmessage(r,g,b, -1.0, 0.30, 0, 6.0, 6.0, 1.0, 0.15, 1)
  27. show_hudmessage(0,"Készülj fel a Csatára!^n%d. Forduló!", g_roundCount)
  28.  
  29. }
  30.  
  31. public reset_counter(){
  32. g_roundCount = 0
  33. }

Szerző:  rolika95 [2015.10.24. 22:50 ]
Hozzászólás témája:  Re: kör hud üzenet

mforce írta:
SMA Forráskód: [ Mindet kijelol ]#include <amxmodx>#include <amxmisc> new const PLUGIN [] = "AMX Round Count"new const VERSION [] = "0.0.1"new const AUTHOR [] = "Duna" new g_roundCount; public plugin_init(){ register_plugin(PLUGIN,VERSION,AUTHOR) register_event("RoundTime", "roundcount", "bc") register_event("TextMsg","reset_counter","a","2&#Game_C","2&#Game_w") return PLUGIN_CONTINUE} public roundcount() if ( read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0) ) {  ++g_roundCount  new r = random(255) new g = random(255) new b = random(255)  set_hudmessage(r,g,b, -1.0, 0.30, 0, 6.0, 6.0, 1.0, 0.15, 1) show_hudmessage(0,"Készülj fel a Csatára!^n%d. Forduló!", g_roundCount) } public reset_counter(){ g_roundCount = 0}


Nagyon 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/