SA-MP Forums Archive
Moving Objects (rep) - 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 Objects (rep) (/showthread.php?tid=374415)



Moving Objects (rep) - Geeboi_Mehdi - 02.09.2012

I want to move this Object 20KPH For 2 Minute
pawn Код:
CreateDynamicObject(10771,3302.39990234,-830.20001221,-1.79999995,0.00000000,0.00000000,270.00000000);
Also Before It Moves I want it to send message to all Players Telling them that Ferry has Moved to Dream Land
Thank's if u Helped me thank's
~Have a Great Day


Re: Moving Objects (rep) - Misiur - 02.09.2012

pawn Код:
native MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed, Float:rx = -1000.0, Float:ry = -1000.0, Float:rz = -1000.0);
Divide distance by time and you get your speed.