Raised This Month: $ Target: $400
 0% 

HUD messages.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 04-18-2009 , 15:30   Re: HUD messages.
Reply With Quote #1

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
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode