23.12.2013, 09:11
pawn Code:
COMMAND:admins(playerid, params[])
{
new AStr[240],FStr[240],CounT=0;
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && pInfo[i][pAdmin] >= 1)
{
new name[MAX_PLAYER_NAME];CounT++;
GetPlayerName(i, name, sizeof(name));
format(AStr, sizeof(AStr), "%s(%d)\n",name,i);
strcat(FStr, AStr, sizeof(FStr));
}
}
if(CounT>0){
SendClientMessage(playerid,0x9BBDDEAA,"Present Staff Members:");
SendClientMessage(playerid,0x9BBDDEAA,FStr);
}else SendClientMessage(playerid,0x9BBDDEAA,"No Admins online");
return 1;
}