Raised This Month: $ Target: $400
 0% 

How can I contact the team color?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CsIosefin
Senior Member
Join Date: Aug 2009
Old 07-28-2010 , 07:16   How can I contact the team color?
Reply With Quote #1

Hi, I want to make a plugin, but do not know how to get the color of the team, that when someone types in the chat, to have his name in team color:
CT - BLUE
T - RED
I can help with a solution?
Thanks very much.
CsIosefin is offline
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 07-28-2010 , 07:22   Re: How can I contact the team color?
Reply With Quote #2

Well, colorchat module already has function of colouring text by team.
Gadzislaw007 is offline
CsIosefin
Senior Member
Join Date: Aug 2009
Old 07-28-2010 , 07:34   Re: How can I contact the team color?
Reply With Quote #3

Yes, Counter-Strike already has position, but I put a plugin for instant, when the players are alive, and then color the team does not work, I have to include the plugin, but do not know how to steal the team color. ..
CsIosefin is offline
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 07-28-2010 , 09:13   Re: How can I contact the team color?
Reply With Quote #4

So you want to colour every message in chat by the color of team?
Gadzislaw007 is offline
CsIosefin
Senior Member
Join Date: Aug 2009
Old 07-28-2010 , 10:44   Re: How can I contact the team color?
Reply With Quote #5

No message, the name of the team have color!
So I plugin:
Code:
#include <amxmodx>

public plugin_init() 
{
	register_plugin("PsychoListen", "1.0", "PsychoGuard");

	register_clcmd("say", "handle_say");
}

public handle_say(id) 
{
	new is_alive = is_user_alive(id);

	static command [17], message [129], name [33], players [32];
	read_argv(0, command, 16);
	read_argv(1, message, 128);

	new player_count = get_playersnum();
	get_players(players, player_count, "c");
	get_user_name(id, name, 32);

	for (new i = 0; i < player_count; i++) 
	{
		if (!is_user_alive (players[i]) && is_alive)
		{
			client_print(players[i], print_chat, "*ALIVE* %s : %s", name, message);
       		}

		if (is_user_alive (players[i]) && !is_alive) 
		{
			client_print(players[i], print_chat, "*DEAD* %s : %s", name, message);
        	}
	}

	return PLUGIN_CONTINUE;
}
I want his name to be either red or blue ... I want ...
CsIosefin is offline
Reply



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


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