PDA

View Full Version : Problem with streamer and teleport


aLTeR
20/09/2013, 04:49 PM
I have a problem with streamed objects and teleport:
For example i create ground somewhere in the sky. When i teleport player on that ground, he sometimes falls down, because streamer delays ground object stream.

Any suggestions?

Konstantinos
20/09/2013, 04:55 PM
Maybe

native Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1);

to preload the items before it sets the position for the player?

Vanter
20/09/2013, 05:15 PM
If it streams late, it's the person's internet connection. not a samp bug

Konstantinos
20/09/2013, 05:19 PM
If it streams late, it's the person's internet connection. not a samp bug

Well, obviously but not only. I'm making a DD/DM map and when I set the position and I teleport from somewhere away, it sometimes fail and I fall down. I need to re-teleport. Howerver, I used the function I gave above to preload the items before I set the position. I'm now teleporting there without falling!

Vanter
20/09/2013, 05:21 PM
make a timer.. te re-teleport, or to freeze him for 5 seconds or something.