Screenshot of below code in action
PHP Code:
#pragma semicolon 1
#include <sourcemod>
public OnPluginStart()
{
RegConsoleCmd("test", asdf);
}
public Action:asdf(client, args)
{
new Handle:hHudText = CreateHudSynchronizer();
SetHudTextParams(-1.0, 0.2, 5.0, 255, 0, 0, 255);
ShowSyncHudText(client, hHudText, "This is a test");
CloseHandle(hHudText);
return Plugin_Handled;
}
If you use SetHudTextParamsEx, you can fade the text from one color to another.