Raised This Month: $12 Target: $400
 3% 

Game Messages & Sounds Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-01-2016 , 16:36   Game Messages & Sounds Manager
Reply With Quote #1



Game Messages & Sounds Manager

Description
  • With this plugin you can easily replace the standard in-games messages like "Bomb Planted", "The target has been bombed", "Bomb Defused" etc. In addition, you can also replace the CT/T win sounds, sounds when planting/defusing the bomb, radio command sounds and so on.

Cvars
  • gmsm_hud_xpos <default: "-1.0"> -- Default X position for (D)HUD messages.
  • gmsm_hud_ypos <default: "0.10"> -- Default Y position for (D)HUD messages.
  • gmsm_hud_effects <default: "0"> -- Effects for (D)HUD messages.
    • "0" = No effects.
      "1" = Blinking effect.
      "2" = Type writer.
  • gmsm_hud_fxtime <default: "2.0"> -- Effect duration for (D)HUD messages.
  • gmsm_hud_holdtime <default: "5.0"> -- Duration for (D)HUD messages.
  • gmsm_hud_fadeintime <default: "0.5"> -- Fade-in duration for (D)HUD messages.
  • gmsm_hud_fadeouttime <default: "1.0"> -- Fade-out duration for (D)HUD messages.

Replacing messages
  • You can change the messages and sounds from the file configs/WinMessages.ini. Use the following form in order to replace a message:

    PHP Code:
    # <Message ID> "<New Message>" "<Type>" "[red] [green] [blue]" "[X position] [Y position]" 
  • Examples:

    PHP Code:
    Terrorists_Win                  "< Terrorists Win >"                            "dhud"       "255 0 0"
    CTs_Win                         "< Counter-Terrorists Win >"                    "dhud"       "0 0 255"
    Bomb_Planted                    "< The Bomb has been Planted >"                 "dhud"       "255 255 0"
    Bomb_Defused                    "< The Bomb has been Defused >"                 "dhud"       "0 255 0"
    Round_Draw                      "< Round Draw >"                                "dhud"       "255 255 255"
    Target_Bombed                   "< Target Successfully Bombed >"                "dhud"       "255 0 255"
    Target_Saved                    "< Target has been Saved >"                     "dhud"       "0 255 0"
    Game_Commencing                 "< Game Commencing >"                           "dhud"       "-1 -1 -1"
    Auto_Team_Balance_Next_Round    "< Auto Team Balance Next Round >"              "dhud"       "-1 -1 -1"
    Game_will_restart_in            "< The Game Is Now Restarting >%n-= %s %s =- "  "dhud"       "-1 -1 -1"
    Weapon_Cannot_Be_Dropped        "Dropping this weapon %nis not allowed."        "center" 
  • You can use -1 if you want the given value of the color to be random, otherwise you need to use a number from 0 to 255. For a completely random colored message, use "-1 -1 -1". Bear in mind that these colors are active only if you're using (D)HUD messages.
  • You can also use %n for multiple lines in all message type except "center".
  • Messages list

Replacing sounds
  • Use the following form in order to replace a sound:

    PHP Code:
    <Audio ID> [New Sound
  • You can leave the "[New Sound]" field blank if you want to simply block that sound. Examples

    PHP Code:
    %!MRAD_terwin "misc/terrorists_win.wav" -- This will replace the sound when terrorists win.
    %!
    MRAD_ctwin "misc_ctswin.wav" -- This will replace the sound when counter-terrorists win.
    %!
    MRAD_FIREINHOLE -- This will block the sound when someone throws a grenade
  • Sounds list

Images












Last edited by OciXCrom; 03-21-2020 at 09:10.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-01-2016 , 17:16   Re: Win Messages & Sounds
Reply With Quote #2

kkkk, nice work.
Oh my god.

Simple idea but executed with a good format
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 05-03-2016 at 00:12.
EFFx is offline
DragonTail
Junior Member
Join Date: May 2016
Location: Bulgaria
Old 05-21-2016 , 14:59   Re: Win Messages & Sounds
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
Lol, I didn't see the "#Auto_Team_Balance_Next_Round" message.
DragonTail is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-21-2016 , 17:31   Re: Win Messages & Sounds
Reply With Quote #4

Not all messages are listed there. It's just a random post I found.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 05-22-2016 , 14:05   Re: Win Messages & Sounds
Reply With Quote #5

I'm a fan of automatization too, nice work. I was always annoyed about these default messages. It's based on the latest amxx build or 1.8.2?
siriusmd99 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-22-2016 , 14:15   Re: Win Messages & Sounds
Reply With Quote #6

You can use it on both. I added a version check for including the dhudmessage library.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 05-23-2016 , 10:20   Re: Win Messages & Sounds
Reply With Quote #7

Quote:
Modification: ALL
No it's not.
__________________
gabuch2 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-23-2016 , 14:37   Re: Win Messages & Sounds
Reply With Quote #8

I didn't really pay attention to that part. Changed to CS only.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Old 06-03-2016, 15:31
1432
This message has been deleted by 1432.
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 06-03-2016 , 16:28   Re: Win Messages & Sounds
Reply With Quote #9

Quote:
Originally Posted by 1432 View Post
i can't compile the file Errors please Help
Make an appart topic. Plugin compiles great. It's about your local problem.
siriusmd99 is offline
maxolahird
Veteran Member
Join Date: Dec 2012
Old 12-25-2016 , 01:28   Re: Win Messages & Sounds
Reply With Quote #10

This plugin is with no doubt, excelent. But, I found an issue.

When replacing messages that are sent to everyone, all good!

The problem is when replacing a user-specific message like #Defusing_Bomb_Without_Defuse_Kit. It shows to everyone not just the specific player.

Thanks a lot and great job on this plugin

Last edited by maxolahird; 12-25-2016 at 02:38.
maxolahird is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode