21.10.2009, 14:25
Maybe Because this under it?few more lines i added.
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
new BlackProject;
new c_gate;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
c_gate= CreateObject(11327, 213.882446, 1875.694214, 14.031004, 0.000000, 0.000000, 270.000001124); //the created object
SetTimer("CheckGate", 100, 1);
return 1;
}
forward CheckGate();
public CheckGate()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 10.0, 213.880005, 1875.686768, 10.506058))
{
MoveObject(c_gate, 213.882446, 1875.694214, 14.031004,5);//move objest from position, where you created to x, y, z (you must input)
//you have the same x,y,z positions like created
return 1;
}
}
MoveObject(c_gate, 213.882446, 1875.694214, 14.031004,5);
return 1;
}
print("\n--------------------------------------");
print(" Blank Filterscript by Danikov");
print("--------------------------------------\n");
return 1;
}


