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

Just increase the 10
pawn Код:
if(PlayerToPoint(10,playerid,1558.970703125, -1677.9114990234, 1722.1081542969))
for the command it's closing cuz the gate is farther away

pawn Код:
else if(PlayerToPoint(20,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(20,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031))
        {
            MoveObject(door5,1560.1090087891, -1653.4477539063, 1719.5637207031,1.50);
        }
        return 1;
    }
try that
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)