21.10.2009, 14:35
Look! I repaired your code:
pawn Код:
#include <a_samp>
//new BlackProject;
new c_gate;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by Danikov");
print("--------------------------------------\n");
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;
}