Raised This Month: $ Target: $400
 0% 

Chat With Your Country!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   ConnorMcLeod (74)
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 11-03-2010 , 21:44   Chat With Your Country!
Reply With Quote #1

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:
Code:
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
Attached Files
File Type: inc colorchat.inc (1.9 KB, 1013 views)
File Type: sma Get Plugin or Get Source (countrychat.sma - 2499 views - 4.8 KB)
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please

Last edited by nikhilgupta345; 01-08-2011 at 10:48.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
 



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 21:00.


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