You should be using
strcat instead of
format in the following line inside the loop.
PHP код:
format( string, 128, "%s (ID:%d) Level: [%d] (%s)\n\nTotal ZoneX admins %d", GetName( i ), i , pData[i][Admin] , admtext, count);
What is happening right now is that, every iteration of the loop you are 'resetting' the string and writing a new thing on its place, instead of adding it which is what you want to do.
This is the function you should use:
https://sampwiki.blast.hk/wiki/Strcat
Also, you should erase the
ShowPlayerDialog function from the loop, for logical reasons.
As an extra, allow me to warn you that the following is totally pointless:
PHP код:
format( stringz , 128,"Online Admins");
..
format( stringz , 128 ,"No Admins Online ");
As you can just write that up in the
ShowPlayerDialog function itself.