#include <sourcemod>
#include <zombiereloaded>
#include <colors>
public OnPluginStart()
{
AddCommandListener(say, "say");
}
public Action:say(client, const String:command[], args)
{
if (client > 0 && args > 0)
{
decl String:text[256];text[0] = '\0';
GetCmdArgString(text, sizeof(text));
StripQuotes(text);
if(StrContains(text, "@") == 0 || StrContains(text, "/") == 0) return Plugin_Continue;
if(strcmp(command, "say") == 0)
{
if (ZR_IsClientZombie(client))
Format(text, sizeof(text), "{teamcolor}[Зомби] %N {default}: %s", client, text);
if (ZR_IsClientHuman(client))
Format(text, sizeof(text), "{teamcolor}[Человек] %N {default}: %s", client, text);
CPrintToChatAllEx(client, "%s", text);
return Plugin_Handled;
}
}
return Plugin_Continue;
}