OciXCrom написа: ↑29 Апр 2021, 13:16
This is not a bug and it does not matter what the variable names inside the plugins are. This happens because the Admin Chat plugin doesn't support time formatting as Chat Manager does so you can't use %d-%m-%Y for the moment. I will add this feature in the next update.
Suggestion -> Maybe it would be good if you manage to make both plugins in one, and that there is only one configuration file in which everything will be configured (example only one
ChatManager.ini, provided that something like this is feasible. My wish was to have one .log file in which all messages will be archived (say, say_team, and all admin messages), so that everything is in one place in one file. Also, I would like the
.log file to be created separately every day and all these logs to be automatically deleted for 7, 15 or 30 days.
Maybe you will find an idea or inspiration in this plugin and upgrade your own. Your chat plugins are convincingly the best, because they have greater possibilities than others, the ranks and text of these messages can be created in different colors.
https://forums.alliedmods.net/showthread.php?t=137514
OciXCrom написа: ↑29 Апр 2021, 13:16
What are those things you added and where?! How is Chat Manager related to amx_psay?! You need to understand that these are
two different plugins that have nothing in common. You can't just add the option from one .ini file into the other. The
$target$ argument in Admin Chat logs the exact thing you wrote in the target field so it's working as intended. Maybe you want it to be replaced with the matched player's name?
I understand that these two plugins are completely separate and work separately. I tried to format the admin command e.g.
amx_psay in the same way as you defined
say and
say_team, but I failed. When I added it to
AdminChat.ini, the plugin did not load any of the admin commands on the server. My wish was that in my
Chat-Log_%d.%M.%Y.log admin command
amx_psay (like all other admin commands), to be formatted as I want, as you gave the option in
ChatManager.ini to the
say and
say_team commands are formatted. An example of how I wanted the message to look in a
.log file:
Код за потвърждение: Избери целия код
Private messages:
AMX_PSAY_FORMAT = amx_psay
amx_psay = [ $ip$ | $steam$ ] (amx_psay) $name$ send PM to --> $target$: $message$
in the log file it looks like this
L date - time | [steamID] [IP] (amx_psay) Buxna Public send PM to --> Shaka Zulu: message
AMX_PSAY_SHORTCUT = say_team #
say_team # = (amx_psay) $name$ send PM to --> $target$: $message$
-------------------------------------------------------------------------------------------------------------------------------
I would like there to be a possibility for Head Admins (eg with the K flag) to have a special admin chat such as amx_chat, in your plugin is defined as amx_asay, I will write you an example instead of VIP chat.
AMX_CHAT_FORMAT = amx_head
amx_head = (HEAD CHAT) $name$: $message$
L date - time | [steamID] [IP] (HEAD CHAT) Shaka Zulu: message
OciXCrom написа: ↑29 Апр 2021, 13:16
Expiration date for what?! Admin Chat doesn't provide any player extras so what could you possibly want to expire inside it?!
First, I would like all logs to be formatted in one .log file and to be created every new day. When 7, 15 or 30 days have passed, they should be deleted automatically, and we should not be in a situation where someone else deletes our chat logs. In the plugin that you created (AdminChat), it seems to me that there is no possibility when the
.log file will be deleted, ie that there is no expiration time, as there is for the ChatManager plugin.
Is there a possibility to make (modify) a plugin like this for me? I believe that there will be many people who would use it, because the one you made is simply perfect, and you have all the praise from me!