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;
}