14.12.2010, 04:39
it is not hard at all.... hm its suppose to work i think... try this and tell me...
btw its first time i'm using RotateObject i found this include about a hour ago... never tested it... but i think it'll work
pawn Код:
new AOG;
AOG=CreateDynamicCircle(1794.95019531,701.68750000,15.17343998,20,0,0);//
//AOG...put it if its gm so OnGameModeInit() if FS OnFilterScriptInit()
//i suppose its the center of the place where you get close to and its opens...
forward AutoGate();
public OnPlayerEnterDynamicArea(playerid, areaid)
{
if(areaid==AOG)
{
RotateObject(gate, 0, 270, 440, 3);
SetTimer("AutoGate",5000,false);
}
return 1;
}
public AutoGate()
{
RotateObject(gate, 0,270,350, 3);
return 1;
}