Einfach unter onplayercommandtext
if(!strcmp("/admins", cmdtext, true))
{
SendClientMessage(playerid,ROT,"admins die online sind");
new string[128],name[MAX_PLAYER_NAME],var;
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && isPlayerAnAdmin(i,1))
{
GetPlayerName(i,name,sizeof(name));
format(string, sizeof(string), "- Admin %s",name);
SendClientMessage(playerid,ROT,string);
var++;
}
}
if(!var)
SendClientMessage(playerid,ROT,"Kein Admin Online");
return 1;
}
}
return 1;
}