Raised This Month: $51 Target: $400
 12% 

[HELP] CS:GO >> Admin prefix + Colored name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
viRR
Member
Join Date: Mar 2011
Location: Slovakia
Old 12-03-2012 , 20:19   [HELP] CS:GO >> Admin prefix + Colored name
Reply With Quote #1

Hey,
I have a problem, I do not understand what the problem is...
(I'm a newbie at scripting and I do not understand what the scipting is, either)

Code:
public OnPluginStart()
{
	CreateConVar("acc_version", VERSION, "");
		RegConsoleCmd("say", SayHook);
}


public Action:SayHook(client, Args)
{
	new AdminId:AdminID = GetUserAdmin(client);
	if(AdminID == INVALID_ADMIN_ID)
		return Plugin_Continue;
	
	decl String:Name[MAX_NAME_LENGTH];
	decl String:Msg[256];
		
	GetClientName(client, Name, sizeof(Name));
	GetCmdArgString(Msg, sizeof(Msg));
	Msg[strlen(Msg)-1] = '\0';
	CPrintToChatAll("[\x05Admin\x01] {teamcolor}%s: {default}%s", Name, Msg[1]);
	
	return Plugin_Handled;
}
If you guys help me or recommend another plugin resembling to this one, I'd be very happy.
Thanks.

Last edited by viRR; 12-03-2012 at 20:22.
viRR is offline
Send a message via Skype™ to viRR
 



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 15:49.


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