30.11.2009, 16:25
That's not the problem Sfinx. I believe that a contributing factor is lag.. When using 'SetPlayerPosFindZ' there is going to be a lagging moment.
Here's an example:
Let's say you type this and there is a 50 millisecond ping. That's 50 milliseconds it takes for you to see server activity after it has happend, and vice versa (your activity to the server). If you use SetPlayerFindZ and then immediatly use GetPlayerPos, it's going to receive the player's current position that the server has stored in it's memory, but the SetPlayerFindZ still has 50 milliseconds before the player is moved, and then another 50 milliseconds before the server picks up on the player having been moved. So in essence, your 'find a random position and retrieve it's coordinate' isn't going to work.
Here's an example:
Let's say you type this and there is a 50 millisecond ping. That's 50 milliseconds it takes for you to see server activity after it has happend, and vice versa (your activity to the server). If you use SetPlayerFindZ and then immediatly use GetPlayerPos, it's going to receive the player's current position that the server has stored in it's memory, but the SetPlayerFindZ still has 50 milliseconds before the player is moved, and then another 50 milliseconds before the server picks up on the player having been moved. So in essence, your 'find a random position and retrieve it's coordinate' isn't going to work.