hlmod.hu
https://hlmod.hu/

Pálya információ - Weboldal kivétel.
https://hlmod.hu/viewtopic.php?f=29&t=28265
Oldal: 1 / 1

Szerző:  Sheriff Kapitány. [2017.09.24. 13:40 ]
Hozzászólás témája:  Pálya információ - Weboldal kivétel.

Sziasztok.
Valaki megcsinálná úgy, hogy a Weboldal információ ne írja?
Vagy is csak Pálya kör és a Játékosok információt írja.
Előre is köszönöm szépen!
Viszlát!

Szerző:  Pika [2017.09.24. 13:47 ]
Hozzászólás témája:  Re: Pálya információ - Weboldal kivétel.

Sheriff Kapitány. írta:
Sziasztok.
Valaki megcsinálná úgy, hogy a Weboldal információ ne írja?
Vagy is csak Pálya kör és a Játékosok információt írja.
Előre is köszönöm szépen!
Viszlát!


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

Szerző:  Sheriff Kapitány. [2017.09.24. 13:55 ]
Hozzászólás témája:  Re: Pálya információ - Weboldal kivétel.

Köszönöm szépen.
Ment a pacsi!

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