• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux How To Remove Broadcast Death Messege From Sources

tanii

Empire-war.com
Joined
Jan 16, 2015
Messages
383
Solutions
1
Reaction score
12
Hello,

i am using Forgoten Server 0.4 the problem is when the players kill each other the server do broadcast..

12:41 Warning! The murder of Sir Tani was not justified.

I want to know how i can remove this broadcast messege from sources, i checked all scripts manually and non scripts doing broadcast.

thanks.
 
This shouldn't be broadcasted, it should be a message sent locally to you and you only. Perhaps this is what you meant.

From the tfs 0.4 sources I could find from googling, you can change this in

player.cpp -> Player::addUnjustifiedKill(const Player* attacked, bool countNow)

.
.
.
Code:
if(countNow)
{
char buffer[90];
sprintf(buffer, "Warning! The murder of %s was not justified.", attacked->getName().c_str());
sendTextMessage(MSG_EVENT_ADVANCE, buffer);
}
 
This shouldn't be broadcasted, it should be a message sent locally to you and you only. Perhaps this is what you meant.

From the tfs 0.4 sources I could find from googling, you can change this in

player.cpp -> Player::addUnjustifiedKill(const Player* attacked, bool countNow)

.
.
.
Code:
if(countNow)
{
char buffer[90];
sprintf(buffer, "Warning! The murder of %s was not justified.", attacked->getName().c_str());
sendTextMessage(MSG_EVENT_ADVANCE, buffer);
}
thanks bro solved!
 
Back
Top