Move Object - need ! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Move Object - need ! (
/showthread.php?tid=137969)
Move Object - need ! -
Johny_Rocker - 30.03.2010
Hey guys i want to make moving gate is there any good tutorial pls ?
Re: Move Object - need ! -
aircombat - 30.03.2010
https://sampwiki.blast.hk/wiki/MoveObject
Re: Move Object - need ! -
Johny_Rocker - 30.03.2010
if(strcmp(cmdtext, "/opengate", true) == 0)
{
new string[50];
new movetime = MoveObject(gate, 1255.13, -767.58, 92.73, 2.00);
format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
SendClientMessage(playerid, 0xFF000000, string);
return 1;
}
i try this but i type /opengate and gates standing and nothing!
Re: Move Object - need ! -
Bomber - 30.03.2010
Just do that
pawn Код:
if(strcmp(cmdtext, "/opengate", true) == 0)
{
MoveObject(gate, 1255.13, -767.58, 92.73, 2.00);
return 1;
}
Re: Move Object - need ! -
aircombat - 31.03.2010
if(strcmp(cmdtext, "/opengate", true) == 0)
{
new string[50];
MoveObject(gate, 1255.13, -767.58, 92.73, 2.00);
format(string, sizeof(string), "Object will finish moving in 2 seconds");
SendClientMessage(playerid, 0xFF000000, string);
return 1;
}
Re: Move Object - need ! -
Johny_Rocker - 31.03.2010
[AC]Eth Thank you but how can i return back to his start position ?
Re: Move Object - need ! -
Last_Stand_Guardian - 31.03.2010
Quote:
Originally Posted by Bomba' Xtreme'Stuntage
pawn Код:
if(strcmp(cmdtext, "/opengate", true) == 0) { MoveObject(gate, 1255.13, -767.58, 92.73, 2.00); SetTimer("GateClose", 5000, false); return 1; }
|
pawn Код:
public GateClose()
{
MoveObject(gate, X, Y, Z, 2.00);
return 1;
}
X,Y,Z are the original coords of the gate (before moving)
Re: Move Object - need ! -
Johny_Rocker - 31.03.2010
Thx