[Any] Round Messages
2 Attachment(s)
Description:
This is just a simple plugin that prints a message to all players every time a round starts or ends. CVAR list: eventmsg_startmessage "{lightgreen}The round is about to {green}start" //message to send when a round is about to start. eventmsg_endmessage "{lightgreen}The round has {green}ended" //message to send when a round ends. eventmsg_version //Plugin version. In order to compile the plugin yourself, you need morecolors.inc You can find all the available colors here. If you don't want to use any colors, remove the color tags in the CFG file. Command list: No commands. Changelog: Quote:
Click 'Get Plugin', download the .smx file and put it into sourcemod/plugins/ folder. -This is my third plugin ever- |
Re: [Any] Round Messages
i don't see the plugin :/
|
Re: [Any] Round Messages
Quote:
Thanks for reminding me :) |
Re: [Any] Round Messages
Plugin updated.
Morecolors is now optional and not required. |
Re: [Any] Round Messages
Quote:
Things you could add:
Just some ideas :P |
Re: [Any] Round Messages
Quote:
Quote:
Quote:
Thanks for feedback |
Re: [Any] Round Messages
You can use PrintHintText for hint text and use a random interval for what ClassicGuzzi requested
|
Re: [Any] Round Messages
You can't compile the plugin because it requires morecolors.
I think you can use #tryinclude or something instead of #include so that it isn't required but optional. Also, is there even any color tags in the code? You have; PHP Code:
PHP Code:
|
Re: [Any] Round Messages
Quote:
Eg: eventmsg_startmessage "{lightgreen}The round is about to {green}start" |
Re: [Any] Round Messages
You cannot make morecolors optional like that. Even with the cvar to use/not use it, there are still morecolors functions in your code. The compiler will refuse to compile the plugin if morecolors.inc is not present in the includes folder.
Further, an option to use PrintToChatAll vs CPrintToChatAll is made even more pointless when you realize that the server does not need morecolors.inc to run the plugin. Include files like that are only needed by THE COMPILER. Once it's compiled, the include is done. Any server with a reasonably up-to-date version of Sourcemod can run that smx without needing anything extra. I recommend that you remove the cvar, and always use CPrintToChatAll. |
All times are GMT -4. The time now is 14:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.