SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 20/09/2013, 04:49 PM   #1
aLTeR
Little Clucker
 
Join Date: Aug 2013
Posts: 31
Reputation: -1
Default Problem with streamer and teleport

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?
aLTeR is offline   Reply With Quote
Old 20/09/2013, 04:55 PM   #2
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,828
Reputation: 1401
Default Re: Problem with streamer and teleport

Maybe
pawn Code:
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?
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 20/09/2013, 05:15 PM   #3
Vanter
Huge Clucker
 
Vanter's Avatar
 
Join Date: Jul 2013
Posts: 391
Reputation: 16
Default Re: Problem with streamer and teleport

If it streams late, it's the person's internet connection. not a samp bug
Vanter is offline   Reply With Quote
Old 20/09/2013, 05:19 PM   #4
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,828
Reputation: 1401
Default Re: Problem with streamer and teleport

Quote:
Originally Posted by Vanter View Post
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!
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 20/09/2013, 05:21 PM   #5
Vanter
Huge Clucker
 
Vanter's Avatar
 
Join Date: Jul 2013
Posts: 391
Reputation: 16
Default Re: Problem with streamer and teleport

make a timer.. te re-teleport, or to freeze him for 5 seconds or something.
Vanter is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Teleport help.. GBLTeam Help Archive 10 04/04/2011 05:13 PM
Little teleport problem nastoe Help Archive 9 24/01/2010 11:25 PM
Little teleport problem nastoe Help Archive 4 24/01/2010 09:19 PM
help teleport problem Etthan Help Archive 2 04/08/2009 02:27 PM


All times are GMT. The time now is 07:42 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.