LSPD Barrier move
#2

You need to add the Speed in the script for it to move... What happens if you add
Код:
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)
                    {
                        SetObjectRot(lspd_garage_barrier1, 180, 180, 90, 1.5);// 1.5 Try this and see if it works.
                        barrier_to_garage = 1;
                        return 1;
                    }
                    else
                    {
                        SetObjectRot(lspd_garage_barrier1, 180, 90, 90, 1.5);//1.5 Try this and see if it works.
                        barrier_to_garage = 0;
                        return 1;
                    }
                }
            }
For my gates and other moveable objects after 3 "," i have the speed for it to move..
Reply


Messages In This Thread
delete - by Mikkel_RE - 30.11.2012, 00:42
Re: LSPD Barrier move - by goviscrap - 30.11.2012, 05:24
Re: LSPD Barrier move - by Mikkel_RE - 01.12.2012, 11:01
Re : LSPD Barrier move - by 69 - 01.12.2012, 11:05
Re: LSPD Barrier move - by Mikkel_RE - 01.12.2012, 11:11
Re : LSPD Barrier move - by 69 - 01.12.2012, 11:13
Re: LSPD Barrier move - by Mikkel_RE - 01.12.2012, 11:35
Re : LSPD Barrier move - by 69 - 01.12.2012, 11:47
Re: LSPD Barrier move - by Mikkel_RE - 01.12.2012, 11:50
Re: LSPD Barrier move - by Mikkel_RE - 01.12.2012, 19:55

Forum Jump:


Users browsing this thread: 2 Guest(s)