HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "Deathrun Block M"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Persian"
  7.  
  8. new g_BlockChange
  9. public plugin_init() {
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11.  
  12. g_BlockChange = register_cvar("blockchangeteam","1")
  13.  
  14. register_clcmd("chooseteam", "handled")
  15. register_clcmd("jointeam", "handled")
  16. }
  17.  
  18. public handled(id) {
  19. if ( g_BlockChange )
  20. {
  21. print_color(id, "!g[Deathrun]!t A szerveren a csapat vlts le van tiltva!")
  22. return PLUGIN_HANDLED
  23. }
  24. return PLUGIN_CONTINUE
  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. }