/enter and exit bug??
#1

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.....
    }


Reply
#2

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.
Reply
#3

Damn man....Thanks you so much!
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)