fix(JoinMessage): Highlight player name properly and switched used functions
This commit is contained in:
parent
65716f2049
commit
b7148b5a76
@ -1,4 +1,5 @@
|
|||||||
#include "features.hpp"
|
#include "features.hpp"
|
||||||
|
#include "pointers.hpp"
|
||||||
|
|
||||||
namespace big
|
namespace big
|
||||||
{
|
{
|
||||||
@ -9,10 +10,11 @@ namespace big
|
|||||||
if (bJoinMessage)
|
if (bJoinMessage)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 32; i++) {
|
for (int i = 0; i < 32; i++) {
|
||||||
if (!g_players[i].is_online && ENTITY::DOES_ENTITY_EXIST(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i))) {
|
if (!NETWORK::NETWORK_IS_PLAYER_CONNECTED(i) && ENTITY::DOES_ENTITY_EXIST(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i))) {
|
||||||
char joinMsg[64];
|
char joinMsg[64];
|
||||||
strcpy(joinMsg, g_players[i].name);
|
strcpy(joinMsg, "<C>");
|
||||||
strcat(joinMsg, "is joining");
|
strcat(joinMsg, g_pointers->m_get_player_name(i));
|
||||||
|
strcat(joinMsg, "</C> is joining.");
|
||||||
|
|
||||||
features::notify::above_map(joinMsg);
|
features::notify::above_map(joinMsg);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user