21.02.2010, 19:38
like you saw in the title, i dont know where to put my gate script.
Код:
#include <a_samp>
new Boat gate;
forward Boat gateTimer(playerid);
public OnFilterScriptInit()
{
Boat gate = CreateObject(989, 376.90994262695, -1943.0893554688, 0, 0, 0, 13.890258789063);
SetTimer("Boat gateTimer", 1000, 1);
}
public Boat gateTimer(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 10,0, 376.90994262695, -1943.0893554688, 0))
{
MoveObject(Boat gate, 377.06930541992, -1937.6352539063, 0, 3);
}else{
MoveObject(Boat gate, 376.90994262695, -1943.0893554688, 0, 3);
}


.......