#include "Death.hpp" #include #include #include #include #include using namespace std; void DeathFunctions::SetDeathPenaltyJailDays(unsigned short pid, int days) noexcept { Player *player; GET_PLAYER(pid, player, ); player->deathPenaltyJailDays = days; } void DeathFunctions::Resurrect(unsigned short pid, unsigned int type) noexcept { Player *player; GET_PLAYER(pid, player, ); player->resurrectType = type; mwmp::Networking::get().getPlayerPacketController()->GetPacket(ID_PLAYER_RESURRECT)->setPlayer(player); mwmp::Networking::get().getPlayerPacketController()->GetPacket(ID_PLAYER_RESURRECT)->Send(false); mwmp::Networking::get().getPlayerPacketController()->GetPacket(ID_PLAYER_RESURRECT)->Send(true); }