Newbie - Question - Message Displaying


(Panzer III) #1

Hi.
How can i display a message like “Out of Ammo” etc.
I know how to create a Cvar etc. but i don’t know how to display text message :disgust:
:smiley: what I need to do it ? Cg_printf,printf,G_printf,message ??? :???:
Please Help :smiley: Oooah and sorry for my english :smiley:


(Lanz) #2

Depends on from where you want to send it fom, server or client, and where you want the message to appear. CG_CenterPrint, CG_Printf, G_PopupMessage, G_refPrintf, G_Printf, trap_SendServerCommand(ent-g_entities, “cp “Your message here” 1”) are some of the ways to send messages.

More info needed to give you a better anwser.


(Panzer III) #3

Thank’s for help :smiley:

trap_SendServerCommand( self-g_entities, "cp \"^2You have Lost ^1XP!\"");

this is working very well :smiley: