Lording
Well-Known Member
- Joined
- Jan 9, 2008
- Messages
- 802
- Reaction score
- 80
I need it a programmer that know how to fix or create a new frag system in sources and/or compile it on Linux. name here your price.
because frags only dissapear when I'm offline and not online too
Or anyone see a problem here?
because frags only dissapear when I'm offline and not online too
Or anyone see a problem here?
bool Commands:layerKills(Creature* creature, const std::string& cmd, const std::string& param)
{
if (Player* player = creature->getPlayer()) {
int32_t fragTime = g_config.getNumber(ConfigManager::FRAG_TIME);
if (player->redSkullTicks && fragTime > 0) {
int32_t frags = (player->redSkullTicks / fragTime) + 1;
int32_t remainingTime = player->redSkullTicks - (fragTime * (frags - 1));
int32_t hours = ((remainingTime / 1000) / 60) / 60;
int32_t minutes = ((remainingTime / 1000) / 60) - (hours * 60);
char buffer[175];
sprintf(buffer, "You have %d unjustified kill%s. The amount of unjustified kills will decrease after: %s.", frags, (frags > 1 ? "s" : ""), formatTime(hours, minutes).c_str());
player->sendTextMessage(MSG_STATUS_CONSOLE_BLUE, buffer);
}
else {
player->sendTextMessage(MSG_STATUS_CONSOLE_BLUE, "You do not have any unjustified kill.");
}
}
return false;
}