15.11.2011, 08:41
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...
To make it restricted, i need to know which variables you use to define your faction... It might be many things...
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;
}