Raised This Month: $ Target: $400
 0% 

fantastiko


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fantastiko
BANNED
Join Date: Feb 2013
Old 02-17-2013 , 14:34   fantastiko
Reply With Quote #1

fantastiko

Last edited by fantastiko; 11-23-2013 at 03:38.
fantastiko is offline
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 02-17-2013 , 18:06   Re: possible color chat ?
Reply With Quote #2

Just an example. Should work.

Code:
#include <amxmodx>
new SayText
public plugin_init()
{
	register_plugin("Chat" , "1.0", "EDUTz")
	register_clcmd("say", "hook_say")
	register_clcmd("say_team", "hook_say")
	SayText = get_user_msgid("SayText")
}

public hook_say(id)
{
	new name[32]
	static text[70]
	get_user_name(id, name, 31)
	read_args(text, sizeof(text)-1);
	remove_quotes(text);
	if(equali(text, "hello", 4))
	{
		format(text, 191, "^x01[%s], ^x04Hello to you too", name)
		message_begin(MSG_ONE, SayText, _, id)
		write_byte(id)		
		write_string(text)
		message_end()
		return PLUGIN_HANDLED
	}
	return PLUGIN_CONTINUE;
}

Last edited by EDUTz; 02-17-2013 at 18:07.
EDUTz is offline
Old 02-18-2013, 03:55
fantastiko
This message has been deleted by fantastiko.
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-18-2013 , 04:34   Re: possible color chat ?
Reply With Quote #3

Are you sure HL can even print in colors?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
fantastiko
BANNED
Join Date: Feb 2013
Old 02-18-2013 , 05:09   Re: possible color chat ?
Reply With Quote #4

if playing hl teamplay name in chat print with color.
fantastiko is offline
Old 04-10-2013, 06:23
fantastiko
This message has been deleted by fantastiko.
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-11-2013 , 01:16   Re: possible color chat ?
Reply With Quote #5

Just because the game uses colors in chat doesn't mean you can do it like you would in Counter-Strike. You can't do it the same way as CS in Day of Defeat (it's not even practical to do it at all, I don't know anybody that does).
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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:47.


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