PDA

View Full Version : SetPlayerPos BUG


Sn4ke2
04/07/2015, 08:35 PM
Who know This BUG? :

https://youtu.be/p3pELq8TWas
And the script:
if (IsPlayerInRangeOfPoint(playerid,2,1752.1890,-1753.5682,14.7250))
{
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,386.6023,2324.0242,1889.5812 );
SetPlayerFacingAngle(playerid,93.5558);
PlayerInfo[playerid][pInt] = 10;
}
else if (IsPlayerInRangeOfPoint(playerid,2,386.6023,2324.0 242,1889.5812))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1752.1890,-1753.5682,14.7250);
SetPlayerFacingAngle(playerid,3.6319);
PlayerInfo[playerid][pInt] = 0;
}

AlonzoTorres
04/07/2015, 08:38 PM
That's how it works, because the objects are streamed in after the player has entered. The player starts in the air and then falls onto the object being streamed.

Sn4ke2
04/07/2015, 08:49 PM
and i can't change no ?

Terrorizt
04/07/2015, 08:53 PM
You can freeze the player for 2 seconds when he enters.

Pottus
04/07/2015, 09:06 PM
It looks like the player spawns too high in the air maybe lower the Z teleport position by 0.1 meters.

Sn4ke2
04/07/2015, 09:20 PM
@Terrorizt Thank you, i give you + rep,
Thank you all :D

AlonzoTorres
04/07/2015, 09:22 PM
It looks like the player spawns too high in the air maybe lower the Z teleport position by 0.1 meters.

Combine this with freezing then because otherwise people who lag might fall through the floor.

Terrorizt
04/07/2015, 09:28 PM
@Terrorizt Thank you, i give you + rep,
Thank you all :D
Anytime