Moving Gates - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Moving Gates (
/showthread.php?tid=474679)
Moving Gates -
HuntingMan - 09.11.2013
Guys i went map at MTA
- I Made a house with in AIRPORTGATE
i made for it cmd to open and close
when i open it
it move forward and dont stop
when i close it
it go right>>>> more and more
any Help Please
Re: Moving Gates -
iZN - 09.11.2013
You're definitely moving it into wrong coordinates. Show your script lines. Get the correct position for moving the gate.
Re: Moving Gates -
HuntingMan - 08.03.2014
Thanks i have learned it right
like maybe:
Код:
new Gate;
public OnFilterScriptInit()
{
Gate = CreateObject(etc.. COORDINATES);
return 1;
}
public OnPlayerCommandText(playeritext[])
{
if (strcmp("/opengate", cmdtext, true, 10) == 0)
{
MoveObject(Gate, the Coordinates);
}
return 1;
}

Any Way Thanks for posting and trying to help me
Re: Moving Gates -
XK - 08.03.2014
yea,like that