Teleporting and objects.. -
karemmahmed22 - 10.10.2015
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 :/
Re: Teleporting and objects.. -
Unte99 - 10.10.2015
Create the object by using CreateObject, not CreateDynamicObject or something similar. Just the one you teleport on.
Re: Teleporting and objects.. -
karemmahmed22 - 10.10.2015
.., 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?
Re: Teleporting and objects.. -
Danzou - 10.10.2015
try updating your Streamer:
https://sampforum.blast.hk/showthread.php?tid=102865 and again compile your gamemode.
Re: Teleporting and objects.. -
karemmahmed22 - 10.10.2015
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..
Re: Teleporting and objects.. -
Danzou - 10.10.2015
Ok.. Good luck then!
Re: Teleporting and objects.. -
Crayder - 10.10.2015
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.
Re: Teleporting and objects.. -
Unte99 - 10.10.2015
If you are going to have vehicles on that object, then CreateObject is your only option.
Re: Teleporting and objects.. -
karemmahmed22 - 11.10.2015
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
Re: Teleporting and objects.. -
Crayder - 11.10.2015
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.