Get the size of playable area, say a plain that is 500 units long and wide.
Choose a size for your minimap, say 100x100px and work out the scale factor.
In this case it would be 1/5.
So, for your minimap you would have your position, dbObjectPositionX(player) & dbObjectPositionZ(player),
and scale them (1/5)
For your minimap you could use sprites, dgdk inbuilt 2d functions, or whatever you like. Here is a small piece of untested code for you to think about.
dbMakeMatrix(1,650,650,20,20); //Map size is 650 x 650
dbSetMatrixWireframeOn(1);
dbMakeObjectSphere(1,10,20,20); //Player
dbBox(10,dbScreenHeight()-110,110,dbScreenHeight()-10); //Minimap 100 x 100
float scaleFactor = 650/100; //Map size/Minimap size
for (int i = 2; i < 20; i++) //Enemies (or Allies)
{
xPos = dbRnd(650);
zPos = dbRnd(650);
dbMakeObjectBox(i,10,10,10);
dbPositionObject(i,xPos,0,zPos);
dbDot(10+(xPos/scaleFactor),dbScreenHeight()-110+(zPos/scaleFactor);
}
//Remember to update the dbDot in the game loop
Hope that helps.