hlmod.hu
https://hlmod.hu/

Statnullázó
https://hlmod.hu/viewtopic.php?f=9&t=20229
Oldal: 1 / 1

Szerző:  Levii [ 2015.04.10. 17:37 ]
Hozzászólás témája:  Statnullázó

Sziasztok! miért nem olvassa be a színt?
SMA Forráskód: [ Mindet kijelol ]
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5. #include <cstrike>
  6. #include <fun>
  7.  
  8.  
  9. #define PLUGIN "Egyszerű stat resi"
  10. #define VERSION "1.0"
  11. #define AUTHOR "Akosch:."
  12.  
  13. new pcvar_Display
  14.  
  15. public plugin_init() {
  16. register_plugin(PLUGIN, VERSION, AUTHOR)
  17. register_clcmd("say /rs", "rs")
  18. pcvar_Display = register_cvar("sv_rsdisplay", "0")
  19. }
  20.  
  21. public rs(id) {
  22. set_user_frags(id, 0)
  23. cs_set_user_deaths(id, 0)
  24.  
  25. if(get_pcvar_num(pcvar_Display) ==1)
  26. {
  27. new nev[33]
  28. get_user_name(id, nev, 32)
  29. print_color(0, "!g[Információ]!t %s!y Sikeresen!t nullaztad!y statod.", nev)
  30. else
  31. {
  32. print_color(0, "!g[Információ]!t %s!y Sikeresen !t nullaztad!y statod.", nev)
  33. }
  34. }
  35.  
  36.  
  37. stock print_color(const id, const input[], any:...)
  38. {
  39. new count = 1, players[32]
  40. static msg[191]
  41. vformat(msg, 190, input, 3)
  42.  
  43. replace_all(msg, 190, "!g", "^4")
  44. replace_all(msg, 190, "!y", "^1")
  45. replace_all(msg, 190, "!t", "^3")
  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. replace_all(msg, 190, "Á", "Á")
  56. replace_all(msg, 190, "É", "É")
  57. replace_all(msg, 190, "Í", "ĂŤ")
  58. replace_all(msg, 190, "Ó", "Ă“")
  59. replace_all(msg, 190, "Ö", "Ă–")
  60. replace_all(msg, 190, "Ő", "Ő")
  61. replace_all(msg, 190, "Ú", "Ăš")
  62. replace_all(msg, 190, "Ü", "Ăś")
  63. replace_all(msg, 190, "Ű", "Ĺ°")
  64.  
  65. if (id) players[0] = id; else get_players(players, count, "ch")
  66. {
  67. for (new i = 0; i < count; i++)
  68. {
  69. if (is_user_connected(players[i]))
  70. {
  71. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  72. write_byte(players[i])
  73. write_string(msg)
  74. message_end()
  75. }
  76. }
  77. }
  78. return PLUGIN_HANDLED
  79. }
  80.  
meg mért nem fordul le?

Szerző:  .:[Z]o.O[M]:. :D [ 2015.04.10. 18:07 ]
Hozzászólás témája:  Re: Statnullázó

Próbáld:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <cstrike>
  2. #include <colorchat>
  3. #include <fun>
  4.  
  5. #define PLUGIN "New Plug-In"
  6. #define VERSION "1.0"
  7. #define AUTHOR "author"
  8.  
  9.  
  10. public plugin_init()
  11. {
  12. register_clcmd("say /rs", "reset_score")
  13. }
  14.  
  15. public reset_score(id)
  16. {
  17. cs_set_user_deaths(id, 0)
  18. set_user_frags(id, 0)
  19. cs_set_user_deaths(id, 0)
  20. set_user_frags(id, 0)
  21. {
  22. new nev[33]
  23. get_user_name(id, nev, 32)
  24. {
  25. ColorChat(0, GREEN, "!g[Informacio]!t %s!y Sikeresen !t nullaztad!y statod.", nev)
  26. }
  27. }
  28. }

Szerző:  Levii [ 2015.04.10. 18:33 ]
Hozzászólás témája:  Re: Statnullázó

ezt komolyan gondoltad? xdd [de azért köszi :), de sajna nem jó :S]

Szerző:  .:[Z]o.O[M]:. :D [ 2015.04.10. 18:57 ]
Hozzászólás témája:  Re: Statnullázó

Amit te kértél az sem? próbáltam javítani :S
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4. #include <fun>
  5. #include <colorchat>
  6.  
  7. #define PLUGIN "Egyszerű stat resi"
  8. #define VERSION "1.0"
  9. #define AUTHOR "Akosch:."
  10.  
  11. new pcvar_Display
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_clcmd("say /rs", "rs")
  16. pcvar_Display = register_cvar("sv_rsdisplay", "0")
  17. }
  18.  
  19. public rs(id) {
  20. set_user_frags(id, 0)
  21. cs_set_user_deaths(id, 0)
  22.  
  23. if(get_pcvar_num(pcvar_Display) ==1)
  24. {
  25. new nev[33]
  26. get_user_name(id, nev, 32)
  27. ColorChat(0, GREEN, "!g[Információ]!t %s!y Sikeresen!t nullaztad!y statod.", nev)
  28. }
  29. }
  30.  
  31.  
  32. stock print_color(const id, const input[], any:...)
  33. {
  34. new count = 1, players[32]
  35. static msg[191]
  36. vformat(msg, 190, input, 3)
  37.  
  38. replace_all(msg, 190, "!g", "^4")
  39. replace_all(msg, 190, "!y", "^1")
  40. replace_all(msg, 190, "!t", "^3")
  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. replace_all(msg, 190, "Ő", "Ő")
  56. replace_all(msg, 190, "Ú", "Ăš")
  57. replace_all(msg, 190, "Ü", "Ăś")
  58. replace_all(msg, 190, "Ű", "Ĺ°")
  59.  
  60. if (id) players[0] = id; else get_players(players, count, "ch")
  61. {
  62. for (new i = 0; i < count; i++)
  63. {
  64. if (is_user_connected(players[i]))
  65. {
  66. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  67. write_byte(players[i])
  68. write_string(msg)
  69. message_end()
  70. }
  71. }
  72. }
  73. return PLUGIN_HANDLED
  74. }

Szerző:  FloxaY [ 2015.04.10. 19:03 ]
Hozzászólás témája:  Re: Statnullázó

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4. #include <fun>
  5. #include <colorchat>
  6.  
  7. #define PLUGIN "Egyszerű stat resi"
  8. #define VERSION "1.0"
  9. #define AUTHOR "Akosch:."
  10.  
  11. new pcvar_Display
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_clcmd("say /rs", "rs")
  16. pcvar_Display = register_cvar("sv_rsdisplay", "0")
  17. }
  18.  
  19. public rs(id) {
  20. set_user_frags(id, 0)
  21. cs_set_user_deaths(id, 0)
  22.  
  23. if(get_pcvar_num(pcvar_Display) ==1)
  24. {
  25. new nev[33]
  26. get_user_name(id, nev, 32)
  27. print_color(0, "!g[Információ]!t %s!y Sikeresen!t nullaztad!y statod.", nev)
  28. }
  29. }
  30.  
  31.  
  32. stock print_color(const id, const input[], any:...)
  33. {
  34. new count = 1, players[32]
  35. static msg[191]
  36. vformat(msg, 190, input, 3)
  37.  
  38. replace_all(msg, 190, "!g", "^4")
  39. replace_all(msg, 190, "!y", "^1")
  40. replace_all(msg, 190, "!t", "^3")
  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. replace_all(msg, 190, "Ő", "Ő")
  56. replace_all(msg, 190, "Ú", "Ăš")
  57. replace_all(msg, 190, "Ü", "Ăś")
  58. replace_all(msg, 190, "Ű", "Ĺ°")
  59.  
  60. if (id) players[0] = id; else get_players(players, count, "ch")
  61. {
  62. for (new i = 0; i < count; i++)
  63. {
  64. if (is_user_connected(players[i]))
  65. {
  66. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  67. write_byte(players[i])
  68. write_string(msg)
  69. message_end()
  70. }
  71. }
  72. }
  73. return PLUGIN_HANDLED
  74. }

Szerző:  Levii [ 2015.04.10. 19:28 ]
Hozzászólás témája:  Re: Statnullázó

nem jó :S

Szerző:  FloxaY [ 2015.04.10. 19:31 ]
Hozzászólás témája:  Re: Statnullázó

Levii írta:
nem jó :S

a cvart tedd már 1-esre...

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