Chat With Your Country!

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Chat With Your Country!

Post by greenie »

This plugin came to me when I saw other plugins that added the country name to the beginning of a player's chat. So then I thought, maybe I could add to that, since those were very unoriginal and were getting very annoying.

Author: nikhilgupta345

Info:
This plugin allows you to talk with people that are only from your country, by using '!' before your message. It will allow only people that are in your country to see it, and it will display the country name beside the message.

Along with that, you can also team-chat and country-chat at the same time. So it will show the message only to the people that are on your team and that are in your country.

Examples:

In regular say I type: !hi my name is nikhilgupta345.
it would show: [United States] nikhilgupta345: hi my name is nikhilgupta345.

It would ONLY show to the people from the U.S..

In team chat I type: !hi my name is nikhilgupta345.
it would show: [United States] (TERRORIST) nikhilgupta345: hi my name is nikhilgupta345.

This would ONLY show to people from the U.S. AND on my team.

This plugin is useful when you have a lot of people from a different language in your server, or want to keep people in the server because you don't want them to leave because of the different languages spoken.

Cvars:
cc_adminchat <0/1> <default: 1>: Whether admins should see the country chat or not.
Changelog:
v1.0 - Nov. 03, 2010: Plugin first released.
v1.1 - Nov 04, 2010: Added cvar for admins to see all chat. Commented code (or some of it, will comment rest later).
Credits:
Me - creating the plugin
Multiple People - using their plugin's as an idea-base.

Installation Instructions:
-Click the 'Get Source' Link below.
-Place countrychat.sma in your scripting folder.
-Add 'colorchat.inc ' to your includes folder.
-Run compile.exe

Hope this is original, haven't seen anything like this before

colorchat.inc
get plugin or get source
Post Reply

Return to “Admin Commands”