bool Player::addUnjustifiedKill(const Player* attacked)
{
if(g_game.getWorldType() == WORLD_TYPE_PVP_ENFORCED || attacked == this || hasFlag(
PlayerFlag_NotGainInFight) || hasCustomFlag(PlayerCustomFlag_NotGainSkull))
return false;
if(client)
{
char buffer[90];
sprintf(buffer, "Warning! The murder of %s was not justified.",
attacked->getName().c_str());
client->sendTextMessage(MSG_STATUS_WARNING, buffer);
}
time_t now = time(NULL), today = (now - [COLOR="Red"]84600[/COLOR]), week = (now - (7 * [COLOR="#ff0000"]84600[/COLOR]));
std::vector<time_t> dateList;
IOLoginData::getInstance()->getUnjustifiedDates(guid, dateList, now);
Za bycie z guardi nie pomozemy
wracaj na non pvp a nie za otsa sie bierzesz :/
A ja mu pomogę...
player.cpp
Code:bool Player::addUnjustifiedKill(const Player* attacked) { if(g_game.getWorldType() == WORLD_TYPE_PVP_ENFORCED || attacked == this || hasFlag( PlayerFlag_NotGainInFight) || hasCustomFlag(PlayerCustomFlag_NotGainSkull)) return false; if(client) { char buffer[90]; sprintf(buffer, "Warning! The murder of %s was not justified.", attacked->getName().c_str()); client->sendTextMessage(MSG_STATUS_WARNING, buffer); } time_t now = time(NULL), today = (now - [COLOR="Red"]84600[/COLOR]), week = (now - (7 * [COLOR="#ff0000"]84600[/COLOR])); std::vector<time_t> dateList; IOLoginData::getInstance()->getUnjustifiedDates(guid, dateList, now);
84600-24h
Listy ignorowanych XD
A ja mu pomogę...
player.cpp
84600-24hCode:bool Player::addUnjustifiedKill(const Player* attacked) { if(g_game.getWorldType() == WORLD_TYPE_PVP_ENFORCED || attacked == this || hasFlag( PlayerFlag_NotGainInFight) || hasCustomFlag(PlayerCustomFlag_NotGainSkull)) return false; if(client) { char buffer[90]; sprintf(buffer, "Warning! The murder of %s was not justified.", attacked->getName().c_str()); client->sendTextMessage(MSG_STATUS_WARNING, buffer); } time_t now = time(NULL), today = (now - [COLOR=Red]84600[/COLOR]), week = (now - (7 * [COLOR=#ff0000]84600[/COLOR])); std::vector<time_t> dateList; IOLoginData::getInstance()->getUnjustifiedDates(guid, dateList, now);
skąd wiesz na jakim serwerze grałem ?