Script Help
#5

I didn't get what you want exactly, but, here you go with a moving gate code... you just need to replace with your object and positions...

pawn Код:
#include <a_samp>
#include <zcmd>
new Gate;
forward GateClose();

public OnFilterScriptInit()
{
    Gate = CreateObject(208,0.00,0.00,0.00,0.00,0.00,0.00);
    return 1;
}

CMD:opengate(playerid, params[])
{
    MoveObject(Gate, 0.00, 0.00, 0.00, 2.0);
    SendClientMessage(playerid, 0xFFFFFF, "Gate Opened. It will close in 10 seconds.");
    SetTimer("GateClose", 10000, false);
    return 1;
}

public GateClose()
{
    MoveObject(Gate, 0.00, 0.00, 0.00, 2.0);
    return 1;
}
To make it restricted, i need to know which variables you use to define your faction... It might be many things...
Reply


Messages In This Thread
Script Help - by MS:RP Mason - 15.11.2011, 05:31
Re: Script Help - by -Rebel Son- - 15.11.2011, 06:25
Re: Script Help - by park4bmx - 15.11.2011, 06:37
Re: Script Help - by MS:RP Mason - 15.11.2011, 06:38
Re: Script Help - by ricardo178 - 15.11.2011, 08:41

Forum Jump:


Users browsing this thread: 2 Guest(s)