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.