MoveObject( Heelp
#1

This is to open the barrier at LSPD but when i open it ingame nothing happens Please help!
I'm using this code:

pawn Код:
if(newkeys & KEY_CROUCH && !(oldkeys & KEY_CROUCH)) //horn
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            if(PlayerToPoint(15.0,playerid,1544.3,-1627.3,13.3))  //near barrier
            {
                if(IsACop(playerid) || PlayerInfo[playerid][pAdmin] & ADMIN_ACCESS)
                {
                    if(barrier_to_garage == 0)
                    {
                        MoveObject(lspd_garage_barrier1, 1544.7,-1631, 13.4, 180, 180, 1.5);
                        barrier_to_garage = 1;
                        return 1;
                    }
                    else
                    {
                        MoveObject(lspd_garage_barrier1, 1544.7,-1631, 13.4, 180, 90, 1.5);
                        barrier_to_garage = 0;
                        return 1;
                    }
                }
            }
Reply


Messages In This Thread
MoveObject( Heelp - by Mikkel_RE - 02.12.2012, 11:46
Re: MoveObject( Heelp - by Mikkel_RE - 02.12.2012, 20:12
Re: MoveObject( Heelp - by Vince - 02.12.2012, 20:24
Re: MoveObject( Heelp - by Mikkel_RE - 02.12.2012, 20:29
Re: MoveObject( Heelp - by DexterBR - 03.12.2012, 01:21
Re: MoveObject( Heelp - by maramizo - 03.12.2012, 01:23
Re: MoveObject( Heelp - by Mikkel_RE - 03.12.2012, 10:44
Re: MoveObject( Heelp - by jueix - 03.12.2012, 10:58
Re: MoveObject( Heelp - by Mikkel_RE - 03.12.2012, 11:22
Re: MoveObject( Heelp - by jueix - 03.12.2012, 11:28

Forum Jump:


Users browsing this thread: 5 Guest(s)