Thread: HUD messages.
View Single Post
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 04-18-2009 , 15:30   Re: HUD messages.
Reply With Quote #2

Screenshot of below code in action

PHP Code:
#pragma semicolon 1

#include <sourcemod>

public OnPluginStart()
{
    
RegConsoleCmd("test"asdf);
}

public 
Action:asdf(clientargs)
{
    new 
Handle:hHudText CreateHudSynchronizer();
    
SetHudTextParams(-1.00.25.025500255);
    
ShowSyncHudText(clienthHudText"This is a test");
    
CloseHandle(hHudText);

    return 
Plugin_Handled;

If you use SetHudTextParamsEx, you can fade the text from one color to another.

Last edited by bl4nk; 04-18-2009 at 15:34.
bl4nk is offline