11.02.2010, 20:13
You can just check the interior and set new pos.
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)
{
SetPlayerPos(playerid, X, Y, Z); // new place in LS
}
return 1;
}
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;
}