Wie mache ich eine VirtualWorld abfrage

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hi Brotfische


    ich will wissen wie ich es mache, weil meine Stadthalle den LS und SF haben die selben aber nur unterschiedliche VirtualWorld kann ich da irgenteine anfrage reinklatschen?#



    else if (IsPlayerInRangeOfPoint(playerid,4.0,389.9180,173.6584,1008.3828))//Stadthalle LS exit
    {
    SetPlayerPos(playerid,1480.9919,-1771.2096,18.7958);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,0);
    SetPlayerFacingAngle(playerid,357.5767);
    SendClientMessage(playerid,COLOR_GREEN, "Du hast die Stadthalle verlassen");
    }
    else if (IsPlayerInRangeOfPoint(playerid,4.0,389.9180,173.6584,1008.3828))//Stadthalle SF exit
    {
    SetPlayerPos(playerid,-2766.1370,375.5644,6.3347);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,0);
    SetPlayerFacingAngle(playerid,86.3156);
    SendClientMessage(playerid,COLOR_GREEN, "Du hast die Stadthalle verlassen");
    }

  • else if (IsPlayerInRangeOfPoint(playerid,4.0,389.9180,173.6584,1008.3828) && GetPlayerVirtualWorld(playerid) == hier vw ID von der stadthalle ls rein)//Stadthalle LS exit
    {
    SetPlayerPos(playerid,1480.9919,-1771.2096,18.7958);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,0);
    SetPlayerFacingAngle(playerid,357.5767);
    SendClientMessage(playerid,COLOR_GREEN, "Du hast die Stadthalle verlassen");
    }
    else if (IsPlayerInRangeOfPoint(playerid,4.0,389.9180,173.6584,1008.3828) && GetPlayerVirtualWorld(playerid) == hier vw ID von der stadthalle SF rein)//Stadthalle SF exit
    {
    SetPlayerPos(playerid,-2766.1370,375.5644,6.3347);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,0);
    SetPlayerFacingAngle(playerid,86.3156);
    SendClientMessage(playerid,COLOR_GREEN, "Du hast die Stadthalle verlassen");
    }


  • #erledigt? :D


    MfG
    Geronimo


    V2C!

  • Dashier ist Enter

    else if(IsPlayerInRangeOfPoint(playerid,4.0,1480.9919,-1771.2096,18.7958))//Stadthalle LS enter
    {
    SetPlayerPos(playerid,389.9180,173.6584,1008.3828);
    SetPlayerVirtualWorld(playerid,1);
    SetPlayerInterior(playerid,3);
    SetPlayerFacingAngle(playerid,92.3491);
    SendClientMessage(playerid,COLOR_GREEN,"Du hast die Stadthalle betreten");
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,-2766.1370,375.5644,6.3347))//Stadthalle SF enter
    {
    SetPlayerPos(playerid,389.9180,173.6584,1008.3828);
    SetPlayerVirtualWorld(playerid,2);
    SetPlayerInterior(playerid,3);
    SetPlayerFacingAngle(playerid,92.3491);
    SendClientMessage(playerid,COLOR_GREEN,"Du hast die Stadthalle betreten");
    }



    Dashier ist das Exit
    else if (IsPlayerInRangeOfPoint(playerid,4.0,389.9180,173.6584,1008.3828) && GetPlayerVirtualWorld(playerid) == 1)//Stadthalle LS exit
    {
    SetPlayerPos(playerid,1480.9919,-1771.2096,18.7958);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,0);
    SetPlayerFacingAngle(playerid,357.5767);
    SendClientMessage(playerid,COLOR_GREEN, "Du hast die Stadthalle verlassen");
    }
    else if (IsPlayerInRangeOfPoint(playerid,4.0,389.9180,173.6584,1008.3828) && GetPlayerVirtualWorld(playerid) == 2)//Stadthalle SF exit
    {
    SetPlayerPos(playerid,-2766.1370,375.5644,6.3347);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,0);
    SetPlayerFacingAngle(playerid,86.3156);
    SendClientMessage(playerid,COLOR_GREEN, "Du hast die Stadthalle verlassen");
    }