hlmod.hu
https://hlmod.hu/

Ne időre mennyen!
https://hlmod.hu/viewtopic.php?f=29&t=22342
Oldal: 1 / 1

Szerző:  Adrian2002 [2015.10.08. 18:36 ]
Hozzászólás témája:  Ne időre mennyen!

Hellosztok!
Nekem egy olyan Plugin kéne hogy Ne időre mennyen hanem körre pl 50 körre!
És kiirja a Játékosok számát és a weboldalt!

Szerző:  mforce [2015.10.08. 18:44 ]
Hozzászólás témája:  Re: Ne időre mennyen!

server.cfg
mp_maxrounds 50
mp_timelimit 0

Aztán plugin (régi) :
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3. #define PLUGIN "Plugin"
  4. #define VERSION "1.0"
  5. #define AUTHOR "mforce"
  6.  
  7. #define PREFIX "ProKillers"
  8. #define WEBOLDAL "www.komenymagleves.hu"
  9.  
  10. new g_roundCount;
  11. new g_maxplayers;
  12.  
  13. public plugin_init(){
  14. register_plugin(PLUGIN,VERSION,AUTHOR)
  15. register_event("RoundTime", "roundcount", "bc")
  16. register_event("TextMsg","reset_counter","a","2&#Game_C","2&#Game_w")
  17. g_maxplayers = get_maxplayers();
  18. return PLUGIN_CONTINUE
  19. }
  20.  
  21. public roundcount()
  22. if ( read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0) ) {
  23.  
  24. ++g_roundCount
  25. new mp_maxrounds = get_cvar_pointer("mp_maxrounds")
  26. new maxrounds = get_pcvar_num(mp_maxrounds);
  27. new p_playernum;
  28. p_playernum = get_playersnum(1);
  29. ChatColor("^4[%s]^1 Kör:^3 %i^1/^3%i ^1Játékosok:^3 %i^1/^3%i ^1Weboldalunk:^4 %s", PREFIX, g_roundCount, maxrounds, p_playernum, g_maxplayers, WEBOLDAL)
  30. }
  31.  
  32. public reset_counter() {
  33. g_roundCount = 0
  34. }
  35.  
  36. stock ChatColor(const szMessage[], any:...)
  37. {
  38. static pnum, players[32], szMsg[190], IdMsg;
  39. vformat(szMsg, charsmax(szMsg), szMessage, 2);
  40.  
  41. if(!IdMsg) IdMsg = get_user_msgid("SayText");
  42.  
  43. get_players(players, pnum, "ch");
  44.  
  45. for(new i; i < pnum; i++)
  46. {
  47. message_begin(MSG_ONE, IdMsg, .player = players[i]);
  48. write_byte(players[i]);
  49. write_string(szMsg);
  50. message_end();
  51. }
  52. }

Szerző:  Adrian2002 [2015.10.08. 19:09 ]
Hozzászólás témája:  Re: Ne időre mennyen!

Köszönöm![color=#00BF40][/color]

Szerző:  kengurumancs [2015.10.09. 15:50 ]
Hozzászólás témája:  Re: Ne időre mennyen!

Esetleg ezt a plugint meg lehet úgy írni hogy ne a köröket írja,hanem hogy mennyi idő van még?:)

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