Teleporting and objects..
#1

I making stunts map, Whenever I teleport to it with command I just fall off the objects because they didn't appear yet, anyway to fix this?
I mean, Teleport -> objects not loaded -> fall -> die :/
Reply
#2

Create the object by using CreateObject, not CreateDynamicObject or something similar. Just the one you teleport on.
Reply
#3

.., I got an idea to delay the teleport by freezing the player after teleporting for 3-4 seconds, so all objects loads
This will work or what?
Reply
#4

try updating your Streamer: https://sampforum.blast.hk/showthread.php?tid=102865 and again compile your gamemode.
Reply
#5

Dude, I don't have to update it (its last version though), I joined many stunts servers now, They just freezing the player for a couple of seconds, so the objects load..
Reply
#6

Ok.. Good luck then!
Reply
#7

NO! NEVER FREEZE PLAYERS WHEN TELPORTING LIKE THAT.

Using streamer, this is VERY easy. Just do this when teleporting:
pawn Код:
Streamer_UpdateEx(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);
Streamer_UpdateEx will preload the objects.
Reply
#8

If you are going to have vehicles on that object, then CreateObject is your only option.
Reply
#9

Quote:
Originally Posted by Crayder
Посмотреть сообщение
NO! NEVER FREEZE PLAYERS WHEN TELPORTING LIKE THAT.

Using streamer, this is VERY easy. Just do this when teleporting:
pawn Код:
Streamer_UpdateEx(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);
Streamer_UpdateEx will preload the objects.
Oh, May I know why shouldn't I freeze them?
However I will use this updateex instead repped
Reply
#10

Quote:
Originally Posted by karemmahmed22
Посмотреть сообщение
Oh, May I know why shouldn't I freeze them?
There are many reasons. Here are just a few;
* Players HATE being frozen, it takes time from their game play.
* Streamer_UpdateEx is a much better solution.
* It's a poor way to handle things, and most people know that. If they see that your server is using poor methods (and most people will notice) they might not want to stay.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)