Is there a way to increase the draw distance of the nametags?
struct stOutStream OutStream[SAMP_MAX_PLAYERS];
struct stOutStream
{
float pos[3];
};
if (ReceivedPacketID == ID_MARKERS_SYNC)
{
BitStream bsMarkerSync(ReceivedPacket->data, ReceivedPacket->length, false);
int iNumberOfPlayers = 0;
USHORT playerID = USHORT(-1);
short sPosX, sPosY, sPosZ;
bool bIsPlayerActive = false;
bsMarkerSync.IgnoreBits(8);
bsMarkerSync.Read(iNumberOfPlayers);
if (iNumberOfPlayers < 0 || iNumberOfPlayers > SAMP_MAX_PLAYERS)
return ReceivedPacket;
for (int i = 0; i < iNumberOfPlayers; i++)
{
bsMarkerSync.Read(playerID);
bsMarkerSync.ReadCompressed(bIsPlayerActive);
if (!bIsPlayerActive)
continue;
bsMarkerSync.Read(sPosX);
bsMarkerSync.Read(sPosY);
bsMarkerSync.Read(sPosZ);
if (isBadSAMPPlayerID(playerID))
continue;
g_stStreamedOutInfo.iPlayerID[playerID] = playerID;
g_stStreamedOutInfo.fPlayerPos[playerID][0] = (float)sPosX;
g_stStreamedOutInfo.fPlayerPos[playerID][1] = (float)sPosY;
g_stStreamedOutInfo.fPlayerPos[playerID][2] = (float)sPosZ;
OutStream[playerID].pos[0] = sPosX;
OutStream[playerID].pos[1] = sPosY;
OutStream[playerID].pos[2] = sPosZ;
}
}