1. Slindy Пользователь

    Регистрация:
    06.03.16
    Сообщения:
    52
    Симпатии:
    1
    Пол:
    Мужской
    Greetings guys, i've been using one plugin which adds tag to the Steam Players in chat, but after switching to ReHLDS isnt working im guessing there may be some change to it ?

    Код (Unknown Language):
    1. #include <amxmodx>
    2. #include <colored_translit>
    3.  
    4. #define PREFIX_STEAM             "^x04[Steam]^x01"
    5.  
    6. public plugin_init()
    7. {
    8.     register_plugin("[CT] Steam Tag", "1.0", "Leo_[BH]");
    9. }
    10.  
    11. public ct_message_format(id)
    12. {
    13. if(is_user_connected(id))
    14. {
    15.     if(is_user_steam(id))
    16.     {
    17.         ct_add_to_msg(CT_MSGPOS_PREFIX, PREFIX_STEAM);
    18.     }
    19.    
    20.     return PLUGIN_CONTINUE;
    21. }
    22. return PLUGIN_CONTINUE;
    23. }
    24.  
    25. stock bool:is_user_steam(id){
    26.     server_cmd("dp_clientinfo %d", id)
    27.     server_exec();
    28.     return get_pcvar_num(get_cvar_pointer("dp_r_id_provider"))==2?true:false;
    29. }
    30.  
     
  2. Phantom Команда форума

    Регистрация:
    27.02.15
    Сообщения:
    1.691
    Симпатии:
    795
    Пол:
    Мужской
    Telegram:
    ph4nt0m
    Are you sure problem is in ReHLDS? Maybe plugin is not working correctly?
    Are there any plugins's error logs in amxmodx/logs/ folder?
     
  3. Slindy Пользователь

    Регистрация:
    06.03.16
    Сообщения:
    52
    Симпатии:
    1
    Пол:
    Мужской
    @Phantom, well i dont think is the engine i think is the reunion module, because it sets difrent steam ids even on Steam Players.There is no problem they are working fine reunion and rehlds, im just asking if there is a way to make this work somehow again :)
     
  4. Phantom Команда форума

    Регистрация:
    27.02.15
    Сообщения:
    1.691
    Симпатии:
    795
    Пол:
    Мужской
    Telegram:
    ph4nt0m
    @Slindy, no, there is other problem in plugin, i think. Show your colored_translit include
     
  5. Slindy Пользователь

    Регистрация:
    06.03.16
    Сообщения:
    52
    Симпатии:
    1
    Пол:
    Мужской
    PHP:
    1.  
    2. / *
    3. * Colored Translit v3.0 by Sho0ter Includes File
    4. * /
    5. #if defined _ct_included
    6.  #endinput
    7. #endif
    8. #define _ct_included
    9.  
    10. / * Used to ct_get / set_lang () * /
    11. #define CT_LANG_ENG 0 / * English * /
    12. #define CT_LANG_RUS 1 / * Russian * /
    13.  
    14. / * Message generating unit. Used to ct_add_to_msg () * /
    15. #define CT_MSGPOS_START 0 / * Home * Posts /
    16. #define CT_MSGPOS_PREFIX 1 / * prefix * /
    17. #define CT_MSGPOS_PRENAME 2 / * Before nickname, after the prefix * /
    18. #define CT_MSGPOS_END 3 / * end of the message * /
    19.  
    20. / **
    21. * Emulates switching the player language.
    22. *
    23. * @ Option - id Player Index
    24. * @ Returns - 1 if successful, 0 if unsuccessful      
    25. * /
    26. native ct_cmd_lang (id, lang = 1);
    27.  
    28. / **
    29. * Logs the chat command to the sub-plug-ins.
    30. * /
    31. native ct_register_clcmd (const cmd []);
    32.  
    33. / **
    34. * Sends the message to the player iformatsionnoe
    35. *
    36. * @ Returns - 1 if successful, 0 if unsuccessful
    37. * /
    38. native ct_send_infomsg (id, const input [], any: ...);
    39.  
    40. / **
    41. * Returns the current language of the player chat
    42. *
    43. * @ Option - id Player Index
    44. * @ Return - Player language
    45. * /
    46. native ct_get_lang (id);
    47.  
    48. / **
    49. * Used in the forward ct_message_format ()
    50. * Adds a line to the player's post
    51. *
    52. * @ Parameter - position position in the message
    53. * @ Returns - 1 if successful, 0 if unsuccessful
    54. * /
    55. native ct_add_to_msg (position = 1, const input [], any: ...);
    56.  
    57. / **
    58. * Checks the player to lock the chat
    59. *
    60. * @ Option - id Player Index
    61. * @ Return - the time (in seconds.) If plugged, or 0 if not.
    62. * /
    63. native ct_is_user_gaged (id);
    64.  
    65. / **
    66. * Called when a player sends a message
    67. *
    68. * @ Option - id Player Index
    69. * @ Option - msg message
    70. * @ Option - isteam 1 if the command message
    71. * /
    72. forward ct_message_begin (id, msg [], isteam);
    73.  
    74. / **
    75. * Called when a player sends a message cheat
    76. *
    77. * @ Option - id Player Index
    78. * @ Option - msg message
    79. * /
    80. forward ct_message_cheat (id, msg []);
    81.  
    82. / **
    83. * Called when a player sends a spam message
    84. *
    85. * @ Option - id Player Index
    86. * @ Option - msg message
    87. * /
    88. forward ct_message_spam (id, msg []);
    89.  
    90. / **
    91. * Called when a player sends a message mat
    92. *
    93. * @ Option - id Player Index
    94. * @ Option - msg message
    95. * /
    96. forward ct_message_swear (id, msg []);
    97.  
    98. / **
    99. * Called when a player begins the formation of messages
    100. *
    101. * @ Option - id Player Index
    102. * /
    103. forward ct_message_format (id);
    104.  
     
  6. Phantom Команда форума

    Регистрация:
    27.02.15
    Сообщения:
    1.691
    Симпатии:
    795
    Пол:
    Мужской
    Telegram:
    ph4nt0m
    Hm. What about ct include? Let me see it too
    --- добавлено 17.06.16 ---
    Also show your meta list and amxx plugins
     
  7. Slindy Пользователь

    Регистрация:
    06.03.16
    Сообщения:
    52
    Симпатии:
    1
    Пол:
    Мужской
    this was colored_translit.inc , and there is no other include i zipped all files that i have (colored translit + ct steam tag)
    if u can check it and tell me , i appreciate u're time sir, ty for helping me out! :)
     

    Вложения:

  8. MakapoH. Команда форума

    Регистрация:
    06.02.16
    Сообщения:
    650
    Симпатии:
    239
    Пол:
    Мужской
    Use the ReAPI, ReGameDLL ?
     
  9. neygomon Его Темнейшество :j Команда форума

    Регистрация:
    26.02.15
    Сообщения:
    7.586
    Симпатии:
    4.156
    Пол:
    Мужской
    @MakapoH., ему тут не нужен gamedll
    онли реапи + reunion
     
  10. Slindy Пользователь

    Регистрация:
    06.03.16
    Сообщения:
    52
    Симпатии:
    1
    Пол:
    Мужской
    @MakapoH., i do not use ReGameDLL since it crashes my server and problems are too hard to locate i tried to disable everything but still, so u say if i enable ReAPI the plugin will work?
     
  11. Le$hiy VIP user

    Регистрация:
    13.06.15
    Сообщения:
    578
    Симпатии:
    153
    Пол:
    Мужской
    VKcom:
    leshiy_bannikoff
    Have you replaced your amx module cstrike_amxx_i386.so fixed on this topic? Usually this solves the problem with crashing servers when you install regamedll.
     
    Slindy нравится это.
  12. Slindy Пользователь

    Регистрация:
    06.03.16
    Сообщения:
    52
    Симпатии:
    1
    Пол:
    Мужской
    Yes it was replaced.