Opening Doors with a Key instead of a command?
#4

you need to make the range higher of the looking:

cuz the gate is prolly to far in the ground:
pawn Код:
else if ( PRESSED(KEY_LOOK_BEHIND) )
    {
        if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an SAPD Oficer.");
        if(PlayerToPoint(10,playerid,1558.970703125, -1677.9114990234, 1722.1081542969))
        {
            MoveObject(door1,1558.970703125, -1677.9114990234, 1722.1081542969,1.50);
            MoveObject(door2,1561.9755859375, -1677.8798828125, 1722.1081542969,1.50);
        }
        else if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969))
        {
            MoveObject(door3,1550.4266357422, -1691.5009765625, 1722.1081542969,1.50);
            MoveObject(door4,1553.4294433594, -1691.4515380859, 1722.1081542969,1.50);
        }
        else if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031))
        {
            MoveObject(door5,1560.1090087891, -1653.4477539063, 1719.5637207031,1.50);
        }
        return 1;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)