Falling through interior on /enter - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Falling through interior on /enter (
/showthread.php?tid=254078)
Falling through interior on /enter -
Jack_Leslie - 09.05.2011
I keep falling through the interior on this /enter code,
Код:
if(strcmp(cmdtext, "/enter", true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3 , 2755.57, -1276.32, 56.59))
{
SetPlayerInterior(1, playerid);
SetPlayerPos(playerid, -2159.122802,641.517517,1052.381713);
return 1;
}
}
if(strcmp(cmdtext, "/exit", true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3, -2159.122802,641.517517,1052.381713))
{
SetPlayerInterior(0, playerid);
SetPlayerPos(playerid, 2755.57, -1276.32, 56.59);
return 1;
}
}
I get into the interior and see the pickup for /exit but then fall through the interior and end up falling from the sky.
Re: Falling through interior on /enter -
Cenation - 09.05.2011
Check Coordinates or Interior is right?
Re: Falling through interior on /enter -
(SF)Noobanatior - 09.05.2011
z+0.5 normally does the trick
Re: Falling through interior on /enter -
Jack_Leslie - 10.05.2011
Quote:
Originally Posted by (SF)Noobanatior
z+0.5 normally does the trick
|
It kinda did. I get to a black room and I quickly freeze to prevent myself from falling, its all black, I check my vw and it says 0 so it's like it's not sending me to VW1 even though I've told it too.
Re: Falling through interior on /enter -
Hudgens - 10.05.2011
Try freezing the player with IsPlayerControllable and then add a timer to that so the interior can load.