I need help with "MovePlayer"
#6

You can just check the interior and set new pos.

pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    if(oldinteriorid == 3)
    {
        SetPlayerPos(playerid, X, Y, Z); // new place in LS
    }
    return 1;
}
Or to be sure, you can also check if player was teleported to the place in LV and then set new pos

pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    if(oldinteriorid == 3 && IsPlayerInRangeOfPoint(playerid, 3.0, X, Y, Z)) // original place in LV
    {
        SetPlayerPos(playerid, X, Y, Z); // new place in LS
    }
    return 1;
}
Reply


Messages In This Thread
I need help with "MovePlayer" - by ruckfules99 - 11.02.2010, 01:45
Re: I need help with "MovePlayer" - by Onyx09 - 11.02.2010, 02:02
Re: I need help with "MovePlayer" - by ruckfules99 - 11.02.2010, 19:59
Re: I need help with "MovePlayer" - by MadeMan - 11.02.2010, 20:01
Re: I need help with "MovePlayer" - by ruckfules99 - 11.02.2010, 20:02
Re: I need help with "MovePlayer" - by MadeMan - 11.02.2010, 20:13
Re: I need help with "MovePlayer" - by ruckfules99 - 11.02.2010, 20:18

Forum Jump:


Users browsing this thread: 1 Guest(s)