SetPlayerPos BUG - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetPlayerPos BUG (
/showthread.php?tid=580372)
SetPlayerPos BUG -
Sn4ke2 - 04.07.2015
Who know This BUG? :
https://*********/p3pELq8TWas
And the script:
PHP код:
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.0242,1889.5812))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1752.1890,-1753.5682,14.7250);
SetPlayerFacingAngle(playerid,3.6319);
PlayerInfo[playerid][pInt] = 0;
}
Re: SetPlayerPos BUG -
AlonzoTorres - 04.07.2015
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.
Re: SetPlayerPos BUG -
Sn4ke2 - 04.07.2015
and i can't change no ?
Re : SetPlayerPos BUG -
Terrorizt - 04.07.2015
You can freeze the player for 2 seconds when he enters.
Re: SetPlayerPos BUG -
Pottus - 04.07.2015
It looks like the player spawns too high in the air maybe lower the Z teleport position by 0.1 meters.
Re: SetPlayerPos BUG -
Sn4ke2 - 04.07.2015
@Terrorizt Thank you, i give you + rep,
Thank you all
Re: SetPlayerPos BUG -
AlonzoTorres - 04.07.2015
Quote:
Originally Posted by Pottus
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.
Re : Re: SetPlayerPos BUG -
Terrorizt - 04.07.2015
Quote:
Originally Posted by Sn4ke2
@Terrorizt Thank you, i give you + rep,
Thank you all 
|
Anytime