- In gmcmds.cpp find
- Log( MSG_GMACTION, " %s : /tele %i,%i,%i" , thisclient->CharInfo->charname, map, x, y);
- return pakGMTele(thisclient, map, x, y);
- }
- After Add
- /* GM List {By CrAshInSiDe} */
- else if(strcmp(command, "gmlist")==0)
- {
- if(Config.Command_GmList > thisclient->Session->accesslevel)
- return true;
- SendPM(thisclient, "The currently GM connected is:");
- int count=1;
- int hiddenam=0;
- char line0[200];
- while(count <= (ClientList.size()-1))
- {
- CPlayer* whoclient = (CPlayer*)ClientList.at(count)->player;
- if(whoclient->Session->accesslevel > 100)
- {
- sprintf(line0, "%s - GM[%i]", whoclient->CharInfo->charname, whoclient->Session->accesslevel);
- }
- if(whoclient->isInvisibleMode != true)
- {
- SendPM(thisclient, line0 );
- }
- else
- {
- hiddenam++;
- }
- count++;
- }
- sprintf(line0, "There are currently %i GM connected!", ((ClientList.size()-1)-hiddenam));
- Log( MSG_GMACTION, " %s : /gmlist" , thisclient->CharInfo->charname);
- SendPM(thisclient, line0 );
- return true;
- }
- In sockets.h find
- int Command_Go;
- int Command_Who;
- int Command_Who2;
- After add
- int Command_GmList;
- In worldserver.cpp find
- Config.Command_IQuest = ConfigGetInt ( "commands.ini", "iquest", 299 );
- Config.Command_Item = ConfigGetInt ( "commands.ini", "item", 299 );
- After Add
- Config.Command_GmList = ConfigGetInt ( "commands.ini", "gmlist", 299 );
- In commands.ini find
- Give2=299
- GiveFairy=299
- GiveZuly=299
- [u]After Add
- GmList=99
This command show all GM online
Tested and work