Wenn jemand Enter drückt soll das und das passieren...
else if(IsPlayerInRangeOfPoint(playerid,2.0,1199.2645,-918.1450,43.1231)) //BurgerShotNord-Enter
{
SetPlayerPos(playerid,365.1967,-73.4731,1001.5078);
SetPlayerInterior(playerid,10);
SetPlayerFacingAngle(playerid,306.3758);
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid,0);
}
else if(IsPlayerInRangeOfPoint(playerid,2.0,362.8453,-75.1406,1001.5078)) //BurgerShotNord-Exit
{
if(GetPlayerVirtualWorld(playerid) == 0)
{
SetPlayerPos(playerid,1199.7817,-921.8111,43.0220);
SetPlayerFacingAngle(playerid,192.8461);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
}
else if(IsPlayerInRangeOfPoint(playerid,2.0,810.4847,-1616.2046,13.5469)) //BurgerShotSouth-Enter
{
SetPlayerPos(playerid,365.1967,-73.4731,1001.5078);
SetPlayerInterior(playerid,10);
SetPlayerVirtualWorld(playerid,1);
SetPlayerFacingAngle(playerid,306.3758);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid,COLOR_GREEN,"Du hast den Burger Shot South betreten!");
}
else if(IsPlayerInRangeOfPoint(playerid,2.0,362.8856,-75.1768,1001.5078)) //BurgerShotSouth-Exit
{
if(GetPlayerVirtualWorld(playerid) == 1)
{
SetPlayerPos(playerid,813.1405,-1616.3661,13.5547);
SetPlayerFacingAngle(playerid,269.3087);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SendClientMessage(playerid,COLOR_GREEN,"Du hast den Burger Shot South verlassen!");
}
}
Aus dem BurgerShotNord kommt man ganz normal rein und raus, in das BurgerShotSouth kommt man zwar rein ist dann auch in der VirtualWorld 1 aber man kommt nicht mehr raus..
Hoffe mir kann jemand helfen