hlmod.hu
https://hlmod.hu/

Körvégi adat
https://hlmod.hu/viewtopic.php?f=9&t=14538
Oldal: 1 / 1

Szerző:  gyurc1111 [2014.02.23. 08:37 ]
Hozzászólás témája:  Körvégi adat

Hali.Valaki kitudná ezt nekem javítani?
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <colorchat>
  3. #define PLUGIN "Round data"
  4. #define VERSION "1.0"
  5. #define AUTHOR "ibi"
  6. new hs,kill
  7. public plugin_init() {
  8. register_plugin(PLUGIN, VERSION, AUTHOR)
  9. register_event("DeathMsg","eDeath","a")
  10. register_logevent("log_end",2,"1=Round_End")
  11. }
  12. public eDeath(id){
  13. if(read_data(1)){
  14. hs+=1
  15. kill+=1
  16. }else{
  17. kill+=1
  18. }
  19. }
  20. public log_end(id){
  21. ColorChat(0,RED,"[Kurvák.#] ^x01Ebben a körben ^x04%d ^x01ember halt meg,ebből ^x04%d ^x03fejes ^x01született",kill,hs)
  22. kill=0
  23. hs=0
  24.  
  25. }
  26.  
  27. stock print_color(const id, const input[], any:...)
  28. {
  29. new count = 1, players[32]
  30. static msg[191]
  31. vformat(msg, 190, input, 3)
  32.  
  33. replace_all(msg, 190, "!g", "^4")
  34. replace_all(msg, 190, "!y", "^1")
  35. replace_all(msg, 190, "!t", "^3")
  36. replace_all(msg, 190, "á", "á")
  37. replace_all(msg, 190, "é", "Ă©")
  38. replace_all(msg, 190, "í", "Ă­")
  39. replace_all(msg, 190, "ó", "Ăł")
  40. replace_all(msg, 190, "ö", "ö")
  41. replace_all(msg, 190, "ő", "Ĺ‘")
  42. replace_all(msg, 190, "ú", "Ăş")
  43. replace_all(msg, 190, "ü", "ĂĽ")
  44. replace_all(msg, 190, "ű", "ű")
  45. replace_all(msg, 190, "Á", "Á")
  46. replace_all(msg, 190, "É", "É")
  47. replace_all(msg, 190, "Í", "ĂŤ")
  48. replace_all(msg, 190, "Ó", "Ă“")
  49. replace_all(msg, 190, "Ö", "Ă–")
  50. replace_all(msg, 190, "Ő", "Ő")
  51. replace_all(msg, 190, "Ú", "Ăš")
  52. replace_all(msg, 190, "Ü", "Ăś")
  53. replace_all(msg, 190, "Ű", "Ű")
  54.  
  55. if (id) players[0] = id; else get_players(players, count, "ch")
  56. {
  57. for (new i = 0; i < count; i++)
  58. {
  59. if (is_user_connected(players[i]))
  60. {
  61. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  62. write_byte(players[i])
  63. write_string(msg)
  64. message_end()
  65. }
  66. }
  67. }
  68. return PLUGIN_HANDLED
  69. }
  70. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  71. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  72. */


Itt a hiba:
[img=http://www.kephost.com/thumb/2014/2/23/a1_2014_2_23_62d2gk0pvw_tn.jpg]

Szerző:  Super Nova [2014.02.23. 15:04 ]
Hozzászólás témája:  Re: Körvégi adat

Akkor itt is leírom:

A szöveget cseréld ki erre:

SMA Forráskód: [ Mindet kijelol ]
  1. ColorChat(0,RED,"[Kurvák.#]^x01 Ebben a körben^x04 %d^x01 ember halt meg,ebből^x04 %d^x03 fejes^x01 született",kill,hs)

Szerző:  Applee [2014.02.23. 16:28 ]
Hozzászólás témája:  Re: Körvégi adat

SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. #include <amxmodx>
  3. #include <colorchat>
  4. #define PLUGIN "Round data"
  5. #define VERSION "1.0"
  6. #define AUTHOR "ibi"
  7. new hs,kill
  8. public plugin_init() {
  9. register_plugin(PLUGIN, VERSION, AUTHOR)
  10. register_event("DeathMsg","eDeath","a")
  11. register_logevent("log_end",2,"1=Round_End")
  12. }
  13. public eDeath(id){
  14. if(read_data(1)){
  15. hs+=1
  16. kill+=1
  17. }else{
  18. kill+=1
  19. }
  20. }
  21. public log_end(id){
  22. ColorChat(0,RED,"[Kurvak.#] ^x01Ebben a korben ^x04%d ^x01ember halt meg,ebbol ^x04%d ^x03fejes ^x01szĂĽletett",kill,hs)
  23. kill=0
  24. hs=0
  25.  
  26. }
  27.  
  28. stock print_color(const id, const input[], any:...)
  29. {
  30. new count = 1, players[32]
  31. static msg[191]
  32. vformat(msg, 190, input, 3)
  33.  
  34. replace_all(msg, 190, "!g", "^4")
  35. replace_all(msg, 190, "!y", "^1")
  36. replace_all(msg, 190, "!t", "^3")
  37. replace_all(msg, 190, "á", "á")
  38. replace_all(msg, 190, "é", "Ă©")
  39. replace_all(msg, 190, "í", "Ă­")
  40. replace_all(msg, 190, "ó", "Ăł")
  41. replace_all(msg, 190, "ö", "ö")
  42. replace_all(msg, 190, "ő", "Ĺ‘")
  43. replace_all(msg, 190, "ú", "Ăş")
  44. replace_all(msg, 190, "ü", "ĂĽ")
  45. replace_all(msg, 190, "ű", "ű")
  46. replace_all(msg, 190, "Á", "Á")
  47. replace_all(msg, 190, "É", "É")
  48. replace_all(msg, 190, "Í", "ĂŤ")
  49. replace_all(msg, 190, "Ó", "Ă“")
  50. replace_all(msg, 190, "Ö", "Ă–")
  51. replace_all(msg, 190, "Ő", "Ő")
  52. replace_all(msg, 190, "Ú", "Ăš")
  53. replace_all(msg, 190, "Ü", "Ăś")
  54. replace_all(msg, 190, "Ű", "Ű")
  55.  
  56. if (id) players[0] = id; else get_players(players, count, "ch")
  57. {
  58. for (new i = 0; i < count; i++)
  59. {
  60. if (is_user_connected(players[i]))
  61. {
  62. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  63. write_byte(players[i])
  64. write_string(msg)
  65. message_end()
  66. }
  67. }
  68. }
  69. return PLUGIN_HANDLED
  70. }
  71. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  72. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  73. */
  74.  

Ha ékezetesre szeretnéd, írd át a betűket és mentsd UTF8-ba

Szerző:  Super Nova [2014.02.23. 18:56 ]
Hozzászólás témája:  Re: Körvégi adat

Leírtam már hogy mit cseréljen le de látom nem jutott el hozzád.
Amit most írtál az megint szarul fogja kiírni.
(Megsúgom nem az ékezettel van gond,hanem hogy lemaradnak valamelyik szóból a betűk.)

Szerző:  gyurc1111 [2014.02.23. 19:40 ]
Hozzászólás témája:  Re: Körvégi adat

Az miért van hogy nem is fejest ölök és fejesnekl irja?

PL: 2en fent vagyunk én megölöm öt ugy h labon lovom egyfolytaba és ugy irja ki h fejessel oltem meg.

Szerző:  Super Nova [2014.02.23. 19:49 ]
Hozzászólás témája:  Re: Körvégi adat

Tessék:

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <colorchat>
  3. #define PLUGIN "Round data"
  4. #define VERSION "1.0"
  5. #define AUTHOR "ibi"
  6. new hs,kill
  7. public plugin_init() {
  8. register_plugin(PLUGIN, VERSION, AUTHOR)
  9. register_event("DeathMsg","eDeath","a")
  10. register_logevent("log_end",2,"1=Round_End")
  11. }
  12. public eDeath(id){
  13. if(read_data(3)){
  14. hs+=1
  15. kill+=1
  16. }else{
  17. kill+=1
  18. }
  19. }
  20. public log_end(id){
  21. ColorChat(0,RED,"[Kurvak.#]^x01 Ebben a körben^x04 %d^x01 ember halt meg,ebből^x04 %d^x03 fejes^x01 született",kill,hs)
  22. kill=0
  23. hs=0
  24.  
  25. }
  26.  
  27. stock print_color(const id, const input[], any:...)
  28. {
  29. new count = 1, players[32]
  30. static msg[191]
  31. vformat(msg, 190, input, 3)
  32.  
  33. replace_all(msg, 190, "!g", "^4")
  34. replace_all(msg, 190, "!y", "^1")
  35. replace_all(msg, 190, "!t", "^3")
  36. replace_all(msg, 190, "á", "á")
  37. replace_all(msg, 190, "é", "Ă©")
  38. replace_all(msg, 190, "í", "Ă­")
  39. replace_all(msg, 190, "ó", "Ăł")
  40. replace_all(msg, 190, "ö", "ö")
  41. replace_all(msg, 190, "ő", "Ĺ‘")
  42. replace_all(msg, 190, "ú", "Ăş")
  43. replace_all(msg, 190, "ü", "ĂĽ")
  44. replace_all(msg, 190, "ű", "ű")
  45. replace_all(msg, 190, "Á", "Á")
  46. replace_all(msg, 190, "É", "É")
  47. replace_all(msg, 190, "Í", "ĂŤ")
  48. replace_all(msg, 190, "Ó", "Ă“")
  49. replace_all(msg, 190, "Ö", "Ă–")
  50. replace_all(msg, 190, "Ő", "Ő")
  51. replace_all(msg, 190, "Ú", "Ăš")
  52. replace_all(msg, 190, "Ü", "Ăś")
  53. replace_all(msg, 190, "Ű", "Ű")
  54.  
  55. if (id) players[0] = id; else get_players(players, count, "ch")
  56. {
  57. for (new i = 0; i < count; i++)
  58. {
  59. if (is_user_connected(players[i]))
  60. {
  61. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  62. write_byte(players[i])
  63. write_string(msg)
  64. message_end()
  65. }
  66. }
  67. }
  68. return PLUGIN_HANDLED
  69. }

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