Admins OnDuty.OffDuty
#2

AdminDuty(i) change it to your compatiable check.

pawn Код:
if( !strcmp( cmd, "/admins", true ) )
                    {
                        new a_string[ 128 ],b_string[ 1000 ],pLevelName[64];
                        new count;
                        for( new i; i < MAX_PLAYERS; i++ )
                        {
                            if( !IsPlayerConnected( i ) )
                            continue;
                               if(PlayerInfo[i][pAdmin] >= 1) //&& PlayerInfo[i][pAdmin] <= 1338)
                            {
                                count++;
                                GetPlayerName( i, sendername, 24 );
                                switch(PlayerInfo[ i ][ pAdmin ])
                                {
                                    case 1: { pLevelName = " Trial Moderator "; }
                                    case 2: { pLevelName = " Super Admin "; }
                                    case 3: { pLevelName = " Moderator "; }
                                    case 4: { pLevelName = " Global Moderator  "; }
                                    case 1337: { pLevelName = " Administrator  "; }
                                    case 1338: { pLevelName = " Co-Owner  "; }
                                    case 1339: { pLevelName = " Owner  "; }
                                    default: { pLevelName = " Admin"; }
                                }
                                if(AdminDuty(i))
                                {
                                  format( a_string, 128, "(DUTY) <%s> %s id:%d\n", pLevelName, sendername, i);
                                }
                                else
                                {
                                   format( a_string, 128, "<%s> %s id:%d\n", pLevelName, sendername, i);
                                }
                                strcat(b_string, a_string);
                            }
                            if(count == 0) ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{278227}Admins Online", "{E60000}Nu Sunt Admini Online","Inchide","");
                        }
                        ShowPlayerDialog( playerid, 1, DIALOG_STYLE_MSGBOX, "{278227}Admins Online", b_string, "Inchide", "" );
                        return 1;
                    }
Reply


Messages In This Thread
Admins OnDuty.OffDuty - by Akcent_Voltaj - 07.05.2013, 09:58
Re: Admins OnDuty.OffDuty - by PaulDinam - 07.05.2013, 10:17
Re: Admins OnDuty.OffDuty - by Akcent_Voltaj - 07.05.2013, 16:13
Re: Admins OnDuty.OffDuty - by Akcent_Voltaj - 07.05.2013, 21:17
Respuesta: Admins OnDuty.OffDuty - by LoLeRo - 07.05.2013, 21:28
Re: Admins OnDuty.OffDuty - by Red_Dragon. - 07.05.2013, 22:03
Respuesta: Admins OnDuty.OffDuty - by LoLeRo - 07.05.2013, 22:28
Re: Admins OnDuty.OffDuty - by Akcent_Voltaj - 08.05.2013, 11:10
Re: Admins OnDuty.OffDuty - by Jstylezzz - 08.05.2013, 11:41

Forum Jump:


Users browsing this thread: 2 Guest(s)