CreateDynamic3DTextLabel help
#1

Does anyone know in any way the internal function of the SetPlayerMarkerForPlayer?

I have the names of the players on my server created using CreateDynamic3DTextLabel, but my server is by teams and I require that only those from the same team can see their names among them.

I already tried using UpdateDynamic3DTextLabelText, but it did not work.

The problem is that when making the comparison of if they are not from the same computer, the name ends up becoming invisible to both users because they are from different computers, but it is also erased before those from the same computer.

I could use the SetPlayerMarkerForPlayer function and use the game nametags, but I need to do it this way, any ideas?

Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));

foreach(new i : Player)
{

if(gTeam[i] == gTeam[playerid])
{
UpdateDynamic3DTextLabelText(nametag[i], 0xFF0000FF, name);
}
else
{
UpdateDynamic3DTextLabelText(nametag[i], 0xFFFFFF00, name);
}

}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)