AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Ultimate Chat + Addons (https://forums.alliedmods.net/showthread.php?t=236576)

Black Rose 03-07-2014 20:06

Ultimate Chat + Addons
 
73 Attachment(s)
I am working on a new version that will adress the "%s1 : %s2" issue. I will have to rewrite all plugins into one.
Ultimate Chat (With addons: Color, Swear, Mute & Tag

Ultimate Chat will enable admins/players to see chat messages they usually wouldn't.
Ultimate Chat: Color will enable admins/players to add color to their messages through commands.
Ultimate Chat: Swear will allow you to censor certain words using regular expressions.
Ultimate Chat: Mute will allow you to mute certain players through a say command or a menu for a specified time or permanently.
Ultimate Chat: Tag will allow you to give tags as prefixes or postfixes to a user name through access level(cvars), SteamID(.ini file) or API(.inc file).

Download Here


Here's an example of 4 addons (Color, Mute, Swear & Tag) working together.
http://digitaldecay.eu/forums/AM/Ima...-parallell.png
Muted, Censored for swearing, general "[ADMIN]" admin tag, personal "<----" post tag, using the color commands to color the text.

Continuing support for my old plugin Ultimate Chat and expanding it with features through addon plugins. This plugin requires cstrike module enabled.

I have updated the old plugin Ultimate Chat for several reasons:
* There was a bug that made empty messages appear as long as they were generated by the plugin. I was not good enough to debug such an error in the past, meaning I didn't even know it existed even though people had told me it did.
* Replaced message_* functions with emessage_* functions to expand the compatibility with other plugins. This will make it easy to expand the functions of Ultimate Chat with simple addon plugins.
* Added a requested feature that dead players could see the messages from alive admins. Flag "k" is used for this feature. If "c" and "d" flag is set, you don't need this option enabled.
* Of course I have made the plugin more efficient in as many ways as I could.
* Added a cvar for admin flags to make it easier for novice users to change the required admin flag(s) without recompiling the plugin.

As all the addon plugins is operating on the message level, meaning after the command is sent, it should work with all plugins using the emessage_* functions and also a clean server with no chat plugins.


Ultimate Chat
Changelog

Commands, cvars and explanations:
Code:

uc_adminmode & uc_playermode:
a = The dead can see the chat messages of their alive teammates non-teammsgs.
b = The dead can see the chat messages of their alive non-teammates non-teammsgs.
c = The alive can see the chat messages of their dead teammates non-teammsgs.
d = The alive can see the chat messages of their dead non-teammates non-teammsgs

e = The dead can see the chat messages of their alive teammates teammsgs
f = The alive can see the chat messages of their dead teammates teammsgs
g = The dead can see the chat messages of their dead non-teammates teammsgs
h = The alive can see the chat messages of their alive non-teammates teammsgs
i = The dead can see the chat messages of their alive non-teammates teammsgs
j = The alive can see the chat messages of their dead non-teammates teammsgs

Default cvar values:
uc_enabled "1"
uc_adminmode "abcdefghij"
uc_playermode "abe"
uc_adminflag "n"


Color
Changelog

Commands, cvars and explanations:

You can add your own commands through the .sma (requires a recompile) but the default ones are:
!g !G /G - for green color.
!t !T /T - for team color.
!d !D /D !n !N /N !y !Y /y /Y - for normal color.
You don't have to worry about the color commands interfering with any other commands for plugins as they are usually picked up on the say command, which is executed before this is.
Code:

uc_color_adminmode & uc_color_playermode:
a = Users can write with normal color
b = Users can write with team color.
c = Users can write with green color.

uc_color_admindefault & uc_color_playerdefault
1 = The default color of the message is green.
2 = The default color of the message is teamcolored.

Default cvar values:
uc_color_enabled "1"
uc_color_adminmode "abc"
uc_color_playermode "abc"
uc_color_adminflag "n"
uc_color_admindefault ""
uc_color_playerdefault ""


Swear
Changelog

Commands, cvars and explanations:
Code:

Cvars:
Run the plugin once. It will automatically create a file called uc_swear.ini in your configs dir. It contains information on how to add expressions.

Cvars:
uc_swear_enabled "1"
        1        Enabled
        0        Disabled

uc_swear_allowadmin "1"
        1        An admin can bypass the swear check if they have the correct admin flag.
        0        Even admin messages will be filtered.

uc_swear_showadmin "1"
        1        Admins will see the unfiltered message if they have the correct admin flag.
        0        Admins will see what everyone else sees.

uc_swear_adminflag "n"
        Decides what flag is required for uc_swear_allowadmin and uc_swear_showadmin.

uc_swear_mode "2"
        1        Block the message completely.
        2        Replace censored text with stars.
        3        Replace with cvar defined text.

uc_swear_replacewith "-snip-"
        If uc_swear_mode is set to 3 you can define what the blocked text will be replaced with using this cvar.

uc_swear_mute_after "0"
        Will collaborate with the UC: Mute plugin. Requires version 1.1. Player gets automatically muted if swearing X times.
        0        Disabled
        Anything else enables the function and decides how many strikes before the player is muted.

uc_swear_mute_time "5"
        Decides how many minutes a player is muted for when swearing too much.


Mute
Changelog

Commands, cvars and explanations:
Code:

Commands:

/mute [Part of name] [Minutes]


Examples:

/mute
        Will bring up the mute menu.

/mute Rose
        Will mute player "Rose" permanently (until unmuted).

/mute Rose 5
        Will mute player "Rose" for 5 minutes.

/unmute Rose
        Will unmute player "Rose".

uc_unmuteall
        Will remove all muted players from nVault.


Cvars:

uc_mute_enabled "1"
        1        Enabled
        0        Disabled

uc_mute_showadmin "1"
        1        Admins will see the unfiltered message if they have the correct admin flag.
        0        Admins will see what everyone else sees.

uc_mute_adminflag "n"
        Decides what flag is required for the /mute command and uc_mute_showadmin.

uc_mute_mode "2"
        1        Block the message completely.
        2        Replace the message with predefined string of uc_mute_replacewith.

uc_mute_replacewith "I'm muted."
        If uc_mute_mode is set to 2 you can define what will be shown instead using this cvar.

uc_mute_message "[Mute] You are muted."
        This is the message that is sent to the muted person as a notification when trying to chat.


Tag

http://digitaldecay.eu/forums/AM/Ima...-Example-1.png
Example using "a" flag to set !g[SuperAdmin] tag through cvars and a personal [ !g--{-!t@ !d] set with .ini file.

Changelog
Code:

Run the plugin once. It will automatically create a file called uc_tag.ini in your configs dir. It contains information on how to add personal tags.
Level cvars, ini file or plugin API all support both the binary format of colors but also the commands, for example !d, !t or !g.

Cvars:
uc_tag_enabled "1"
        1        Enabled
        0        Disabled

uc_tag_levelX_flags ""
uc_tag_levelX_pre ""
uc_tag_levelX_post ""
uc_tag_levelX_namecolor ""
       
        Replace X with 1 to LEVEL_NUM, defined in plugin. Default is 10.
        Use these to add custom levels of tags based on access flags.
        For example, if you want all admins with immunity flag to have the tag [Super Admin] you can use these cvars:
                uc_tag_level1_flags "a"
                uc_tag_level1_pre "[Super Admin]"
       
        And if you want all VIP with flag "t" (ADMIN_LEVEL_H) to have the post tag *VIP* in green you can use these cvars:
                uc_tag_level2_flags "t"
                uc_tag_level2_post "!g*VIP*"
       
        And if you want all admins to have a green name you can use these cvars:
                uc_tag_level3_flags "y"
                uc_tag_level3_namecolor "1"
       
        Use "y" (ADMIN_ADMIN) for all admins and "z" ADMIN_USER for everyone.
       
        If you leave one level without flags, the plugin will stop looping there, so make sure there are no gaps. For example:
                uc_tag_level1_flags "a"
                uc_tag_level2_flags ""
                uc_tag_level3_flags "b"
        That will stop at level2 and exit looping, will never read level3.
        This is to make sure the plugin is not wasting resources when it doesn't have to.
       
        Possible name colors are:
                1: Normal color (yellow/white)
                2: Green
        Anything else will reset to team color.



I will gladly take suggestions on improvements.
Please notify me if you find any bugs or problems that I have missed.

All plugins will work by their own but also with each other. You choose which combination fits you best.
The addon plugins are not compatible with older versions of Ultimate Chat. It is also not compatible with any other plugin that uses message_*() functions to produce the messages.

Compidence 03-07-2014 20:18

Re: Ultimate Chat / Color
 
Nice. Ultimate chat was always the first plugin I'd get whenever I'd work on a server. It's good to see it being updated, though I'll definitely miss that empty message bug that would give me away when I would try to act afk to spectate hackers.

Sun Aloe 03-08-2014 00:46

Re: Ultimate Chat / Color
 
If its 100% working, then it's a very nice plugin, especially the Ultimate Color.

But one thing, you don't hear chat messages, you see chat messages. You do hear sounds, but not chat messages. And your plugin its about chat messages.

Kia 03-08-2014 02:23

Re: Ultimate Chat / Color
 
Nice job. :)

Gam3ronE 03-08-2014 09:59

Re: Ultimate Chat / Color
 
Good work.

Black Rose 03-08-2014 10:19

Re: Ultimate Chat / Color
 
Quote:

Originally Posted by Compidence (Post 2108940)
It's good to see it being updated, though I'll definitely miss that empty message bug that would give me away when I would try to act afk to spectate hackers.

If enough people request that feature I could definitely add it back in but making it "global" instead of just the messages this plugin produces. Hopefully I can make it an addon like the colors. This way people can pick whatever addons they want and the plugins will still be small and effective.

I do however think that this feature will have to be done within the chat plugin itself because the empty messages is probably cleared out after the command phase, the message is probably never sent as a SayText.

Quote:

Originally Posted by Sun Aloe (Post 2108979)
But one thing, you don't hear chat messages, you see chat messages. You do hear sounds, but not chat messages. And your plugin its about chat messages.

You are definitely right. My first plugin was based on psycholisten. I have updated the file and the main post to fit the purpose of the plugin more accurately.

georgik57 04-12-2014 15:43

Re: Ultimate Chat + Addons
 
Congrats, really nice job.

FR0NTLINE 04-14-2014 19:55

Re: Ultimate Chat + Addons
 
Welcome back Bro!

bat 04-15-2014 00:23

Re: Ultimate Chat + Addons
 
Thanks for sharing

Spawner30 04-16-2014 14:12

Re: Ultimate Chat + Addons
 
Great JoB :o Keep On It !!!


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

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