PDA

View Full Version : Turn Off Hud Message


P4rD0nM3
04-28-2007, 05:34
Hey, is there a way to turn off the HUD message? Or like any HUD message coming from Gun Game? I just want it displayed as a colourful chat message. And not a HUD message. Thanks.

Guenhwyvar
04-28-2007, 11:07
Did ya tried to set gg_join_msg to 0?

P4rD0nM3
04-28-2007, 16:45
Uhm, yeah I'm not talking about that. I'm talking about the thing where it says how many kills you need and stuff...Like in the lower center of your screen.

XxAvalanchexX
04-28-2007, 20:29
There is no easy way. You'd have to edit the source and recompile.

P4rD0nM3
04-29-2007, 17:12
That's ok...can you tell me the line?

XxAvalanchexX
04-29-2007, 17:20
I'd go to the gungame_hudmessage function on line 4542 (in Notepad, hit CTRL+G), and change it to this:

// show a HUD message to a user
gungame_hudmessage(id,Float:holdTime,msg[],{Float,Sql,Result,_}:...)
{
// user formatting
static newMsg[191];
vformat(newMsg,190,msg,4);

// show it
gungame_print(id,-1,newMsg);
}

You might get a warning like "Symbol holdTime is never used," and that's fine. Note that this won't replace the warmup timer HUD message.

P4rD0nM3
05-03-2007, 21:43
Ok I'll edit it when I have the time and get back to post here when it works on my server. Thanks mate.

P4rD0nM3
07-10-2008, 19:18
Hey. I've updated all my Gun Game servers to 2.11 now and I was wondering if this still works?

I changed it to...

// show a HUD message to a user
public gungame_hudmessage(id,Float:holdTime,msg[],{Float,Sql,Result,_}:...)
{
// user formatting
static newMsg[191];
vformat(newMsg,190,msg,4);

// show it
//set_hudmessage(255,255,255,-1.0,0.8,0,6.0,holdTime,0.1,0.5);
//return ShowSyncHudMsg(id,hudSyncReqKills,newMsg);
gungame_print(id,-1,newMsg);
}

XxAvalanchexX
07-11-2008, 13:07
Use this:

// show a HUD message to a user
gungame_hudmessage(id,Float:holdTime,msg[],any:...)
{
// user formatting
static newMsg[191];
vformat(newMsg,190,msg,4);

// show it
return gungame_print(id,0,1,newMsg);
}

That will display them with the [GunGame] message tag. If you want to get rid of that, change the 1 in gungame_print to a 0. EDIT: [[ I just saw your other post. If you change what I said in the other post, it won't matter if you use a 1 or 0. ]]

You'll probably get a warning or two about unused variables, but that's fine.