// // Created by koncord on 29.04.16. // #include #include #include void ScriptFunctions::sendMessage(unsigned short pid, const char *message, bool broadcast) noexcept { Player *player; GET_PLAYER(pid, player,); *player->ChatMessage() = message; DEBUG_PRINTF("System: %s", message); mwmp::Networking::get().getPlayerController()->GetPacket(ID_CHAT_MESSAGE)->Send(player, false); if (broadcast) mwmp::Networking::get().getPlayerController()->GetPacket(ID_CHAT_MESSAGE)->Send(player, true); } void ScriptFunctions::cleanChat(unsigned short pid) { } void ScriptFunctions::cleanChat() { }