- else if(strcmp(command, "gmlist")==0) /* GM List {By CrAshInSiDe} */
- {
- if(Config.Command_GmList > thisclient->Session->accesslevel)
- return true;
- SendPM(thisclient, "Currently connected GMs:");
- int count=1;
- int nb_gms=0;
- int hiddenam=0;
- char line0[200];
- while(count <= (ClientList.size()-1))
- {
- char line1[200];
- CPlayer* whoclient = (CPlayer*)ClientList.at(count)->player;
- if(whoclient->Session->accesslevel > 100)
- {
- sprintf(line1, "%s - GM[%i]", whoclient->CharInfo->charname, whoclient->Session->accesslevel);
- if(whoclient->isInvisibleMode2 != true)
- {
- SendPM(thisclient, line1 );
- nb_gms++;
- }
- else
- {
- hiddenam++;
- }
- }
- count++;
- }
- sprintf(line0, "There are currently %i GM connected!",nb_gms);
- Log( MSG_GMACTION, " %s : /gmlist" , thisclient->CharInfo->charname);
- SendPM(thisclient, line0 );
- return true;
- }
sorry to revive this thread but question
/gmlist
PMs you a list of online GMs
Ex: /gmlist
Note: I think any player can use this and not just GMs
is it possible that this command will only show ACCESS CODE that are 150 below and 160 and above are still hidden ?