Guten Tag,
Sobald ich ein Interior verlasse kann ich in kein Anderes mehr rein.
for(new h = 0; h < sizeof(AutomatikPortInfo); h++)
{
AutomatikPortInfo[h][APAusgangPickup] = CreatePickup(1318, 23, AutomatikPortInfo[h][APAusgangX], AutomatikPortInfo[h][APAusgangY], AutomatikPortInfo[h][APAusgangZ],-1);
AutomatikPortInfo[h][APEingangPickup] = CreatePickup(1318, 23, AutomatikPortInfo[h][APEingangX], AutomatikPortInfo[h][APEingangY], AutomatikPortInfo[h][APEingangZ]+0.2,-1);
}
for(new h = 0; h < sizeof(AutomatikPortInfo); h++){
if(pickupid == AutomatikPortInfo[h][APAusgangPickup] && PortedTimer[playerid] == 0 && GetPlayerVirtualWorld(playerid) == AutomatikPortInfo[h][APVirtualWorld]){
SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, AutomatikPortInfo[h][APEingangX], AutomatikPortInfo[h][APEingangY], AutomatikPortInfo[h][APEingangZ]);
SetPlayerVirtualWorld(playerid, 0); PortedTimer[playerid] = 5; PlayerInfo[playerid][pLocal] = -1;
return 1;
}
if(pickupid == AutomatikPortInfo[h][APEingangPickup] && PortedTimer[playerid] == 0){
SetPlayerInterior(playerid, AutomatikPortInfo[h][APInterior]);
SetPlayerPos(playerid, AutomatikPortInfo[h][APAusgangX], AutomatikPortInfo[h][APAusgangY], AutomatikPortInfo[h][APAusgangZ]); SetPlayerVirtualWorld(playerid, AutomatikPortInfo[h][APVirtualWorld]); PortedTimer[playerid] = 5; PlayerInfo[playerid][pLocal] = AutomatikPortInfo[h][APLocation];
return 1;
}}
enum APInfo
{
APVirtualWorld,
APInterior,
Float:APEingangX,
Float:APEingangY,
Float:APEingangZ,
Float:APAusgangX,
Float:APAusgangY,
Float:APAusgangZ,
APLocation,
APEingangPickup,
APAusgangPickup,
};
new AutomatikPortInfo[48][APInfo] =
{
{0,5,1462.395751,-1012.391174,26.843799,389.3555,173.8684,1008.3828,19,19}, //Bank
{0,15,1456.3677,-1137.7054,23.9486,207.6253,-110.9604,1005.1328,2,2}, // Kleidergeschäft
{0,9,928.6076,-1352.9957,13.4,364.9345,-11.3835,1001.8516,2,2}, // Cluckin Bell nähe OAmt
{1,10,810.7647,-1616.1702,13.5469,363.4129,-74.5786,1001.5078,4,4}, // Burger Shot LS
{2,10,-2336.5752,-166.8304,35.5547,363.4129,-74.5786,1001.5078,5,5}, // Burger Shot SF
{3,10,-2356.3708,1008.1512,50.8984,363.4129,-74.5786,1001.5078,6,6}, // Burger Shot SF
{4,10,-1912.1459,828.1643,35.2099,363.4129,-74.5786,1001.5078,7,7}, // Burger Shot SF
{5,10,2472.4783,2034.2706,11.0625,363.4129,-74.5786,1001.5078,8,8}, // Buger Shot LV
{6,10,1872.7205,2071.8374,11.0625,363.4129,-74.5786,1001.5078,8,8}, // Buger Shot LV
{7,10,2169.8044,2795.8225,10.8203,363.4129,-74.5786,1001.5078,11,11}, // Burger Shot LV
{8,10,2366.7588,2071.1653,10.8203,363.4129,-74.5786,1001.5078,11,11}, // Burger Shot LV
{1,9,-2671.4756,258.3460,4.6328,364.9345,-11.3835,1001.8516,12,12}, // Cluckin' Bell SF
{2,9,-1213.6775,1830.3782,41.9297,364.9345,-11.3835,1001.8516,12,12}, // Cluckin' Bell LV
{3,9,172.5735,1176.4569,14.7645,364.9345,-11.3835,1001.8516,13,13}, // Cluckin' Bell LV
{4,9,-2154.9626,-2460.3972,30.8516,364.9345,-11.3835,1001.8516,14,14}, // Cluckin' Bell SF
{5,9,2398.6084,-1898.6135,13.5469,364.9345,-11.3835,1001.8516,14,14}, // Cluckin' Bell LS
{6,9,2420.1980,-1509.0193,24.0000,364.9345,-11.3835,1001.8516,16,16}, // Cluckin' Bell LS
{7,9,2637.7461,1671.9392,11.0234,364.9345,-11.3835,1001.8516,17,17}, // Cluckin' Bell LV
{8,9,2393.2983,2041.8185,10.8203,364.9345,-11.3835,1001.8516,18,18}, // Cluckin' Bell LV
{9,9,2102.5400,2228.8660,11.0234,364.9345,-11.3835,1001.8516,19,19}, // Cluckin' Bell LV
{10,9,-1816.5376,617.9418,35.1719,364.9345,-11.3835,1001.8516,20,20}, // Cluckin' Bell SF
{0,5,202.7070,-202.3692,1.5781,372.4088,-132.9822,1001.4922,21,21}, // Pizza Stack LS
{1,5,1367.0803,248.5499,19.5669,372.4088,-132.9822,1001.4922,22,22}, // Pizza Stack LS
{2,5,2332.5308,74.8778,26.6210,372.4088,-132.9822,1001.4922,23,23}, // Pizza Stack LS
{3,5,-1721.6688,1359.7571,7.1853,372.4088,-132.9822,1001.4922,24,24}, // Pizza Stack SF
{4,5,-1808.3754,945.4438,24.8906,372.4088,-132.9822,1001.4922,25,25}, // Pizza Stack SF
{5,5,2104.7798,-1806.5020,13.5547,372.4088,-132.9822,1001.4922,26,26}, // Pizza Stack LS
{6,5,2351.7793,2533.2798,10.8203,372.4088,-132.9822,1001.4922,27,27}, // Pizza Stack LV
{7,5,2083.3362,2224.1030,11.0234,372.4088,-132.9822,1001.4922,28,28}, // Pizza Stack LV
{0,5,2229.6704,-1721.4871,13.5634,772.3214,-4.9251,1000.7288,29,29}, // Grove Street Gym
{0,18,1315.3887,-899.2028,39.5781,-31.0033,-91.5368,1003.5600,30,30}, // 27/7 BSN
{1,18,1352.3188,-1758.0621,13.5078,-31.0033,-91.5368,1003.5600,31,31}, // 24/7 LSPD
{2,18,1000.1430,-919.9896,42.7000,-31.0033,-91.5368,1003.5600,32,32}, // 24/7 BSN Tanke
{0,6,1555.1205, -1675.6710, 16.1953,246.7282, 62.7136, 1003.6406,-1,-1},//LSPD
{0,3,-1605.5012,710.7552,13.8672,288.6994,167.3778,1007.1719,-1-1},//SFPD
{0,0,1481.3384,-1770.5519,18.7958,241.9923,1844.0638,1022.5359,3,3},//Arbeitsamt
{2,3,1631.9034,-1172.0419,24.0781,834.0005,7.3860,1004.1797,37},//LS /ad Point
{3,3,-2242.5676,128.7393,35.3203,834.0005,7.3860,1004.1797,38},//SF /ad Point
{0,0,2239.1157,2429.7532,3.2734,2278.0969,2459.6187,38.6837,-1}, //LV Heliport
{40,18,-2160.8149,578.6754,35.1719,-31.0033,-91.5368,1003.5600,40},// 24/7 SF
{41,18,-1675.7678,431.7322,7.1797,-31.0033,-91.5368,1003.5600,41},// 24/7 SF Tankstelle
{42,18,172.3732,-201.2953,1.5703,-31.0033,-91.5368,1003.5600,42}, // 24/7 Farm
{43,18,672.5079,-646.8347,16.3359,-31.0033,-91.5368,1003.5600,43}, // 24/7 Dillimore
{44,3,671.4097,-519.8035,16.3359,834.0005,7.3860,1004.1797,44},//Casino in Dillimore
{0,5,627.9210,-571.8536,17.4747,322.2110,302.6740,999.1484,-1}, // Dillimore Arrest
{47,17,1038.3060,-1340.2660,13.7394,377.1027,-192.6963,1000.6401,47},//Donut Laden
{2,15,-1883.4063,865.4304,35.1719,207.6253,-110.9604,1005.1328,3}, // Kleidergeschäft
{1,1,1317.4209,-1184.0486,23.5917,1403.2238,5.5065,1000.9067,63} //Gangautohaus
};