Fehler im Interrior Script

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
  • Guten Tag,
    Ich habe mich heute mal an einem Script versucht, unswar das wenn man in ein Pickup
    geht in ein Interrior kommt. Jedoch scheint es als ob ich etwas falsch verstanden habe,
    denn wenn ich in das Pickup gehe komme ich zwar ins Haus, aber da ist kein Interrior,
    sondern alles durchsichtig und ohne Boden:


    Hier mal der gesamte Script:


    #define FILTERSCRIPT


    #include <a_samp>


    #if defined FILTERSCRIPT
    new gTeam[MAX_PLAYERS];


    #define TEAM_Westside 0
    #define TEAM_Mafia 1
    #define TEAM_ZIVILISTEN 2


    new gangenter;





    public OnFilterScriptInit()
    {
    AddStaticVehicleEx(549,2033.86425781,-1285.01098633,20.64947701,90.00000000,1,53,15); //Tampa
    AddStaticVehicleEx(562,2033.89514160,-1290.06689453,20.69998360,270.25000000,79,1,15); //Elegy
    AddStaticVehicleEx(475,2033.74108887,-1294.91931152,20.83392906,88.99993896,1,1,15); //Sabre
    AddStaticVehicleEx(560,2033.69531250,-1299.93945312,20.72377586,269.74566650,-1,-1,15); //Sultan
    AddStaticVehicleEx(521,2035.14257812,-1305.22778320,20.56731415,144.75000000,6,1,15); //FCR-900
    CreateObject(947,2031.82910156,-1271.67700195,22.18729782,0.00000000,0.00000000,180.99996948); //object(bskballhub_lax01) (1)
    CreateObject(2114,2030.97570801,-1272.43518066,20.13068581,0.00000000,0.00000000,0.00000000); //object(basketball) (1)
    CreateObject(1737,2026.12854004,-1273.75219727,19.97705269,0.00000000,359.50000000,346.50000000); //object(med_dinning_5) (1)
    CreateObject(1728,2026.09948730,-1272.31787109,19.96488953,0.00000000,0.00000000,348.00000000); //object(mrk_seating3) (1)
    CreateObject(1729,2026.30017090,-1275.19592285,19.97557640,0.00000000,0.00000000,165.99993896); //object(mrk_seating3b) (1)
    CreateObject(1509,2026.05908203,-1273.65954590,20.96913528,0.00000000,0.00000000,0.00000000); //object(dyn_wine_3) (1)
    CreateObject(1665,2026.48901367,-1274.00976562,20.78649521,0.00000000,0.00000000,0.00000000); //object(propashtray1) (1)
    CreateObject(1668,2027.10400391,-1274.09887695,20.94814873,0.00000000,0.00000000,0.00000000); //object(propvodkabotl1) (1)
    CreateObject(1450,2024.07446289,-1271.72265625,20.58298492,0.00000000,0.00000000,0.00000000); //object(dyn_crate_3) (1)
    CreateObject(12957,2038.30383301,-1273.73510742,21.18651009,0.00000000,0.00000000,0.00000000); //object(sw_pickupwreck01) (1)
    gangenter = CreatePickup(1277,1,2024.7517089844, -1308.16015625, 19.894130706787,0);
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    switch(classid)
    {
    case 0..10: gTeam[playerid] = TEAM_Westside;
    case 11..19: gTeam[playerid] = TEAM_Mafia;
    case 20..24: gTeam[playerid] = TEAM_ZIVILISTEN;
    }
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    if(gTeam[playerid] == TEAM_Westside)
    {
    SetPlayerPos(playerid,2289.9819,-1520.6874,26.8750);
    }
    else if(gTeam[playerid] == TEAM_Mafia)
    {
    SetPlayerPos(playerid,820.2383,-1849.9578,13.2544);
    }
    else
    {
    SetPlayerPos(playerid,331.2365,-1512.5751,35.8672);
    }
    return 1;
    }
    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if (pickupid ==gangenter)
    {
    if(gTeam[playerid] == TEAM_Westside)
    {
    SetPlayerPos(playerid,2024, -1310, 22);
    SetPlayerInterior(playerid,3);
    }
    else SendClientMessage(playerid, 0xAA3333AA, "Du gehörst nicht zur Westside!");
    }
    return 1;
    }
    #endif


    edit:// falsche Koordinaten :D
    So, aber der Spieler wird dann auf der Karte woanders angezeigt füpr andere,
    wie mache ich es , dass er in dem Haus wo das Pickup ist, auch angezeigt wird?

    Einmal editiert, zuletzt von Zcelo12 ()