How do I make something open and close with one command?
#5

pawn Код:
if(!strcmp(cmdtext, "/", true))
        {
            if(GateOpenStatus == 0)
            if(IsPlayerInRangeOfPoint(playerid, 10, 1410.19995117, -1650.09997559, 13.80000019))
        {
                MoveObject(GateOpen, 1410.09997559, -1650.09997559, 10.80000019, 3);
                SendClientMessage(playerid, 0xEF994300, "You have opened the gate.");
        }
                    else if(GateOpenStatus == 1)
        {
                MoveObject(GateOpen, 1410.19995117, -1650.09997559, 13.80000019, 3);
                SendClientMessage(playerid, 0xEF994300, "You have closed the gate.");
        }
            if(DoorStatus == 0)
            if(IsPlayerInRangeOfPoint(playerid, 10, 955.70001221,-50.70000076,1002.00000000))
        {
                MoveObject(Door, 955.70001221,-50.59999847,998.20001221, 3);
        }
                else if(DoorStatus == 1)
        {
                MoveObject(Door, 955.70001221,-50.70000076,1002.00000000, 3);
        }
            return 1;
        }
How do I make it so that when I open the door, it changes the Door/GateOpenStatus to 1?
Reply


Messages In This Thread
How do I make something open and close with one command? - by Rabbayazza - 17.07.2012, 22:16
Re: How do I make something open and close with one command? - by Ironboy - 17.07.2012, 22:22
Re: How do I make something open and close with one command? - by Sandiel - 17.07.2012, 22:24
Re: How do I make something open and close with one command? - by ArmandoRamiraz - 17.07.2012, 22:28
Re: How do I make something open and close with one command? - by Rabbayazza - 17.07.2012, 22:41

Forum Jump:


Users browsing this thread: 1 Guest(s)