Beiträge von Lukaz

    Meinst du sowas ?


    Im Keybinder



    Die Updater.exe


    Code
    FileDelete, Keybinder.exe
    UrlDownloadToFile http://stanbull.bplaced.net/Keybinder.exe, Keybinder.exe
    Run,Keybinder.exe,,hide
    ExitApp

    Hey,


    ich habe ein kleines System mit dem man in Geschäfte wie 24/7 oder BSN gehen kann.
    Es ist nicht perfekt, jedoch hoffe ich das es den ein oder anderen etwas Arbeit erspart.


    #define MAX_OPEN (65)
    enum OpenInteriors
    {
    Float:OpenEingangX,
    Float:OpenEingangY,
    Float:OpenEingangZ,
    Float:OpenAusgangX,
    Float:OpenAusgangY,
    Float:OpenAusgangZ,
    OpenInteriorID,
    OpenInteriorVirtual
    };
    new const OpenInteriorsInfo[MAX_OPEN][OpenInteriors]={


    {1554.9116, -1675.4540, 16.1953, 246.783996, 63.900199, 1003.640625, 6, 0},//LSPD Eingang
    {1525.6305, -1677.7211, 5.8906, 246.4299, 88.0091, 1003.6406, 6, 0},//LSPD Garage
    {1572.2103, -1636.4850, 13.5578, 1563.4890, -1666.7212, 28.3956, 0, 0},//LSPD Dach
    {-1605.5992, 711.1667, 13.8672, 246.3578, 107.5715, 1003.2188, 10, 0},//SAPD Eingang
    {-1606.3939, 672.4710, -5.2422, 215.3691, 126.3465, 1003.2188, 10, 0},//SAPD Garage
    {1172.6982, -1323.3925, 15.4019, 1164.3640,-1329.9182,31.4802, 0, 0},//Sanitäter Aufzug
    {1480.9857, -1771.6151, 18.7958, 389.9328, 173.6173, 1008.3828, 3, 0},//Stadthalle Eingang
    {1833.4132, -1842.6372, 13.3934, -25.8406, -187.6714, 1003.5469, 17, 0}, // 24/7 LS Bahnhof
    {1929.2400, -1776.2889, 13.3934,-25.8406, -187.6714, 1003.5469, 17, 1}, // 24/7 Idleewood Tankstelle
    {999.9698, -920.0452, 42.3281, -25.8406, -187.6714, 1003.5469, 17, 2}, // 24/7 Mullholland Tankstelle
    {-78.6431, -1169.8074, 2.1424, -25.8406, -187.6714, 1003.5469, 17, 3}, // 24/7 Flint County Tankstelle
    {-1562.4082, -2733.1560, 48.7435, -25.8406, -187.6714, 1003.5469, 17, 4}, // 24/7 Whetstone Tankstelle
    {2194.4885, 1990.9581, 12.2969, -25.8406, -187.6714, 1003.5469, 17, 5}, // 24/7 Starfish Casino
    {2097.6875, 2224.2371, 11.0234, -25.8406, -187.6714, 1003.5469, 17, 6}, // 24/7 Emerald Isle
    {2884.7900, 2453.6396, 11.0690, -25.8406, -187.6714, 1003.5469, 17, 7}, // 24/7 Creek
    {2546.4626, 1971.9843, 10.8203, -25.8406, -187.6714, 1003.5469, 17, 8}, // 24/7 Starfish Casino
    {2452.3582, 2064.7256, 10.8203, -25.8406, -187.6714, 1003.5469, 17, 9}, // 24/7 Old Venturas Strip
    {2637.2122, 1129.2606, 11.1797, -25.8406, -187.6714, 1003.5469, 17, 10}, // 24/7 Come-A-Lot Tankstelle
    {1352.4924, -1758.8451, 13.5078, -25.8406, -187.6714, 1003.5469, 17, 11}, // 24/7 Stadthalle
    {-1676.0979, 432.0437, 7.1797, -25.8406, -187.6714, 1003.5469, 17, 12}, // 24/7 Easter Basin Tankstelle
    {-2420.1526, 969.8209, 45.2969, -25.8406, -187.6714, 1003.5469, 17, 13}, // 24/7 Juniper Hollow Tankstelle
    {2188.0325, 2469.6150, 11.2422, -25.8406, -187.6714, 1003.5469, 17, 14}, // 24/7 Emerals Isle Tankstelle
    {2150.7471, 2734.0337, 11.1763, -25.8406, -187.6714, 1003.5469, 17, 15}, // 24/7 Spinybed Tankstelle
    {1599.2450, 2221.7290, 11.0625, -25.8406, -187.6714, 1003.5469, 17, 16}, // 24/7 Redsands West Tankstelle
    {2117.5227, 896.7756, 11.1797, -25.8406, -187.6714, 1003.5469, 17, 17}, // 24/7 The Strip Tankstelle
    {663.0126, 1716.5026, 7.1875, -25.8406, -187.6714, 1003.5469, 17, 18}, // 24/7 Bone County Tankstelle
    {-1271.6030, 2713.2217, 50.2663, -25.8406, -187.6714, 1003.5469, 17, 19}, // 24/7 Tierra Robada Tankstelle
    {-1465.7823, 1873.4202, 32.6328, -25.8406, -187.6714, 1003.5469, 17, 20}, // 24/7 Tierra Robada 2 Tankstelle
    {1383.1257, 465.3380, 20.1948, -25.8406, -187.6714, 1003.5469, 17, 21}, // 24/7 Montgomery Tankstelle
    {2244.4226, -1665.0626, 15.4766, 207.7523, -111.0303, 1005.1328, 15, 0}, // Ganton Binco
    {2861.3064, 2430.7085, 11.0690, 207.7523, -111.0303, 1005.1328, 15, 1}, // Creek Binco
    {2102.2195, 2257.3752, 11.0234, 207.7523, -111.0303, 1005.1328, 15, 2}, // Emerald Isle Binco
    {2112.8276, -1212.0350, 23.9637, 207.7523, -111.0303, 1005.1328, 15, 3}, // Jefferson Binco
    {1656.6327, 1733.3412, 10.8281, 207.7523, -111.0303, 1005.1328, 15, 4}, // Las Venturas Airport Binco
    {461.1960, -1500.8562, 31.0593, 227.2287, -8.1683, 1002.2109, 5, 5}, // Rodeo Victim
    {-1694.5387, 950.7520, 24.8906, 227.2287, -8.1683, 1002.2109, 5, 6}, // Downtown San Fierro Victim
    {2090.4067, 2224.2866, 11.0234, 161.4139, -96.8216, 1001.8047, 18, 7}, // Emerald Isle Zip
    {-1882.4608, 866.2303, 35.1719, 161.4139, -96.8216, 1001.8047, 18, 8}, // Downtown San Fierro Zip
    {1457.3076, -1137.4480, 23.9657, 161.4139, -96.8216, 1001.8047, 18, 9}, // Downtown Los Santos Zip
    {2104.8557, -1806.4862, 13.3934, 372.3584, -133.0832, 1001.4922, 5, 0}, // Idleewood Pizza
    {2332.2166, 74.9827, 26.6210, 372.3584, -133.0832, 1001.4922, 5, 1}, // Palomino Creek Pizza
    {1367.2854, 248.4236, 19.5669, 372.3584, -133.0832, 1001.4922, 5, 2}, // Montgomery Pizza
    {203.5421, -202.4460, 1.5781, 372.3584, -133.0832, 1001.4922, 5, 3}, // Blueberry Pizza
    {2083.3149, 2224.0027, 11.0234, 372.3584, -133.0832, 1001.4922, 5, 4}, // Emerald Isle Pizza
    {-1720.9486, 1359.7400, 7.1853, 372.3584, -133.0832, 1001.4922, 5, 5}, // Espalande North San Fierro Pizza
    {-1808.4294, 945.5788, 24.8906, 372.3584, -133.0832, 1001.4922, 5, 6}, // Financial San Fierro Pizza
    {928.3748, -1352.8358, 13.3438, 364.8388, -11.4912, 1001.8516, 9, 0}, // Market Cluckin Bell
    {-1816.5310, 618.4895, 35.1719, 364.8388, -11.4912, 1001.8516, 9, 1}, // Downtown San Fierro Cluckin Bell
    {2397.7275, -1898.7258, 13.5469, 364.8388, -11.4912, 1001.8516, 9, 2}, // Willowfield Cluckin Bell
    {-1213.4275, 1830.5964, 41.9297, 364.8388, -11.4912, 1001.8516, 9, 3}, // Tierra Robada Cluckin Bell
    {2420.0740, -1508.9742, 24.0000, 364.8388, -11.4912, 1001.8516, 9, 4}, // East Los Santos Cluckin Bell
    {2393.2778, 2041.8110, 10.8203, 364.8388, -11.4912, 1001.8516, 9, 5}, // Old Venturas Strip Cluckin Bell
    {2838.3022, 2407.4683, 11.0690, 364.8388, -11.4912, 1001.8516, 9, 6}, // Creek Cluckin Bell
    {172.6606, 1176.6274, 14.7645, 364.8388, -11.4912, 1001.8516, 9, 7}, // Bone County Cluckin Bell
    {2638.1880, 1671.9564, 11.0234, 364.8388, -11.4912, 1001.8516, 9, 8}, // Pilgrim Cluckin Bell
    {2102.4355, 2228.7559, 11.0234, 364.8388, -11.4912, 1001.8516, 9, 9}, // Emerald Isle Cluckin Bell
    {-2155.0603, -2460.3020, 30.8516, 364.8388, -11.4912, 1001.8516, 9, 10}, // Angel Pine Cluckin Bell
    {1199.9180, -918.6084, 43.1153, 363.0526, -74.9714, 1001.5078, 10, 0}, // BSN
    {811.0704, -1616.0961, 13.5469, 363.0526, -74.9714, 1001.5078, 10, 1}, // Marina Burger Shot
    {-2336.6326, -166.8775, 35.5547, 363.0526, -74.9714, 1001.5078, 10, 2}, // Garcia Burger Shot
    {1872.5382, 2071.7246, 11.0625, 363.0526, -74.9714, 1001.5078, 10, 3}, // Redsands East Burger Shot
    {-1912.3461, 828.0004, 35.2243, 363.0526, -74.9714, 1001.5078, 10, 4}, // Downtown San Fierro Burger Shot
    {2472.3828, 2034.1818, 11.0625, 363.0526, -74.9714, 1001.5078, 10, 5}, // Old Venturas Strip Burger Shot
    {2169.7561, 2795.9231, 10.8203, 363.0526, -74.9714, 1001.5078, 10, 6}, // Spinybed Burger Shot
    {1158.2513, 2072.1287, 11.0625, 363.0526, -74.9714, 1001.5078, 10, 7} // Whitewood Estates Burger Shot
    };






    OnGameModeInit



    for(new i=0;i<MAX_OPEN;i++)
    {
    CreatePickup(1318, 1, OpenInteriorsInfo[i][OpenEingangX], OpenInteriorsInfo[i][OpenEingangY], OpenInteriorsInfo[i][OpenEingangZ], 0);
    CreatePickup(1318, 1, OpenInteriorsInfo[i][OpenAusgangX], OpenInteriorsInfo[i][OpenAusgangY], OpenInteriorsInfo[i][OpenAusgangZ], OpenInteriorsInfo[i][OpenInteriorVirtual]);
    }


    OnPlayerKeyStateChange


    if(newkeys & KEY_SECONDARY_ATTACK)
    {
    for(new i=0; i<MAX_OPEN; i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 1.5, OpenInteriorsInfo[i][OpenEingangX], OpenInteriorsInfo[i][OpenEingangY], OpenInteriorsInfo[i][OpenEingangZ]))//Eingang
    {
    SetPlayerVirtualWorld(playerid, OpenInteriorsInfo[i][OpenInteriorVirtual]);
    SetPlayerInterior(playerid, OpenInteriorsInfo[i][OpenInteriorID]);
    SetPlayerPos(playerid, OpenInteriorsInfo[i][OpenAusgangX], OpenInteriorsInfo[i][OpenAusgangY], OpenInteriorsInfo[i][OpenAusgangZ]);
    break;
    }
    if(IsPlayerInRangeOfPoint(playerid, 1.5, OpenInteriorsInfo[i][OpenAusgangX], OpenInteriorsInfo[i][OpenAusgangY], OpenInteriorsInfo[i][OpenAusgangZ]) && GetPlayerVirtualWorld(playerid)==OpenInteriorsInfo[i[OpenInteriorVirtual])//Ausgang
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, OpenInteriorsInfo[i][OpenEingangX], OpenInteriorsInfo[i][OpenEingangY], OpenInteriorsInfo[i][OpenEingangZ]);
    break;
    }
    }
    }


    Gruß:
    ZeusLukas