[HELP] Gates with password
#2

You want it so you don't need to type in a password to open the gates, correct?
pawn Код:
//--------- Research gates with password ---

new bool:DoorStatus;

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK && IsPlayerInRangeOfPoint(playerid, 1.5, 2678.04663086,3966.71850586,7.23182821))
    {
        MoveDynamicObject(labdoor, 2674.9941062,3967.00097656,8.58553982, 2.0 );
        SetTimer("labdoor", 4500, false );
        SetTimer("CloseDoors", 4500, false );
        DoorStatus = 1;
    }
    return 1;
}

forward CloseDoors();
public CloseDoors()
{
    MoveDynamicObject(labdoor, 2674.99438477,3967.00122070,5.57493162, 2.0); // close the doors here
    return 1;
}
-- Untested.
Reply


Messages In This Thread
[HELP] Gates with password [SOLVED] - by Darien - 27.01.2011, 17:28
Re: [HELP] Gates with password - by Grim_ - 27.01.2011, 17:38
Re: [HELP] Gates with password - by Darien - 27.01.2011, 17:53
Re: [HELP] Gates with password - by Gabe - 27.01.2011, 17:56
Re: [HELP] Gates with password - by Darien - 27.01.2011, 17:59
Re: [HELP] Gates with password - by Gabe - 27.01.2011, 18:00
Re: [HELP] Gates with password - by Gh0sT_ - 27.01.2011, 18:04
Re: [HELP] Gates with password - by Darien - 27.01.2011, 18:06
Re: [HELP] Gates with password - by Gabe - 27.01.2011, 18:08
Re: [HELP] Gates with password - by SkizzoTrick - 27.01.2011, 18:08

Forum Jump:


Users browsing this thread: 1 Guest(s)