void cheat_handle_adminchecker()
{
cheat_state->_generic.adminchecker = 1;
if (cheat_state->_generic.adminchecker == 1)
{
int left=10;
int count=0;
int top = GetSystemMetrics(SM_CYSCREEN) / 2;
float pos[3];
pD3DFont->PrintShadow(left, top, D3DCOLOR_XRGB( 200, 252, 0 ), "Admins Online:");
for(int i = 0; i < SAMP_PLAYER_MAX; i++)
{
for(int x = 0; x < 150; x++)
{
if(getPlayerName(i) == NULL || set.admin[x] == "NULL")
break;
if(!strcmp(getPlayerName(i), set.admin[x]) == 1) count
{
top += 20;
if ( !getPlayerPos(i, pos) )
{
pD3DFont->PrintShadow(left, top, D3DCOLOR_XRGB( 153, 179, 204 ), getPlayerName(i));
}
else
{
pD3DFont->PrintShadow(left, top, D3DCOLOR_XRGB( 0, 255, 0 ), getPlayerName(i));
}
count ++;
}
}
}
if ( count == 0 )
pD3DFont->PrintShadow(left, top+20, D3DCOLOR_XRGB( 153, 179, 204 ), "No admins Online");
}
}