27.02.2010, 15:42
Hi, My Script compiles, its an automatic gate, but the gate doesnt appear when i start go to it.
Above Main.
Under OnFilterScriptInit
At Bottom Of Script
My Gate doesn't even spawn nevermind automatically open.
Above Main.
Код:
new base; forward CheckGate();
Код:
base = CreateObject(969, -1534.5819091797, 482.19046020508, 6.2807078361511, 0.000000, 0.000000, 0.000000); //object (electricgate) (1) SetTimer("CheckGate",500,true);
Код:
public CheckGate() { new base_status; for(new i;i<MAX_PLAYERS;i++) { if(!IsPlayerConnected(i)) continue; if(IsPlayerInRangeOfPoint(i,15.0,-1534.5819091797, 482.19046020508, 6.2807078361511))base_status = 1; } if(base_status)MoveObject(base,-1526.4539794922, 481.65655517578, 6.2885203361511,5.0); else MoveObject(base, -1534.5819091797, 482.19046020508, 6.2807078361511,5.0); }