Hey , i am new here.. and i have a problem with a lspd gate... I preffer to make it with the command /opengate.. THe problem is that when i go near the gate it won't go down.. it just turn 90 degrees and then go down.. I have this
PHP код:
forward pdgateclose2(); // at forward
new pdgate2; // at new
else if(PlayerToPoint(15.0,i,1547.54284668,-1627.65795898,15.15620422))
{
if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 3)
{
MoveObject(pdgate2,1547.54284668,-1627.65795898,14.15620422,5.0);
SetTimerEx("pdgateclose2",5000,false,"d",i);
}
}
pdgate2 = CreateObject(980,1547.54284668,-1627.65795898,15.15620422,0.00000000,0.00000000,90.00000000); //object(airportgate) (1)
public pdgateclose2()
{
MoveObject(pdgate2,1547.54284668,-1627.65795898,15.15620422,5.0);
}