SA-MP Forums Archive
/enter and exit 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /enter and exit bug?? (/showthread.php?tid=173077)



/enter and exit bug?? - Alex_Valde - 01.09.2010

Why whenever I try to enter the building I teleport somewhere in the air?
Is there something wrong with my script or what?

This is my script:

Код:
if (strcmp("/enter", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,10,1832.8851,-1842.6815,13.5781))
            {
                SetPlayerPos(playerid,-32.6662,-78.5870,1003.5469);  
                return 1;
            }
		//other enter commands go here.....
    }





Re: /enter and exit bug?? - Mike Garber - 01.09.2010

You neeed to use SetPlayerInterior to set their interior too.
To get an interior ID to /interior inside the building while you save coordinates and do SetPlayerInterior(playerid,interiorid); inside that code.


Re: /enter and exit bug?? - Alex_Valde - 01.09.2010

Damn man....Thanks you so much!


Re: /enter and exit bug?? - Mike Garber - 01.09.2010

No problem. This was the devils post. (Post # 666)