2020-12-27 00:47:08 +01:00
|
|
|
#include "features.hpp"
|
2020-12-27 15:43:45 +01:00
|
|
|
#include "pointers.hpp"
|
2020-12-27 00:47:08 +01:00
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
void features::join_message()
|
|
|
|
{
|
|
|
|
bool bJoinMessage = g_settings.options["join_message"].get<bool>();
|
|
|
|
|
|
|
|
if (bJoinMessage)
|
|
|
|
{
|
|
|
|
for (int i = 0; i < 32; i++) {
|
2020-12-28 01:21:22 +01:00
|
|
|
if (!NETWORK::NETWORK_IS_PLAYER_CONNECTED(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i)) && ENTITY::DOES_ENTITY_EXIST(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i))) {
|
2020-12-27 00:47:08 +01:00
|
|
|
char joinMsg[64];
|
2020-12-27 15:43:45 +01:00
|
|
|
strcpy(joinMsg, "<C>");
|
|
|
|
strcat(joinMsg, g_pointers->m_get_player_name(i));
|
|
|
|
strcat(joinMsg, "</C> is joining.");
|
2020-12-27 00:47:08 +01:00
|
|
|
|
|
|
|
features::notify::above_map(joinMsg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|