PDA

View Full Version : Print an Hud message on a listenserver


Cr3V3TT3
12-30-2004, 15:18
This code is for printing hud message right?

KeyValues *kv = new KeyValues( "msg" );
kv->SetString( "title", "Hello" );
kv->SetString( "msg", "Hello there" );
kv->SetColor( "color", Color( 255, 0, 0, 255 ));
kv->SetInt( "level", 5);
kv->SetInt( "time", 10);
helpers->CreateMessage( pEntity, DIALOG_MSG, kv, this );
kv->deleteThis();

What pEntity i have to give when i want to print the message on the server ? (on a listenserver) ? :s

Or do you got another code to draw hud message?

++ and good new year.