Gates bug! - 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: Gates bug! (
/showthread.php?tid=329907)
Gates bug! -
Sarra - 30.03.2012
Hi guys when i updated my server to 0.3d the server gates got bugged! when i open the gate everything is fine but when i close them they don't close properly ! help please
Re: Gates bug! -
Neo Karls - 31.03.2012
You need to update your streamer First , then you have to put Rot position and speed inside the script itself. Assigning Rot Position is a new feature of SAMP 0.3d
you have to make your moving script like
MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0);
Example
pawn Код:
// Create the object at the center of San Andreas [just used for example]
new eg_obj = CreateObject(1234, 0.0, 0.0, 3.0, 0.0, 0.0, 0.0);
// Rotate the object by 180 degrees on the z axis
MoveObject(eg_obj, 0, 0, 3+0.0001, 0.0001, 0.0, 0.0, 180.0);
reference topic -
https://sampforum.blast.hk/showthread.php?tid=295590
Re: Gates bug! -
ReneG - 31.03.2012
Actually, the rotation parameters are optional, and do not affect the object's position. Do update your streamer though, that is the main problem.