Maringue wrote:That will change the color of your text, but I don't know if it will change the [D] that shows up next to your name during chat.
Maringue wrote:That will change the color of your text, but I don't know if it will change the [D] that shows up next to your name during chat.
public Action:Command_ToggleEnable(client, args)
{
decl String:strCookie[16];
GetClientCookie(client, c_PlayerEnabled, strCookie, sizeof(strCookie));
if(StrEqual(strCookie, "true"))
{
SetClientCookie(client, c_PlayerEnabled, "false");
ReplyToCommand(client, "Custom chat color is disabled.");
}
else if(StrEqual(strCookie, "false"))
{
SetClientCookie(client, c_PlayerEnabled, "true");
ReplyToCommand(client, "Custom chat color is enabled.");
}
else
{
SetClientCookie(client, c_PlayerEnabled, "true");
ReplyToCommand(client, "Custom chat color was not properly set, but is now enabled.");
}
return Plugin_Handled;
}
Users browsing this forum: No registered users and 1 guest