/close don't work. - 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: /close don't work. (
/showthread.php?tid=349703)
/close don't work. -
Gangster-rocks - 09.06.2012
pawn Код:
if (strcmp("/open", cmdtext, true) == 0)
{
MoveObject(gate1, 1811.45, -1890.62, 4.81, 2.0);
return 1;
}
if (strcmp("/close", cmdtext, true) == 0)
{
MoveObject(gate1, 1811.45, -1890.62, 4.81, 2.0);
return 1;
}
How to make it close
Re : /close don't work. -
ricardo178 - 09.06.2012
Double facepalm.. You are setting close positions to same as open.. So it will just stay in the same position.
Replace this line on /close cmd with the positions of gate1 = Createblablablabla positions...
pawn Код:
MoveObject(gate1, 1811.45, -1890.62, 4.81, 2.0);
Re: /close don't work. -
Face9000 - 09.06.2012
MoveDynamicObject?
Use a streamer.
Re : Re: /close don't work. -
ricardo178 - 09.06.2012
Quote:
Originally Posted by Logitech90
MoveDynamicObject?
Use a streamer.
|
I can't believe you actualy said that.. xD Read his positions.
Re: Re : Re: /close don't work. -
Face9000 - 09.06.2012
Quote:
Originally Posted by ricardo178
I can't believe you actualy said that.. xD Read his positions.
|
Lmao got my fail. ^^
Sorry!