Raised This Month: $ Target: $400
 0% 

How can I contact the team color?


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

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 #2

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