Automatic Closing Doors
#3

pawn Код:
new DoorOpened;
forward CloseDoor();

    if(strcmp(string, "/opendoor", true) == 0)
    {
    if(DoorOpened == 1)
        {
             SendClientMessage(playerid, COLOR_RED, "The door is already opened");
             return 1;
        }
        DoorOpened = 1;
        SetTimer("CloseDoor", 20000, 0);
    }

public CloseDoor()
{
    MoveObject(....)
    DoorOpened = 0;
}
Post in the right section next time. Use the Script Request Thread.
Reply


Messages In This Thread
Automatic Closing Doors - by Finn707 - 23.10.2012, 18:59
Re: Automatic Closing Doors - by tyler12 - 23.10.2012, 19:06
Re: Automatic Closing Doors - by Adil - 23.10.2012, 19:21
Re: Automatic Closing Doors - by Finn707 - 23.10.2012, 22:10

Forum Jump:


Users browsing this thread: 1 Guest(s)