View Single Post
Plugin Info:     Modification:          Category:         
MagNNusS
Member
Join Date: May 2018
Location: World of Bushi
Old 08-10-2020 , 13:59   Messages Replacement (v0.0.1)
Reply With Quote #1

Messages Replacement
  • First, what is this 'Messages Replacement' plug-in?
It's simple, it replaces any in-game messages ID into a hud (for now) from a small configuration file. Now there's no need to use hardcoded path to add a 'Terrorist won this round' hud when Terrorist actually wins the round (As an example). Via this configuration file you can hook many ID messages and you can change the hud parameters.
  • Why is this shared?
Well, the main one is that I've sawed that in the past a lot of people constantly were suggesting 'Can I change message bla bla bla', next thing is that this hasn't been made before ( I guess, or I didn't search well enough? ).
  • How this configuration file works?
There are 2 sections. One checks all registered messages and the other one reads hud parameters such as colour, screen position, effects, hold time etc. There is already an example in the config file.
  • How can I install it?
Okay first, you must compile the plug-in locally, then place message_configs.ini in your configs folder. Add the name of your plug-in in your plugins.ini file (message_replacement.amxx)
  • I don't know any messages, can you tell me some?
Well, I also don't have all of them, but I know few of them:
PHP Code:
#Terrorists_Win
#CTs_Win
#Round_Draw
#Bomb_Planted
#Bomb_Defused
#Target_Bombed
#Hostages_Not_Rescued
#Game_will_restart_in
#Game_Commencing
#Target_Bombed 
  • I've added a few messages, but they don't work, why?
In this case the message cannot be hooked. Which means plug-in doesn't support the version of message, OR you probably miswrote it or something.
  • I don't know what these hud parameters contains, what can I do?
In this case I recommend you to visit this link, based here you can easily configure them.
  • I'm curious about plug-ins changelog, how can I see it?
Just press 'Show' and an information will appear.
Spoiler


Suggestions are welcomed. And also, hopefully fewer bugs will be emphasized
Attached Files
File Type: sma Get Plugin or Get Source (message_replacement.sma - 353 views - 4.5 KB)
File Type: ini message_configs.ini (1.2 KB, 210 views)
__________________
Just an impractical signature
nothing to see here.
MagNNusS is offline