PDA

View Full Version : How do you change the prefix message?


P4rD0nM3
05-11-2007, 22:01
It says [GunGame] everytime and I want to change it to "*** #PGN GunGame : "

I already change every single [GunGame] word that I can find in the gungame.sma and recompiled it and restarted the server but it didn't do nothing.

YamiKaitou
05-12-2007, 12:59
In the data/lang/gungame.txt file, fine "GUNGAME = GunGame", change it to what you want

P4rD0nM3
05-12-2007, 14:37
Oh wow...I never actually looked at that one. What about the '[' & ']'...? Is taht going to be removed too?

Is it this part?

// ...gungame_print...

// now do our formatting (I used two variables because sharing one caused glitches)

if(custom == -1) formatex(message,190,"^x04[%L]^x01 %s",players[i],"GUNGAME",newMsg);
else formatex(message,190,"^x01%s",newMsg);

The "^x04[%L]^x01" part? Or no?

MrXtramean
05-13-2007, 14:00
I tried this also in the gungame.txt and I didn't have much luck yet. Hope you do and then post it here. yup yup !!!

YamiKaitou
05-14-2007, 00:21
You would have to change the actual code than. In [%L], the %L is being replaced by the lang entry of GUNGAME. So, if GUNGAME is set to Gungame in the lang file, it will print [Gungame]. So to remove the [ ], you would need to change every instance of [%L] to %L

P4rD0nM3
07-10-2008, 19:20
Bumping my old threads since I've updated my Gun Game servers to 2.11, and I tried to do the following changes again, but it doesn't work.

// now do our formatting (I used two variables because sharing one caused glitches)

//if(tag) formatex(message,190,"^x04[%L]^x01 %s",player,"GUNGAME",newMsg);
if(tag) formatex(message,190,"%s",player,newMsg);
else formatex(message,190,"^x01%s",newMsg);

I like to remove the whole "[GUNGAME]" prefix on all the messages.

XxAvalanchexX
07-11-2008, 13:11
Replace these two lines:

if(tag) formatex(message,190,"^x04[%L]^x01 %s",player,"GUNGAME",newMsg);
else formatex(message,190,"^x01%s",newMsg);

With this:

formatex(message,190,"^x01%s",newMsg);

You might get a warning about "tag" not being used, but that's okay.

P4rD0nM3
07-11-2008, 14:00
Thanks, it did the trick, much love Avalanche!