0.3d gate bug
#1

hey i have this code for example:

pawn Код:
//agate
    if (strcmp("/agate", cmdtext, true, 10) == 0)
    {
        if(pInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not an Administrator.");
        if(aGateOpened == 0)
        {
            F_MoveObject(agate,-290.24792480469, 1507.5504150391, 76.0495986938, 2.0);
            F_MoveObject(agate2,-314.01354980469, 1507.3190917969, 76.0570373535, 2.0);
            SendClientMessage(playerid, COLOR_GREEN, "Admin Main Gate: Opened.");
            aGateOpened = 1;
        }
        else
        {
            F_MoveObject(agate,-298.23571777344, 1507.4790039063, 76.0495986938, 2.0);
            F_MoveObject(agate2,-306.16729736328, 1507.4191894531, 76.057037353516, 2.0);
            SendClientMessage(playerid, COLOR_RED, "Admin Main Gate: Closed.");
            aGateOpened = 0;
        }
        return 1;
    }
it rotates when i open and close the gates... many people gave me just this
Код:
(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0)
but i just don't understand. can anyone please help me with this... correct my code?
I did update F Streamer
Reply
#2

after the 2.0 from the end you have to add the final rotation of the object.
Reply
#3

Quote:
Originally Posted by irinel1996
Посмотреть сообщение
after the 2.0 from the end you have to add the final rotation of the object.
yes but how, i tried and tried but it gives me warnings and errors... someone please do it for me? they i can look at it and do the rest on my own
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)