Posts: 183
Threads: 35
Joined: Jun 2015
Reputation:
0
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 :/
Posts: 582
Threads: 18
Joined: Jul 2010
Reputation:
0
Create the object by using CreateObject, not CreateDynamicObject or something similar. Just the one you teleport on.
Posts: 183
Threads: 35
Joined: Jun 2015
Reputation:
0
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..
Posts: 3,324
Threads: 96
Joined: Sep 2013
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.
Posts: 582
Threads: 18
Joined: Jul 2010
Reputation:
0
If you are going to have vehicles on that object, then CreateObject is your only option.
Posts: 3,324
Threads: 96
Joined: Sep 2013
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.