SA-MP Forums Archive
How can I make that gate ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How can I make that gate ? (/showthread.php?tid=441917)



How can I make that gate ? - yaron0600 - 04.06.2013

How can I make that gate will move good and on speed 4 and with the same rotations of the start created object :

ciagate = CreateDynamicObject(980, 1355.8223, -1486.3730, 15.1283, 0.3000, 1.6200, 60.8400);

Код:
CMD:ciagate(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    if(CIAGateStatus == 0) {
    MoveDynamicObject(cia_gate, 1355.8223, -1486.3730, 8.1283, 2);
    CIAGateStatus = 1;
    }
    else {
    MoveDynamicObject(cia_gate, 1355.8223, -1486.3730, 15.1283, 2);
    CIAGateStatus = 0;
    }
    return 1;
}



Re: How can I make that gate ? - park4bmx - 04.06.2013

MoveDynamicObject has parameters for rotating the object allready!
Код:
MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed, Float:rx = -1000.0, Float:ry = -1000.0, Float:rz = -1000.0);