for (int i = 0; i < SAMP_MAX_PLAYERS; i++ )
{
if ( g_Players->iIsListed[i] != 1 )
continue;
if( g_Players->pRemotePlayer[i] == NULL )
continue;
if(vect3_near_zero(g_stStreamedOutInfo.fPlayerPos[i])
&& (g_Players->pRemotePlayer[i]->pPlayerData == NULL ||
g_Players->pRemotePlayer[i]->pPlayerData->pSAMP_Actor == NULL))
continue;
if(g_Players->pRemotePlayer[i]->pPlayerData->pSAMP_Actor->pGTA_Ped->base.model_alt_id != 0)
{
switch (g_Players->pRemotePlayer[i]->pPlayerData->pSAMP_Actor->pGTA_Ped->base.model_alt_id)
{
case 102:
sprintf(text, "%s[%d]", getPlayerName(i), i);
pD3DFont->PrintShadow(1, pPresentParam.BackBufferHeight / 2 + count * 20, color, text);
break;
case 103:
sprintf(text, "%s[%d]", getPlayerName(i), i);
pD3DFont->PrintShadow(1, pPresentParam.BackBufferHeight / 2 + count * 20, color, text);
break;
case 104:
sprintf(text, "%s[%d]", getPlayerName(i), i);
pD3DFont->PrintShadow(1, pPresentParam.BackBufferHeight / 2 + count * 20, color, text);
break;
}
count++;
}
}