Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Bug Admin

$
0
0
Hello that command is not working if there is 2 admins in server it only show 1 admin

PHP Code:

CMD:admins(playeridparams[])
{
    new 
count;
    new 
admtext[128];
    new 
string[128],stringz[128];
    for( new 
0MAX_PLAYERSi++ )
    {
        if ( 
IsPlayerConnected) )
        {
            if( 
pData[i][Admin] >= )
            {
                switch( 
pData[i][Admin] )
                {
                    case 
10admtext "Server Owner";
                    case 
9admtext "Management";
                    case 
8admtext "Zx Special Admin";
                    case 
7admtext "Head admin";
                    case 
6admtext "Lead admin";
                    case 
5admtext "Ubber admin";
                    case 
4admtext "Admin";
                    case 
3admtext "Admin";
                    case 
2admtext "Admin";
                    case 
1admtext "Admin";
                }
                
count++;
                
formatstringz 128,"Online Admins");
                
formatstring128"%s (ID:%d) Level: [%d] (%s)\n\nTotal ZoneX admins %d"GetName), pData[i][Admin] , admtextcount);
                
ShowPlayerDialogplayerid 190 DIALOG_STYLE_MSGBOX stringz string"Ok" "Close" );
            }
        }
        if (
count == 0)
        {
            
formatstringz 128 ,"No Admins Online ");
            
formatstring 128 ,"Currently NO admin online\nAdmins Watching from IRC\nand Admins Eyes always on you" );
            
ShowPlayerDialogplayerid,191,DIALOG_STYLE_MSGBOX stringz string "Ok" "Close" );
        }
        if(
count >= 0)
        {
            
ShowPlayerDialogplayerid 190 DIALOG_STYLE_MSGBOX stringz string"Ok" "Close" );
        }
    }
    return 
1;



Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>