Move Object Problem (++rep)
#1

Hello scripterzzzz..I got problem with move object i put new toll system with ramp and ramp not going up and down but i have moveobject function and i make lift for police department and he going up left full but i set him to go only up he go left and up :/ any to help me please ??

toll:

pawn Код:
MoveObject(lssfpatarinakonsf, 53.5000000,-1528.6459961,4.8239999+0.0001, 0.0001, 0.0000000,90.0000000,79.6999512);
        SetTimer("konsf", 5000, 0);
        GetPlayerName(playerid, sendername, sizeof(sendername));
        SendClientMessage(playerid,COLOR_LIGHTBLUE,"{00C0FF}[INFO]{FFFFFF} Gi predadovte patnite ispravi, pocekajte...");
        format(string, sizeof(string), "%s gi vadi patnite ispravi i gi predava na salter.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    else if(PlayerToPoint(3, playerid,50.9224,-1538.2712,5.1425))
    {
        MoveObject(lssfpatarinakonls, 51.4059982,-1541.7299805,4.8239999+0.0001, 0.0001, 0.0000000,90.0000000,81.7000122);
        SetTimer("konls", 5000, 0);
        GetPlayerName(playerid, sendername, sizeof(sendername));
        SendClientMessage(playerid,COLOR_LIGHTBLUE,"{00C0FF}[INFO]{FFFFFF} Gi predadovte patnite ispravi, pocekajte...");
        format(string, sizeof(string), "%s gi vadi patnite ispravi i gi predava na salter.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
pawn Код:
public konls()
{
    MoveObject(lssfpatarinakonls, 51.4059982,-1541.7299805,4.8239999-0.0001, 0.0001, 0.0000000,90.0000000,79.6999512);
    return 1;
}
public konsf()
{
    MoveObject(lssfpatarinakonsf, 53.5000000,-1528.6459961,4.8239999-0.0001, 0.0001, 0.0000000,90.0000000,81.7000122);
    return 1;
}
pawn Код:
lssfpatarinakonsf = CreateObject(968,53.5000000,-1528.6459961,4.8239999,0.0000000,90.0000000,79.6999512,50000.0); //object(barrierturn) (1)
    lssfpatarinakonls = CreateObject(968,51.4059982,-1541.7299805,4.8239999,0.0000000,90.0000000,81.7000122,50000.0); //object(barrierturn) (2)
lift:

pawn Код:
pdlift = CreateObject(18755,1559.1820068,-1660.5279541,-25.0529995,0.0000000,0.0000000,0.0000000,50000.0); //object(vcelevator1) (1)
pawn Код:
if(strcmp(cmdtext, "/lift", true) == 0)
    {
        if(!OtvorenaPD[2])
        {
            if(PlayerToPoint(4,playerid,1556.1907,-1660.6644,-26.0031) || PlayerToPoint(4,playerid,1556.5242,-1660.6708,-22.4781))
            {
                MoveObject(pdlift, 1549.7810059,-1667.6629639,-23.4780006,2.0000000,0.0000000,0.0000000);
                SendClientMessage(playerid, COLOR_WHITE, "{C3D900}Go povikavte liftot");
                OtvorenaPD[2] = true;
            }
        }
        else if(OtvorenaPD[2])
        {
            if(PlayerToPoint(4,playerid,1556.5242,-1660.6708,-22.4781) || PlayerToPoint(4,playerid,1556.1907,-1660.6644,-26.0031))
            {
                MoveObject(pdlift, 1559.1820068,-1660.5290527,-21.5529995,2.0000000,0.0000000,0.0000000);
                SendClientMessage(playerid, COLOR_WHITE, "{C3D900}Go povikavte liftot");
                OtvorenaPD[2] = false;
            }
        }
    }
Reply
#2

help please ? 2 days bump
Reply
#3

I don't really understand your problem, you made a toll system with a gate and the gate is opening for the police but it's not closing at all?

Best regards,
Jesse
Reply
#4

no toll system is ramps not going up.LSPD gate is not opening and lift was going up and left
Reply
#5

lift

pawn Код:
pdlift = CreateObject(18755,1559.1820068,-1660.5279541,-25.0529995,0.0000000,0.0000000,0.0000000,50000.0); //object(vcelevator1) (1)

//if you want to move object only up or down then modify only Z position not others!

MoveObject(pdlift, 1559.1820068,-1660.5279541,-23.4780006,2.0);

MoveObject(pdlift, 1559.1820068,-1660.5290527,-25.5529995,2.0);

//modify your Z pos... idk how much you need
Reply
#6

ok i will test it later but can you help me with doors and toll ??
Reply
#7

@Matess i repped to you thanks you lift is working now ... thanks you..How can help me about toll system please ? btw i fixed and police doors.I need to fix only toll please tell me :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)