27.08.2011, 21:40
Look , you cant use like this
i must be like this :
before it
then take cordinates of one of gates and put it in IsPlayerInRangeOfPoint
example:
pawn Code:
AutomaticGate = CreateObject(969,2237.421,2449.144,9.838,0.0,0.0,9 0.000);
AutomaticGate = CreateObject(971,2293.847,2498.374,5.768,0.0,0.0,-90.000);
AutomaticGate = CreateObject(971,2335.227,2443.460,8.261,0.0,0.0,5 9.68;
pawn Code:
AutomaticGate1 = CreateObject(969,2237.421,2449.144,9.838,0.0,0.0,9 0.000);
AutomaticGate2 = CreateObject(971,2293.847,2498.374,5.768,0.0,0.0,-90.000);
AutomaticGate3 = CreateObject(971,2335.227,2443.460,8.261,0.0,0.0,5 9.68;
pawn Code:
new AutomaticGate1,AutomaticGate2,AutomaticGate3;
example:
pawn Code:
if(IsPlayerInRangeOfPoint(playerid,10.0,2237.421,2449.144,9.838)) // cordinates of AutomaticGate1
{
MoveObject(AutomaticGame1,X,Y,Z, Speed); // put cordinates to open it
return 1;
}