Help me with MAP :(
#1

Hey,

I want to move that all map on Verona Beach. But its too hard, here is many objects to map.


Can i move that all map to verona beach?

Pls
Reply
#2

PLSSSSSSSSSSSSS
Reply
#3

If you already have your objects in sa-mp you only need to add a offset to all of them to move them together

Example
pawn Код:
// Global
new
  gMapStart,
  gMapEnd
;
// Init
gMapStart = CreateObject(...);
//...
gMapEnd = CreateObject(...);
// Command
ZCMD:movemap(playerid, params[]) {
    new
        Float: oX,
        Float: oY,
        Float: oZ,
        Float: tX,
        Float: tY,
        Float: tZ
    ;
    GetPlayerPos(playerid, tX, tY, tZ);
    GetObjectPos(gMapStart, oX, oY, oZ);

    oX -= tX;
    oY -= tY;
    oZ -= tZ;

    for(playerid = gMapStart; playerid <= gMapEnd; ++playerid) {
        GetObjectPos(playerid, tX, tY, tZ);
        SetObjectPos(playerid, tX - oX, tY - oY, tZ - oZ);
    }
    return true;
}
Well afterwards you need to save the objects again
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)