Habe hier mal ein auto-gate gemacht...was ist daran falsch? es geht nicht auf^^
new gate1;
new gate2;
forward GateOpen(playerid);
forward GateClose(playerid);
gate1 = CreateObject(988, 1964.194702, -2189.709229, 13.610937, 0.0000, 0.0000, 180.0000);
gate2 = CreateObject(988, 1958.783936, -2189.709473, 13.585938, 0.0000, 0.0000, 180.0000);
public GateOpen(playerid)
{
if(PlayerToPoint(20,playerid,1961.4778,-2188.8291,13.5469))
{
MoveObject(gate1,1969.471436,-2189.709229,13.610937,3);
MoveObject(gate2,1953.459106,-2189.709473,13.585938,3);
SetTimer("GateClose",3000,1);
}
return 1;
}
public GateClose(playerid)
{
MoveObject(gate1,1964.194702, -2189.709229, 13.610937,3);
MoveObject(gate2,1958.783936, -2189.709473, 13.585938,3);
return 1;
}
kann mir pls jemand helfen?
mfg [XfS]Marshall