hlmod.hu
https://hlmod.hu/

thetime nyelv keveredés
https://hlmod.hu/viewtopic.php?f=9&t=23584
Oldal: 1 / 1

Szerző:  attila2660 [2016.01.16. 23:40 ]
Hozzászólás témája:  thetime nyelv keveredés

Sziasztok. Amikor chatbe beirom hogy thetime akkor neha ékezetesen magyarul neha angolul irja, pedig elvileg minden jo es nem keveredhetne. Mi lehet a hiba?

Szerző:  JohanCorn [2016.01.17. 15:19 ]
Hozzászólás témája:  Re: thetime nyelv keveredés

Lehet egyszer a kliens nyelve angolra, egyszer pedig magyarra van állítva.

Szerző:  mforce [2016.01.17. 16:45 ]
Hozzászólás témája:  Re: thetime nyelv keveredés

Ha körökre van osztva:
timeleft.amxx csere erre

  1. #include <amxmodx>
  2.  
  3. #define PLUGIN  "Round timeleft"
  4. #define VERSION "1.0"
  5. #define AUTHOR  "mforce"
  6.  
  7. new const PREFIX[] = "ProKillers";
  8. new g_iRoundNum, korokszama
  9.  
  10. public plugin_init() {
  11.     register_plugin(PLUGIN, VERSION, AUTHOR);
  12.     korokszama = get_cvar_pointer("mp_maxrounds");
  13.     if(get_cvar_num("mp_timelimit") != 0) {
  14.         set_cvar_num("mp_timelimit", 0)
  15.         set_pcvar_num(korokszama, 50)
  16.     }
  17.     register_clcmd("say timeleft", "korok");
  18.     register_clcmd("say_team timeleft", "korok");
  19.     register_clcmd("say thetime", "idodatum")
  20.     register_clcmd("say_team thetime", "idodatum")
  21.     register_event("TextMsg", "eRestart", "a", "2&#Game_C", "2&#Game_w");
  22.     register_event("HLTV", "eRoundStart", "a", "1=0", "2=0");
  23. }
  24.  
  25. public eRestart()
  26.     g_iRoundNum = 0;
  27.  
  28. public eRoundStart()
  29.     ++g_iRoundNum;
  30.  
  31. public korok() {
  32.     ChatColor(0, "^4[%s]^1 Játszott körök: ^3%i ^1Hátralévő körök: ^3%i", PREFIX, g_iRoundNum, get_pcvar_num(korokszama)-g_iRoundNum)
  33. }
  34.  
  35. public idodatum() {
  36.     new ido[64]; get_time("%Y.%m.%d %H:%M:%S", ido, charsmax(ido));
  37.     ChatColor(0, "^4[%s]^1 Dátum és idő: ^3%s", PREFIX, ido);
  38. }
  39.  
  40. stock ChatColor(const id, const szMessage[], any:...) {
  41.     static pnum, players[32], szMsg[190], IdMsg;
  42.     vformat(szMsg, charsmax(szMsg), szMessage, 3);
  43.    
  44.     if(!IdMsg) IdMsg = get_user_msgid("SayText");
  45.    
  46.     if(id) {
  47.         if(!is_user_connected(id)) return;
  48.         players[0] = id;
  49.         pnum = 1;
  50.     }
  51.     else get_players(players, pnum, "ch");
  52.    
  53.     for(new i; i < pnum; i++) {
  54.         message_begin(MSG_ONE, IdMsg, .player = players[i]);
  55.         write_byte(players[i]);
  56.         write_string(szMsg);
  57.         message_end();
  58.     }
  59. }

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