2 new problems
#4

Admin command:
pawn Код:
CMD:admins(playerid, params[]) //credits to lamarr
{
    new string[ 900 ];
    new fstring[ 900 ];
    new adutyrank[ 50 ];
    for( new slots = GetMaxPlayers( ), i; i < slots; i++ )
    {
        if ( !IsPlayerConnected( i ) ) continue;
        switch( PlayerInfo[ i ][ Admin ] )
        {
             case 1: AdminRank = "Moderator";
             case 2: AdminRank = "Global Moderator";
             case 3: AdminRank = "Administrator";
             case 4: AdminRank = "Operator";
             case 5: AdminRank = "Head Administrator";
             case 6: AdminRank = "Mapper";
             case 7: AdminRank = "Scripter";
             case 8: AdminRank = "Head Scripter";
             case 9: AdminRank = "Co-Owner";
             case 10: AdminRank = "Server-Owner";
        }
        switch( IsAdminInDuty[ i ] )
        {
             case 0: adutyrank = ""red"Playing!";
             case 1: adutyrank = ""green"On Duty!";
        }
        if( PlayerInfo[ i ][ Admin ] > 0 )
        {
            new pname[ MAX_PLAYER_NAME ];
            GetPlayerName( i, pname, MAX_PLAYER_NAME );
            format( fstring, 900,""white"%s (ID:%i) - "red"Level: "white"%i | %s | %s"white"\n", pname, i, PlayerInfo[ i ][ Admin ], AdminRank, adutyrank );
            strcat( string, fstring, 900 );
        }
    }
    ShowPlayerDialog( playerid, 2563, DIALOG_STYLE_MSGBOX, "Administrator Online", string, "OK", "" );
    return 1;
}
Reply


Messages In This Thread
2 new problems - by L0zaix - 18.02.2012, 12:46
Re: 2 new problems - by deltapro - 18.02.2012, 15:47
Re: 2 new problems - by Twisted_Insane - 18.02.2012, 15:52
Re: 2 new problems - by aRoach - 18.02.2012, 15:54
Re: 2 new problems - by L0zaix - 19.02.2012, 00:07
Re: 2 new problems - by L0zaix - 19.02.2012, 02:34
Re: 2 new problems - by JhnzRep - 19.02.2012, 04:32
Re: 2 new problems - by emokidx - 19.02.2012, 04:41
Re: 2 new problems - by L0zaix - 19.02.2012, 04:55
Re: 2 new problems - by JhnzRep - 19.02.2012, 05:27

Forum Jump:


Users browsing this thread: 1 Guest(s)