hlmod.hu
https://hlmod.hu/

Ékezetek kivevése
https://hlmod.hu/viewtopic.php?f=9&t=15443
Oldal: 1 / 2

Szerző:  parodyshelf [ 2014.04.19. 22:49 ]
Hozzászólás témája:  Ékezetek kivevése

Sziasztok!
Az lenne a kérdésem hogy ezekbe a pluginokba hogy tudom kivenni az ékezetes írást?
Pluginok:
top3 a körben(hud)
top1 a körben killeivel és fejeseivel(chatben)
PLS HELP!

Szerző:  bencike [ 2014.04.19. 22:51 ]
Hozzászólás témája:  Re: Ékezetek kivevése

küldj sma-t

Szerző:  Anonymous1337 [ 2014.04.19. 22:52 ]
Hozzászólás témája:  Re: Ékezetek kivevése

Átírod a betűket. Pl: Á helyett A, Í helyett I, Ő helyett O, stb..stb
Posztold a forráskódokat, és átírom neked.

parodyshelf írta:
Sziasztok!
Az lenne a kérdésem hogy ezekbe a pluginokba hogy tudom kivenni az ékezetes írást?
Pluginok:
top3 a körben(hud)
top1 a körben killeivel és fejeseivel(chatben)
PLS HELP!

Szerző:  parodyshelf [ 2014.04.19. 23:37 ]
Hozzászólás témája:  Re: Ékezetek kivevése

az eggyik plugin:https://hlmod.hu/viewtopic.php?f=101&t=12541
a másik:https://hlmod.hu/viewtopic.php?f=101&t=12698

Szerző:  Golo [ 2014.04.20. 00:37 ]
Hozzászólás témája:  Re: Ékezetek kivevése

1.
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <hamsandwich>
  4. #include <cstrike>
  5. #include <colorchat>
  6.  
  7. #define PLUGIN "New Plugin"
  8. #define AUTHOR "Unknown"
  9. #define VERSION "1.0"
  10.  
  11. new g_iKills[32], g_iHS[32], g_iDmg[32]
  12.  
  13. public plugin_init()
  14. {
  15. register_plugin(PLUGIN, VERSION, AUTHOR)
  16.  
  17. RegisterHam(Ham_TakeDamage, "player", "hamTakeDamage")
  18. register_event("DeathMsg", "EventDeathMsg", "a")
  19. register_logevent("RoundEnd", 2, "1=Round_End")
  20. }
  21. public client_disconnect(id)
  22. {
  23. g_iDmg[id] = 0;
  24. g_iKills[id] = 0;
  25. g_iHS[id] = 0;
  26. }
  27. public hamTakeDamage(victim, inflictor, attacker, Float:damage, DamageBits)
  28. {
  29. if( 1 <= attacker <= 32)
  30. {
  31. if(cs_get_user_team(victim) != cs_get_user_team(attacker))
  32. g_iDmg[attacker] += floatround(damage)
  33. else
  34. g_iDmg[attacker] -= floatround(damage)
  35. }
  36. }
  37. public EventDeathMsg()
  38. {
  39. new killer = read_data(1)
  40. new victim = read_data(2)
  41. new is_hs = read_data(3)
  42.  
  43. if(killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim))
  44. {
  45. g_iKills[killer]++;
  46.  
  47. if(is_hs)
  48. g_iHS[killer]++;
  49. }
  50. else
  51. g_iKills[killer]--;
  52. }
  53. public RoundEnd()
  54. {
  55. new iBestPlayer = get_best_player()
  56.  
  57. new szName[32]
  58. get_user_name(iBestPlayer, szName, charsmax(szName))
  59.  
  60. ColorChat(0, NORMAL, "*^x03 A legjobb jatekos ebben a korben,^x04 %s^x03 volt!", szName)
  61. ColorChat(0, NORMAL, "*^x03 Megolt^x04 %i^x03 jatekost, ebbol^x04 %i^x03 fejessel!", g_iKills[iBestPlayer], g_iHS[iBestPlayer])
  62.  
  63. for(new i; i < 31; i++)
  64. {
  65. g_iDmg[i] = 0;
  66. g_iHS[i] = 0;
  67. g_iKills[i] = 0;
  68. }
  69. }
  70. get_best_player()
  71. {
  72. new players[32], num;
  73. get_players(players, num);
  74. SortCustom1D(players, num, "sort_bestplayer")
  75.  
  76. return players[0]
  77. }
  78. public sort_bestplayer(id1, id2)
  79. {
  80. if(g_iKills[id1] > g_iKills[id2])
  81. return -1;
  82. else if(g_iKills[id1] < g_iKills[id2])
  83. return 1;
  84. else
  85. {
  86. if(g_iDmg[id1] > g_iDmg[id2])
  87. return -1;
  88. else if(g_iDmg[id1] < g_iDmg[id2])
  89. return 1;
  90. else
  91. return 0;
  92. }
  93.  
  94. return 0;
  95. }
  96.  

2.
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <hamsandwich>
  4. #include <dhudmessage>
  5. #include <cstrike>
  6.  
  7. #define PLUGIN "New Plugin"
  8. #define AUTHOR "Unknown"
  9. #define VERSION "1.0"
  10.  
  11. new g_iKills[32];
  12. new top1, top2, top3;
  13.  
  14. public plugin_init()
  15. {
  16. register_plugin(PLUGIN, VERSION, AUTHOR)
  17.  
  18. register_event("DeathMsg", "EventDeathMsg", "a")
  19. register_logevent("RoundEnd", 2, "1=Round_End")
  20. }
  21. public client_disconnect(id)
  22. {
  23. g_iKills[id] = 0;
  24. }
  25. public EventDeathMsg()
  26. {
  27. new killer = read_data(1)
  28. new victim = read_data(2)
  29.  
  30. if(killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim))
  31. {
  32. g_iKills[killer]++;
  33.  
  34. }
  35. else
  36. g_iKills[killer]--;
  37. }
  38. public RoundEnd()
  39. {
  40. new players[32], num;
  41. get_players(players, num);
  42. SortCustom1D(players, num, "sort_bestplayer")
  43.  
  44. top1 = players[0]
  45. top2 = players[1]
  46. top3 = players[2]
  47.  
  48. new top1neve[33], top2neve[33], top3neve[33];
  49. get_user_name(top1, top1neve, charsmax(top1neve))
  50. get_user_name(top2, top2neve, charsmax(top2neve))
  51. get_user_name(top3, top3neve, charsmax(top3neve))
  52.  
  53. set_dhudmessage(random(256), random(256), random(256), 0.29, 0.42,0,6.0,12.0,0.1,0.2)
  54. show_dhudmessage(0, "Ebben a Korben a Legjobb jatekosok:^n1. %s^n2. %s^n3. %s", top1neve, top2neve, top3neve)
  55. client_print(0, print_chat, "")
  56.  
  57. for(new i; i < 31; i++)
  58. {
  59. g_iKills[i] = 0;
  60. }
  61. }
  62.  
  63. public sort_bestplayer(id1, id2)
  64. {
  65. if(g_iKills[id1] > g_iKills[id2])
  66. return -1;
  67. else if(g_iKills[id1] < g_iKills[id2])
  68. return 1;
  69.  
  70. return 0;
  71. }

Szerző:  parodyshelf [ 2014.04.20. 11:33 ]
Hozzászólás témája:  Re: Ékezetek kivevése

Valaki ebből is kivenné az ékezeteket pls?
www.hlmod.hu/viewtopic.php?f=101&t=15055 :?: :(

Szerző:  Anonymous1337 [ 2014.04.20. 11:47 ]
Hozzászólás témája:  Re: Ékezetek kivevése

Ékezet nélkül:


SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <hamsandwich>
  4. #include <dhudmessage>
  5. #include <cstrike>
  6.  
  7. #define PLUGIN "New Plugin"
  8. #define AUTHOR "Unknown"
  9. #define VERSION "1.0"
  10.  
  11. new g_iKills[32];
  12. new top1, top2, top3;
  13.  
  14. public plugin_init()
  15. {
  16. register_plugin(PLUGIN, VERSION, AUTHOR)
  17.  
  18. register_event("DeathMsg", "EventDeathMsg", "a")
  19. register_logevent("RoundEnd", 2, "1=Round_End")
  20. }
  21. public client_disconnect(id)
  22. {
  23. g_iKills[id] = 0;
  24. }
  25. public EventDeathMsg()
  26. {
  27. new killer = read_data(1)
  28. new victim = read_data(2)
  29.  
  30. if(killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim))
  31. {
  32. g_iKills[killer]++;
  33.  
  34. }
  35. else
  36. g_iKills[killer]--;
  37. }
  38. public RoundEnd()
  39. {
  40. new players[32], num;
  41. get_players(players, num);
  42. SortCustom1D(players, num, "sort_bestplayer")
  43.  
  44. top1 = players[0]
  45. top2 = players[1]
  46. top3 = players[2]
  47.  
  48. new top1neve[33], top2neve[33], top3neve[33];
  49. get_user_name(top1, top1neve, charsmax(top1neve))
  50. get_user_name(top2, top2neve, charsmax(top2neve))
  51. get_user_name(top3, top3neve, charsmax(top3neve))
  52.  
  53. if(num == 1)
  54. {
  55. set_dhudmessage(random(256), random(256), random(256), 0.29, 0.42,0,6.0,12.0,0.1,0.2)
  56. show_dhudmessage(0, "Ebben a Korben a Legjobb jatekosok:^n1. %s |Oles:%d", top1neve, g_iKills[top1])
  57. }
  58. else if(num == 2)
  59. {
  60. set_dhudmessage(random(256), random(256), random(256), 0.29, 0.42,0,6.0,12.0,0.1,0.2)
  61. show_dhudmessage(0, "Ebben a Korben a Legjobb jatekosok:^n1. %s |Oles:%d^n2. %s |Oles:%d", top1neve, g_iKills[top1], top2neve, g_iKills[top2])
  62. }
  63. else if(num >= 3)
  64. {
  65. set_dhudmessage(random(256), random(256), random(256), 0.29, 0.42,0,6.0,12.0,0.1,0.2)
  66. show_dhudmessage(0, "Ebben a Korben a Legjobb jatekosok:^n1. %s |Oles:%d^n2. %s |Oles:%d^n3. %s |Oles:%d", top1neve, g_iKills[top1], top2neve, g_iKills[top2],top3neve, g_iKills[top3])
  67. }
  68. client_print(0, print_chat, "")
  69.  
  70. for(new i; i < 31; i++)
  71. {
  72. g_iKills[i] = 0;
  73. }
  74. }
  75.  
  76. public sort_bestplayer(id1, id2)
  77. {
  78. if(g_iKills[id1] > g_iKills[id2])
  79. return -1;
  80. else if(g_iKills[id1] < g_iKills[id2])
  81. return 1;
  82.  
  83. return 0;
  84. }
  85.  
  86. stock print_color(const id, const input[], any:...)
  87. {
  88. new count = 1, players[32]
  89. static msg[191]
  90. vformat(msg, 190, input, 3)
  91.  
  92. replace_all(msg, 190, "!g", "^4")
  93. replace_all(msg, 190, "!y", "^1")
  94. replace_all(msg, 190, "!t", "^3")
  95. replace_all(msg, 190, "?", "á")
  96. replace_all(msg, 190, "?", "é")
  97. replace_all(msg, 190, "?", "í")
  98. replace_all(msg, 190, "?", "ó")
  99. replace_all(msg, 190, "?", "ö")
  100. replace_all(msg, 190, "?", "ő")
  101. replace_all(msg, 190, "?", "ú")
  102. replace_all(msg, 190, "?", "ü")
  103. replace_all(msg, 190, "?", "ű")
  104. replace_all(msg, 190, "?", "Á")
  105. replace_all(msg, 190, "?", "É")
  106. replace_all(msg, 190, "?", "Í")
  107. replace_all(msg, 190, "?", "Ó")
  108. replace_all(msg, 190, "?", "Ö")
  109. replace_all(msg, 190, "?", "Ő")
  110. replace_all(msg, 190, "?", "Ú")
  111. replace_all(msg, 190, "?", "Ü")
  112. replace_all(msg, 190, "?", "Ű")
  113.  
  114. if (id) players[0] = id; else get_players(players, count, "ch")
  115. {
  116. for (new i = 0; i < count; i++)
  117. {
  118. if (is_user_connected(players[i]))
  119. {
  120. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  121. write_byte(players[i])
  122. write_string(msg)
  123. message_end()
  124. }
  125. }
  126. }
  127. return PLUGIN_HANDLED
  128. }

Szerző:  Badboy.killer [ 2014.04.20. 14:24 ]
Hozzászólás témája:  Re: Ékezetek kivevése

Offokat kerüljük!

Szerző:  parodyshelf [ 2014.04.28. 17:00 ]
Hozzászólás témája:  Re: Ékezetek kivevése

Kösz!

Szerző:  alfaanero [ 2014.04.28. 17:02 ]
Hozzászólás témája:  Re: Ékezetek kivevése

nem kell mind1ik témádhoz oda írni,hogy kösz használd a gombot,mert azért van!!!!!!!

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