[SOLVED] /admins problem - writes about 10-15 lines
#10

Quote:
Originally Posted by MenaceX^
pawn Код:
if(!strcmp(cmd,"/admins",true))
{ // forgot to add something
  for(new i=0;i<MAX_PLAYERS;i++)
  {
    if(IsPlayerConnected(i)&&PlayerInfo[i][pAdmin])
    {
      switch(PlayerInfo[i][pAdmin])
      {
        case 1: format(string,sizeof(string),"Server Moderator");
        case 2: format(string,sizeof(string),"Roleplay Administrator");
        case 3: format(string,sizeof(string),"Game Administrator");
        case 4: format(string,sizeof(string),"Senior Game Admin");
        case 5: format(string,sizeof(string),"RP/Forum Supervisor");
        case 6: format(string,sizeof(string),"Admin Supervisor");
        case 1337: format(string,sizeof(string),"Server Supervisor");
        case 1338: format(string,sizeof(string),"Server Owner");
        default: format(string,sizeof(string),"Server Moderator");
      }
      format(string,sizeof(string),"%s %s(ID:%d)",string,name(i),i); // just change name to what ever you use as name variable.
      SendClientMessage(playerid,COLOR_GREY,string);
    }
  }
  return 1;
}
One more question -
GetPlayerNameEx = my name function to remove _ between names?
I'm using Carlito's RolePlay Script... I dunno if the function is yours or not.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 10 Guest(s)