Jump to content

Starting Place


Recommended Posts

Posted

Greetings! I tried to modify database to start GM:s that have gmlvl 3 or 2 to GM island, but they said that I have to do it by source, so can someone "point" me the way? I serched something, but didn't find anything very related. Thanks! :)

Posted

In Player.cpp at Player::Create where it says:

SetMapId(info->mapId);

Relocate(info->positionX,info->positionY,info->positionZ);

Add something like:

        if(GetSession()->GetSecurity() > 1)
       {
               SetMapId(1);
               Relocate(x,y,z);
       }
       else
       {
               SetMapId(info->mapId);
               Relocate(info->positionX,info->positionY,info->positionZ);
       }

but replace x,y and z with the coordinates and also the correct map ID.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use