04.12.2009, 13:23
Quote:
#include <a_samp> #if defined FILTERSCRIPT forward GateCheck(); new mygate; public OnFilterscriptInit() { mygate=CreateObject(16775, 2063.2603, -2600.1406, 16.5461, 0.0000, 0.0000, 33.5180, 500.0); SetTimer("GateCheck",1000,1); } public GateCheck() { new openmygate; for(new playerid;playerid<MAX_PLAYERS;playerid++) { if(IsPlayerInRangeOfPoint(playerid,10.0,2063.2603, -2600.1406, 16.5461)openmygate=1; //object coordinate if(openmygate)MoveObject(mygate,2063.2507, -2600.1677, 8.5313); //open object coordinates else MoveObject(mygate,2063.2603, -2600.1406, 16.5461); //closed object coordinates } #endif |
No errors , no warning and not good!