Press horn and the barrier/gate is opening
#4

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/GetPlayerKeys#Key_List
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (newkeys & KEY_SUBMISSION)
    {
        if (PlayerToPoint(30.0, playerid, x, y, z of gate))
        {
             MoveObject(gate1, x, y, z of the opened gate);
             SetTimer("CloseGate", 10000, false);
        }  
    }
    return 1;
}

forward CloseGate();
public CloseGate()
{
  MoveObject(gate1, x, y, z of the closed gate);
}
Reply


Messages In This Thread
Press horn and the barrier/gate is opening - by Log1teCk - 30.11.2009, 18:38
Re: Press horn and the barrier/gate is opening - by mamorunl - 30.11.2009, 18:40
Re: Press horn and the barrier/gate is opening - by Log1teCk - 30.11.2009, 18:50
Re: Press horn and the barrier/gate is opening - by dice7 - 30.11.2009, 18:56
Re: Press horn and the barrier/gate is opening - by bobbydintzy - 02.02.2010, 23:08
Re: Press horn and the barrier/gate is opening - by PowerSurge - 03.03.2010, 19:13
Re: Press horn and the barrier/gate is opening - by Torran - 03.03.2010, 19:16

Forum Jump:


Users browsing this thread: 3 Guest(s)