hlmod.hu
https://hlmod.hu/

nem azt irja ki...
https://hlmod.hu/viewtopic.php?f=29&t=7771
Oldal: 2 / 2

Szerző:  m0csy652 [ 2013.03.22. 19:11 ]
Hozzászólás témája:  Re: nem azt irja ki...

Na valaki megirja akkor a véglegest? mert most nem tudok dönteni.
Köszönöm nem marad el.

Szerző:  fuck604 [ 2013.03.23. 10:33 ]
Hozzászólás témája:  Re: nem azt irja ki...

csak kicsit kellett volna megnézned a dolgokat és rájössz.. legalább nézd meg hogy mi változott
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "Name"
  5. #define AUTHOR "Author"
  6. #define VERSION "1.0"
  7.  
  8. public plugin_init()
  9. {
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11. register_event("DeathMsg","event_death","a")
  12. }
  13. public event_death()
  14. {
  15. new killer = read_data(1);
  16. new victim = read_data(2);
  17. new vicname[32], killname[32]
  18. get_user_name(victim,vicname,31)
  19. get_user_name(killer,killname,31)
  20.  
  21. print_color(killer,"^3 %s ^4MEGÖLTE ^3 %s ^4-t",killname,vicname)
  22. print_color(victim,"^3 %s ^4MEGÖLTE ^3 %s ^4-t",killname,vicname)
  23. }
  24. stock print_color(const id, const input[], any:...)
  25. {
  26. new count = 1, players[32]
  27. static msg[191]
  28. vformat(msg, 190, input, 3)
  29.  
  30. replace_all(msg, 190, "!g", "^4")
  31. replace_all(msg, 190, "!y", "^1")
  32. replace_all(msg, 190, "!t", "^3")
  33. replace_all(msg, 190, "á", "A?")
  34. replace_all(msg, 190, "é", "A©")
  35. replace_all(msg, 190, "í", "A­")
  36. replace_all(msg, 190, "ó", "Al")
  37. replace_all(msg, 190, "ö", "A¶")
  38. replace_all(msg, 190, "o", "L‘")
  39. replace_all(msg, 190, "ú", "As")
  40. replace_all(msg, 190, "ü", "AL")
  41. replace_all(msg, 190, "u", "L±")
  42. replace_all(msg, 190, "Á", "A")
  43. replace_all(msg, 190, "É", "A‰")
  44. }

---------------->
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "Name"
  5. #define AUTHOR "Author"
  6. #define VERSION "1.0"
  7.  
  8. public plugin_init()
  9. {
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11. register_event("DeathMsg","event_death","a")
  12. }
  13. public event_death()
  14. {
  15. new killer = read_data(1);
  16. new victim = read_data(2);
  17. new vicname[32], killname[32]
  18. get_user_name(victim,vicname,31)
  19. get_user_name(killer,killname,31)
  20.  
  21. print_color(killer,"^3 %s ^4MEGÖLTE ^3 %s ^4-t",killname,vicname)
  22. print_color(victim,"^3 %s ^4MEGÖLTE ^3 %s ^4-t",killname,vicname)
  23. }
  24. stock print_color(const id, const input[], any:...)
  25. {
  26. new count = 1, players[32]
  27. static msg[191]
  28. vformat(msg, 190, input, 3)
  29.  
  30. replace_all(msg, 190, "!g", "^4")
  31. replace_all(msg, 190, "!y", "^1")
  32. replace_all(msg, 190, "!t", "^3")
  33. replace_all(msg, 190, "á", "A?")
  34. replace_all(msg, 190, "é", "A©")
  35. replace_all(msg, 190, "í", "A­")
  36. replace_all(msg, 190, "ó", "Al")
  37. replace_all(msg, 190, "ö", "A¶")
  38. replace_all(msg, 190, "o", "L‘")
  39. replace_all(msg, 190, "ú", "As")
  40. replace_all(msg, 190, "ü", "AL")
  41. replace_all(msg, 190, "u", "L±")
  42. replace_all(msg, 190, "Á", "A")
  43. replace_all(msg, 190, "É", "A‰")
  44.  
  45. if (id) players[0] = id; else get_players(players, count, "ch")
  46. {
  47. for (new i = 0; i < count; i++)
  48. {
  49. if (is_user_connected(players[i]))
  50. {
  51. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  52. write_byte(players[i])
  53. write_string(msg)
  54. message_end()
  55. }
  56. }
  57. }
  58. return PLUGIN_HANDLED
  59. }

Szerző:  m0csy652 [ 2013.03.23. 12:09 ]
Hozzászólás témája:  Re: nem azt irja ki...

fuck604 írta:
csak kicsit kellett volna megnézned a dolgokat és rájössz.. legalább nézd meg hogy mi változott
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "Name"
  5. #define AUTHOR "Author"
  6. #define VERSION "1.0"
  7.  
  8. public plugin_init()
  9. {
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11. register_event("DeathMsg","event_death","a")
  12. }
  13. public event_death()
  14. {
  15. new killer = read_data(1);
  16. new victim = read_data(2);
  17. new vicname[32], killname[32]
  18. get_user_name(victim,vicname,31)
  19. get_user_name(killer,killname,31)
  20.  
  21. print_color(killer,"^3 %s ^4MEGÖLTE ^3 %s ^4-t",killname,vicname)
  22. print_color(victim,"^3 %s ^4MEGÖLTE ^3 %s ^4-t",killname,vicname)
  23. }
  24. stock print_color(const id, const input[], any:...)
  25. {
  26. new count = 1, players[32]
  27. static msg[191]
  28. vformat(msg, 190, input, 3)
  29.  
  30. replace_all(msg, 190, "!g", "^4")
  31. replace_all(msg, 190, "!y", "^1")
  32. replace_all(msg, 190, "!t", "^3")
  33. replace_all(msg, 190, "á", "A?")
  34. replace_all(msg, 190, "é", "A©")
  35. replace_all(msg, 190, "í", "A­")
  36. replace_all(msg, 190, "ó", "Al")
  37. replace_all(msg, 190, "ö", "A¶")
  38. replace_all(msg, 190, "o", "L‘")
  39. replace_all(msg, 190, "ú", "As")
  40. replace_all(msg, 190, "ü", "AL")
  41. replace_all(msg, 190, "u", "L±")
  42. replace_all(msg, 190, "Á", "A")
  43. replace_all(msg, 190, "É", "A‰")
  44. }

---------------->
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "Name"
  5. #define AUTHOR "Author"
  6. #define VERSION "1.0"
  7.  
  8. public plugin_init()
  9. {
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11. register_event("DeathMsg","event_death","a")
  12. }
  13. public event_death()
  14. {
  15. new killer = read_data(1);
  16. new victim = read_data(2);
  17. new vicname[32], killname[32]
  18. get_user_name(victim,vicname,31)
  19. get_user_name(killer,killname,31)
  20.  
  21. print_color(killer,"^3 %s ^4MEGÖLTE ^3 %s ^4-t",killname,vicname)
  22. print_color(victim,"^3 %s ^4MEGÖLTE ^3 %s ^4-t",killname,vicname)
  23. }
  24. stock print_color(const id, const input[], any:...)
  25. {
  26. new count = 1, players[32]
  27. static msg[191]
  28. vformat(msg, 190, input, 3)
  29.  
  30. replace_all(msg, 190, "!g", "^4")
  31. replace_all(msg, 190, "!y", "^1")
  32. replace_all(msg, 190, "!t", "^3")
  33. replace_all(msg, 190, "á", "A?")
  34. replace_all(msg, 190, "é", "A©")
  35. replace_all(msg, 190, "í", "A­")
  36. replace_all(msg, 190, "ó", "Al")
  37. replace_all(msg, 190, "ö", "A¶")
  38. replace_all(msg, 190, "o", "L‘")
  39. replace_all(msg, 190, "ú", "As")
  40. replace_all(msg, 190, "ü", "AL")
  41. replace_all(msg, 190, "u", "L±")
  42. replace_all(msg, 190, "Á", "A")
  43. replace_all(msg, 190, "É", "A‰")
  44.  
  45. if (id) players[0] = id; else get_players(players, count, "ch")
  46. {
  47. for (new i = 0; i < count; i++)
  48. {
  49. if (is_user_connected(players[i]))
  50. {
  51. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  52. write_byte(players[i])
  53. write_string(msg)
  54. message_end()
  55. }
  56. }
  57. }
  58. return PLUGIN_HANDLED
  59. }

Tényleg. Ezt nem vettem akkor észre. Köszi:)

Szerző:  m0csy652 [ 2013.03.23. 17:45 ]
Hozzászólás témája:  Re: nem azt irja ki...

jó, de az ékezetes betűt (ami ebben a helyzetben ö) nem jeleniti meg. de amugy működik.

Szerző:  HunGamer [ 2013.03.28. 18:50 ]
Hozzászólás témája:  Re: nem azt irja ki...

Ezeket írd bele a stockba
SMA Forráskód: [ Mindet kijelol ]
  1. replace_all(msg, 190, "!g", "^4")
  2. replace_all(msg, 190, "!y", "^1")
  3. replace_all(msg, 190, "!t", "^3")
  4. replace_all(msg, 190, "á", "á")
  5. replace_all(msg, 190, "é", "Ă©")
  6. replace_all(msg, 190, "í", "Ă­")
  7. replace_all(msg, 190, "ó", "Ăł")
  8. replace_all(msg, 190, "ö", "ö")
  9. replace_all(msg, 190, "ő", "Ĺ‘")
  10. replace_all(msg, 190, "ú", "Ăş")
  11. replace_all(msg, 190, "ü", "ĂĽ")
  12. replace_all(msg, 190, "ű", "ű")
  13. replace_all(msg, 190, "Á", "Á")
  14. replace_all(msg, 190, "É", "É")
  15. replace_all(msg, 190, "Í", "ĂŤ")
  16. replace_all(msg, 190, "Ó", "Ă“")
  17. replace_all(msg, 190, "Ö", "Ă–")
  18. replace_all(msg, 190, "Ő", "Ő")
  19. replace_all(msg, 190, "Ú", "Ăš")
  20. replace_all(msg, 190, "Ü", "Ăś")
  21. replace_all(msg, 190, "Ű", "Ĺ°")

Szerző:  m0csy652 [ 2013.03.28. 19:25 ]
Hozzászólás témája:  Re: nem azt irja ki...

HunGamer írta:
Ezeket írd bele a stockba
SMA Forráskód: [ Mindet kijelol ]
  1. replace_all(msg, 190, "!g", "^4")
  2. replace_all(msg, 190, "!y", "^1")
  3. replace_all(msg, 190, "!t", "^3")
  4. replace_all(msg, 190, "á", "á")
  5. replace_all(msg, 190, "é", "Ă©")
  6. replace_all(msg, 190, "í", "Ă­")
  7. replace_all(msg, 190, "ó", "Ăł")
  8. replace_all(msg, 190, "ö", "ö")
  9. replace_all(msg, 190, "ő", "Ĺ‘")
  10. replace_all(msg, 190, "ú", "Ăş")
  11. replace_all(msg, 190, "ü", "ĂĽ")
  12. replace_all(msg, 190, "ű", "ű")
  13. replace_all(msg, 190, "Á", "Á")
  14. replace_all(msg, 190, "É", "É")
  15. replace_all(msg, 190, "Í", "ĂŤ")
  16. replace_all(msg, 190, "Ó", "Ă“")
  17. replace_all(msg, 190, "Ö", "Ă–")
  18. replace_all(msg, 190, "Ő", "Ő")
  19. replace_all(msg, 190, "Ú", "Ăš")
  20. replace_all(msg, 190, "Ü", "Ăś")
  21. replace_all(msg, 190, "Ű", "Ĺ°")

Jó, csak azt irja, MEGĂ–LTE, kijavitanád ? :D

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