Raised This Month: $ Target: $400
 0% 

Say_team with '@' problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GarbageBox
Senior Member
Join Date: Feb 2010
Old 06-24-2011 , 03:47   Re: Say_team with '@' problem
Reply With Quote #1

Code:
#include <amxmodx>

#define PLUGIN	"Replace Admin Chat"
#define VERSION	"1.0"
#define AUTHOR	"CCC"

new szName[32], szTag[24];


public hook_say_team(id)
{
	new szText[192], szMessage[192];
	read_args(szText, 191);
	remove_quotes(szText);
	
	get_user_name(id, szName,31);
	if(contain(szText, "@") == 0)
	{
		if(get_user_flags(id) & ADMIN_ADMIN)
			szTag = "(ADMIN)"
		else
			szTag = "(PLAYER)"
		format(szMessage, 191, "^x04%s %s ^x01: %s", szTag, szName, szText)
		client_color(id, id, szMessage);
	}
	return PLUGIN_HANDLED;
}
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-24-2011 , 05:25   Re: Say_team with '@' problem
Reply With Quote #2

Where is the rest of it?
__________________
fysiks is online now
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 23:34.


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