Moved Objects = Not synced to new players? - 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: Moved Objects = Not synced to new players? (
/showthread.php?tid=68074)
Moved Objects = Not synced to new players? -
Redirect Left - 06.03.2009
Hello!
Apparantly, moving objects doesn't sync them with new players, such as moving gates, or at least. They don't on my server. How can I sync them? I've tried using CreatePlayerObject, and MovePlayerObject. CreatePlayerObject was too laggy in spawning the gate (it flickered into life about ...er 10 seconds after the enemy had crossed where it should be) and MovePlayerObject just failed to do anything.
Any ideas?
Re: Moved Objects = Not synced to new players? -
MenaceX^ - 06.03.2009
I never heard about this problem before.
Re: Moved Objects = Not synced to new players? -
NaS - 06.03.2009
Yeah they don't sync if someone joins..
Just try
new Float:Pos[3];
GetObjectPos(objectid,Pos[0],Pos[1],Pos[2]);
SetObjectPos(objectid,Pos[0],Pos[1],Pos[2]);
in OnPlayerConnect then they should be synced