someone can put here an exmple for this new hud
i have this
Code:
stock void hud_message(int client, char[] channel, char[] color, char[] color2, char[] effect, char[] fadein, char[] fadeout, char[] fxtime, char[] holdtime, char[] message, char[] spawnflags, char[] x, char[] y)
{
int ent = CreateEntityByName("game_text");
DispatchKeyValue(ent, "channel", channel);
DispatchKeyValue(ent, "color", color);
DispatchKeyValue(ent, "color2", color2);
DispatchKeyValue(ent, "effect", effect);
DispatchKeyValue(ent, "fadein", fadein);
DispatchKeyValue(ent, "fadeout", fadeout);
DispatchKeyValue(ent, "fxtime", fxtime);
DispatchKeyValue(ent, "holdtime", holdtime);
DispatchKeyValue(ent, "message", message);
DispatchKeyValue(ent, "spawnflags", spawnflags);//1
DispatchKeyValue(ent, "x", x);
DispatchKeyValue(ent, "y", y);
DispatchSpawn(ent);
SetVariantString("!activator");
AcceptEntityInput(ent, "display", client);
}
but now if i want to print a message i need to do
hud_message(client, "test");
??
and if i want to change color or something someone can help me please ty :-)