• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Players.cpp

Saint Spear

Veteran OT User
Joined
Jun 22, 2016
Messages
1,547
Solutions
18
Reaction score
379
Where i can find players.cpp in my data or ( source ) or i just need to download them and copy-paste in my data of tfs 0.3.6 , Thanks ! :D
 
You need to download the correct sources for your TFS version.

What are you going to edit?

You need to compile sources for them to take effect which means you'll get a new executeable file.
 
You need to download the correct sources for your TFS version.

What are you going to edit?

You need to compile sources for them to take effect which means you'll get a new executeable file.
well i searched for an stuff like when someone die cuz im making war ot and if someone die will be like [name] Own3d [name]
and he give me this and says to put in players.cpp
void Player::addUnjustifiedDead(const Player* attacked)
{
if (hasFlag(PlayerFlag_NotGainInFight) || attacked == this || g_game.getWorldType() == WORLD_TYPE_PVP_ENFORCED) {
return;
}

sendTextMessage(MESSAGE_EVENT_ADVANCE, "Warning! The murder of " + attacked->getName() + " was not justified.");

skullTicks += g_config.getNumber(ConfigManager::FRAG_TIME);

if (getSkull() != SKULL_BLACK) {
if (g_config.getNumber(ConfigManager::KILLS_TO_BLACK) != 0 && skullTicks > (g_config.getNumber(ConfigManager::KILLS_TO_BLACK) - 1) * static_cast<int64_t>(g_config.getNumber(ConfigManager::FRAG_TIME))) {
setSkull(SKULL_BLACK);
} else if (getSkull() != SKULL_RED && g_config.getNumber(ConfigManager::KILLS_TO_RED) != 0 && skullTicks > (g_config.getNumber(ConfigManager::KILLS_TO_RED) - 1) * static_cast<int64_t>(g_config.getNumber(ConfigManager::FRAG_TIME))) {
setSkull(SKULL_RED);
}
}
}

put
Code:
sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You OWN3D " + attacked->getName());






Thanks for answer ! :D
 
you don't just throw them in your server folder, like halfaway said you have to compile for it to take effect
 
Back
Top