Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Please do not delete the Credits
- //Made by Sry4pwn, 2011
- #include <a_samp>
- #define D_INTKATWAHL 2998
- #define D_INTERIORS 2999
- enum intInfo{
- interior,
- Float:PosX,
- Float:PosY,
- Float:PosZ,
- interiorname[22]
- }
- new saveHouses[][intInfo] = {
- {5,2233.6919,-1112.8107,1050.8828,"Safe House 1"}, //SafeHouses
- {6,2194.7900,-1204.3500,1049.0234,"Safe House 2"},
- {9,2319.1272,-1023.9562,1050.2109,"Safe House 3"},
- {10,2261.0977,-1137.8833,1050.6328,"Safe House 4"},
- {3,234.6087,1187.8195,1080.2578,"Burglary X1"}, //Burglarys
- {2,225.5707,1240.0643,1082.1406,"Burglary X2"},
- {1,224.288,1289.1907,1082.1406,"Burglary X3"},
- {5,239.2819,1114.1991,1080.9922,"Burglary X4"}, //5-10fehlend
- {5,227.7559,1114.3844,1080.9922,"Burglary X11"},
- {4,261.1165,1287.2197,1080.2578,"Burglary X12"},
- {4,221.6766,1142.4962,1082.6094,"Burglary X13"},
- {10,24.3769,1341.1829,1084.375,"Burglary X14"},
- {4,-262.1759,1456.6158,1084.3672,"Burglary X15"},
- {5,22.861,1404.9165,1084.4297,"Burglary X16"},
- {5,140.3679,1367.8837,1083.8621,"Burglary X17"},
- {6,234.2826,1065.229,1084.2101,"House X18"},
- {6,-68.5145,1353.8485,1080.2109,"House X19"},
- {15,-285.2511,1471.197,1084.375,"House X20"},
- {8,-42.5267,1408.23,1084.4297,"Burglary X21"},
- {9,84.9244,1324.2983,1083.8594,"Burglary X22"},
- {9,260.7421,1238.2261,1084.2578,"Burglary X23"}, //letztes Burglary
- {15,295.1391,1473.3719,1080.2578,"Burglary Houses"}, //Andere Häuser ?
- {2,446.626,1397.738,1084.3047,"Pair Burglary"},
- {12,2323.7063,-1147.6509,1050.7101,"Unused House"},
- {1,2216.1282,-1076.3052,1050.4844,"The Camel's Safehouse"},
- {8,2365.1089,-1133.0795,1050.875,"Verdant Bluffs House"},
- {11,2282.9099,-1138.2900,1050.8984,"Willowfield House"}
- };
- new shops[][intInfo] = {
- {3,-103.559165,-24.225606,1000.718750,"Sex Shop"}, //Shops
- {6,-2240.468505,137.060440,1035.414062,"Zero's Rc-Shop"},
- {3,833.269775,10.588416,1004.179687,"Offtrack Betting"},
- {3,-2029.798339,-106.675910,1035.171875,"Driving School"},
- {3,1494.325195,1304.942871,1093.28906,"Bike School"},
- {15,207.7,-109.0,1005.2,"Binco"}, //Bekleidungsläden
- {14,204.3,-166.7,1000.5,"Didier Sachs"},
- {3,207.9,-138.8,1003.5,"Prolaps"},
- {1,203.8,-48.5,1001.8,"Suburban"},
- {5,226.3,-7.4,1002.2,"Victim"},
- {18,161.4,-93.2,1001.8,"Zip"},
- {2,411.625976,-21.433298,1001.804687,"Barber1"}, //Friseure
- {3,418.652984,-82.639793,1001.804687,"Barber2"},
- {12,412.021972,-52.649898,1001.898437,"Barber3"},
- {16,-204.439987,-26.453998,1002.273437,"Tatoo 1"}, //Tatoo Shops
- {17,-204.439987,-8.469599,1002.273437,"Tatoo 2"},
- {3,-204.439987,-43.652496,1002.273437,"Tatoo 3"},
- {5,772.111999,-3.898649,1000.728820,"LS Gym"},
- {6,774.213989,-48.924297,1000.585937,"SF Gym"},
- {7,773.579956,-77.096694,1000.655029,"LV Gym"},
- {17,-25.884498,-185.868988,1003.546875, "24/7 Nr.1"}, //Alle 24/7
- {10,6.091179,-29.271898,1003.549438, "24/7 Nr.2"},
- {18,-30.946699,-89.609596,1003.546875, "24/7 NR.3"},
- {16,-25.132598,-139.066986,1003.546875,"24/7 NR.4"},
- {4,-27.312299,-29.277599,1003.557250,"24/7 NR.5"},
- {6,-26.691598,-55.714897,1003.546875,"24/7 NR.6"},
- {1,286.148986,-40.644397,1001.515625, "Ammu 1"}, //Alle ammus
- {4,286.800994,-82.547599,1001.515625,"Ammu 2"},
- {6,296.919982,-108.071998,1001.515625,"Ammu 3"},
- {7,314.820983,-141.431991,999.601562,"Ammu 4"},
- {6,316.524993,-167.706985,999.593750,"Ammu 5"},
- {7,302.292877,-143.139099,1004.062500,"Ammu Booths"},
- {7,298.507934,-141.647048,1004.054748,"Ammu Range"}
- };
- new restaurants[][intInfo] = {
- {12,446.3247,509.9662,1001.4195,"Budget-Inn Motel"}, //Motels
- {15,2215.4,-1147.5,1025.8,"Jefferson Motel"},
- {3,942.171997,-16.542755,1000.929687,"Brothel"},
- {3,964.106994,-53.205497,1001.124572,"Tiger Skin Brothel"},
- {2,1204.809936,-11.586799,1000.921875,"Strip Club"}, //Stripclubs
- {2,1204.809936,13.897239,1000.921875,"Strip Private"},
- {3,-2640.762939,1406.682006,906.460937,"Pleasure Dome"},
- {3,1212.019897,-28.663099,1000.953125,"Big Spread Ranch"},
- {17,493.390991,-22.722799,1000.679687,"Club"}, //Bars, Clubs
- {11,501.980987,-69.150199,998.757812,"Bar"},
- {18,-227.027999,1401.229980,27.765625,"Lil'ProbeInn"}, //restaurants
- {18, -221.059051,1408.984008,27.773437, "ProbeInn Toilet"},
- {4,457.304748,-88.428497,999.554687,"Jay's Diner"},
- {5,454.973937,-110.104995,1000.077209,"Gant Bridge Diner"},
- {6,435.271331,-80.958938,999.554687,"Secret Valley Diner"},
- {1,452.489990,-18.179698,1001.132812,"World Of Cock"},
- {1,681.557861,-455.680053,-25.609874,"Welcome Pump"},
- {10,375.962463,-65.816848,1001.507812,"Burger Shot"}, //Fast food
- {9,369.579528,-4.487294,1001.858886,"Cluckin Bell"},
- {5,373.825653,-117.270904,1001.499511,"Well Stacked Pizza"},
- {17,381.169189,-188.803024,1000.632812,"Rusty Browns Donuts"}
- };
- new houses[][intInfo] = {
- {8,2807.3604,-1171.7048,1025.5703,"Colonel Furhberger"}, //Privathäuser anderer
- {2,2447.8704,-1704.4509,1013.5078,"Ryder´s House"},
- {3,2496.0549,-1695.1749,1014.7422,"Johnson´s House"},
- {5,1267.8407,-776.9587,1091.9063,"MaddDog Mansion"},
- {3,513.882507,-11.269994,1001.565307,"Og Loc's House"},
- {1,2527.654052,-1679.388305,1015.498596,"Sweets House"},
- {3,1527.229980,-11.574499,1002.097106,"BDup's House"},
- {2,1523.509887,-47.821197,1002.130981,"BDup's Crack Pad"},
- {5,2350.339843,-1181.649902,1027.976562,"Gang House"},
- {5,318.564971,1118.209960,1083.882812,"Crack Den"},
- {2,269.6405,305.9512,999.1484,"Katie's Lovenest"}, //Häuser der freundinnen
- {5,322.5014,303.6906,999.1484,"Barbara's Love nest"},
- {4,306.1966,307.819,1003.3047,"Michelle's Love Nest"},
- {6,344.9984,307.1824,999.1557,"Millie's Room"},
- {1,245.2307,304.7632,999.1484,"Denise's Bedroom"},
- {3,291.3,310.0,999.2,"Helena's Room"}
- };
- new umgebungen[][intInfo] = {
- {7,-1398.065307,-217.028900,1051.115844,"8-Track"}, //Rennstrecken
- {15,-1398.103515,937.631164,1036.479125,"Bloodbowl2"},
- {4,-1444.645507,-664.526000,1053.572998,"Dirttrack"},
- {14,-1465.268676,1557.868286,1052.531250,"Kickstart"},
- {1,-1401.829956,107.051300,1032.273437,"Vice Stadium"},
- {1,-794.806396,497.738037,1376.195312,"Liberty City"},
- {10,-976.0,1061.0,1345.7,"Rc Battlefield"},
- {14,-1827.147338,7.207417,1061.143554,"Airport Ticket"}, //Airport
- {14,-1861.936889,54.908092,1061.143554,"Airport Baggage"},
- {1,1.808619,32.384357,1199.593750,"Shamal"}, //Flugzeuge
- {9,315.745086,984.969299,1958.919067,"Andromada"}
- };
- new other[][intInfo] = {
- {17,-959.564392,1848.576782,9.000000,"Sherman Dam"}, //Öffentliche Gebäude
- {3,384.808624,173.804992,1008.382812,"Planning Dept."},
- {0,2315.952880,-1.618174,26.742187,"Bank"},
- {18,1710.433715,-1669.379272,20.225049,"Ls Atrium"},
- {6,246.783996,63.900199,1003.640625,"LS Police"}, //Pd's
- {10,246.375991,109.245994,1003.218750,"SF Police"},
- {3,288.745971,169.350997,1007.171875,"LV Police"},
- {1,-2159.122802,641.517517,1052.381713,"Woozies Office"},
- {1,2169.461181,1618.798339,999.976562,"Catigulas Basement"},
- {1,2131.507812,1600.818481,1008.359375,"Catigulas Hidden Room"},
- {10,1889.953369,1017.438293,31.882812,"FCD Janitors Room"},
- {3,1038.531372,0.111030,1001.284484,"Blastin Fools Hallway"},
- {6,761.412963,1440.191650,1102.703125,"Fanny Batters"},
- {1,963.418762,2108.292480,1011.030273,"Meat Factory"}, //Industrielle Bauten
- {1,1412.639892,-1.787510,1000.924377,"Warehouse 1"},
- {18,1302.519897,-1.787510,1001.028259,"Warehouse 2"},
- {0,76.632553,-301.156829,1.578125,"Blueberry Warehouse"},
- {0,1059.895996,2081.685791,10.820312,"LV Warehouse"},
- {0,1059.180175,2148.938720,10.820312,"LV Warehouse(Hidden)"},
- {2,2543.462646,-1308.379882,1026.728393,"Crack Factory"},
- {0,-1790.378295,1436.949829,7.187500,"SF-Garage"}
- };
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (!strcmp("/gotoint", cmdtext, true, 8) && IsPlayerAdmin(playerid)) {
- ShowPlayerDialog(playerid,D_INTKATWAHL, DIALOG_STYLE_LIST, "Kategorie Wählen", "SaveHouses\tBulgarys\nAndere Wohnhäuser\nShops\nRestaurants\tBars/Clubs\nUmgebungen\tRennstrecken\nAnderes", "Wählen", "Abbrechen");
- return 1;
- }
- return 0;
- }
- public OnFilterScriptInit()
- {
- print("Sry4pwn's Easy Interiors loaded");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid==D_INTKATWAHL) {
- if(response) {
- switch(listitem) {
- case 0 : {
- new str[24*sizeof(saveHouses)];
- for(new i =0; i<sizeof(saveHouses); i++) {
- format(str, sizeof(str), "%s%s\n", str, saveHouses[i][interiorname]);
- }
- ShowPlayerDialog(playerid, D_INTERIORS, DIALOG_STYLE_LIST, "Save Houses", str, "Porten", "---");
- }
- case 1 : {
- new str[24*sizeof(houses)];
- for(new i =0; i<sizeof(houses); i++) {
- format(str, sizeof(str), "%s%s\n", str, houses[i][interiorname]);
- }
- ShowPlayerDialog(playerid, D_INTERIORS, DIALOG_STYLE_LIST, "Wohnhäuser", str, "Porten", "---");
- }
- case 2 : {
- new str[24*sizeof(shops)];
- for(new i =0; i<sizeof(shops); i++) {
- format(str, sizeof(str), "%s%s\n", str, shops[i][interiorname]);
- }
- ShowPlayerDialog(playerid, D_INTERIORS, DIALOG_STYLE_LIST, "Shops", str, "Porten", "---");
- }
- case 3 : {
- new str[24*sizeof(restaurants)];
- for(new i =0; i<sizeof(restaurants); i++) {
- format(str, sizeof(str), "%s%s\n", str, restaurants[i][interiorname]);
- }
- ShowPlayerDialog(playerid, D_INTERIORS, DIALOG_STYLE_LIST, "Restaurants/Bars/Clubs", str, "Porten", "---");
- }
- case 4 : {
- new str[24*sizeof(umgebungen)];
- for(new i =0; i<sizeof(umgebungen); i++) {
- format(str, sizeof(str), "%s%s\n", str, umgebungen[i][interiorname]);
- }
- ShowPlayerDialog(playerid, D_INTERIORS, DIALOG_STYLE_LIST, "Umgebungen", str, "Porten", "---");
- }
- case 5 : {
- new str[24*sizeof(other)];
- for(new i =0; i<sizeof(other); i++) {
- format(str, sizeof(str), "%s%s\n", str, other[i][interiorname]);
- }
- ShowPlayerDialog(playerid, D_INTERIORS, DIALOG_STYLE_LIST, "Sonstige Interiors", str, "Porten", "---");
- }
- }
- SetPVarInt(playerid, "intKategorie", listitem);
- }
- }
- if(dialogid==D_INTERIORS) {
- if(response) {
- new kat=GetPVarInt(playerid, "intKategorie");
- DeletePVar(playerid, "intKategorie");
- new tmpstr[64];
- switch(kat) {
- case 0 : {
- SetPlayerInterior(playerid, saveHouses[listitem][interior]);
- SetPlayerPos(playerid, saveHouses[listitem][PosX], saveHouses[listitem][PosY], saveHouses[listitem][PosZ]);
- format(tmpstr, sizeof tmpstr, "Du hast dich zum Interior geportet: %s", saveHouses[listitem][interiorname]);
- }
- case 1 : {
- SetPlayerInterior(playerid, houses[listitem][interior]);
- SetPlayerPos(playerid, houses[listitem][PosX], houses[listitem][PosY], houses[listitem][PosZ]);
- format(tmpstr, sizeof tmpstr, "Du hast dich zum Interior geportet: %s", houses[listitem][interiorname]);
- }
- case 2 : {
- SetPlayerInterior(playerid, shops[listitem][interior]);
- SetPlayerPos(playerid, shops[listitem][PosX], shops[listitem][PosY], shops[listitem][PosZ]);
- format(tmpstr, sizeof tmpstr, "Du hast dich zum Interior geportet: %s", shops[listitem][interiorname]);
- }
- case 3 : {
- SetPlayerInterior(playerid, restaurants[listitem][interior]);
- SetPlayerPos(playerid, restaurants[listitem][PosX], restaurants[listitem][PosY], restaurants[listitem][PosZ]);
- format(tmpstr, sizeof tmpstr, "Du hast dich zum Interior geportet: %s", restaurants[listitem][interiorname]);
- }
- case 4 : {
- SetPlayerInterior(playerid, umgebungen[listitem][interior]);
- SetPlayerPos(playerid, umgebungen[listitem][PosX], umgebungen[listitem][PosY], umgebungen[listitem][PosZ]);
- format(tmpstr, sizeof tmpstr, "Du hast dich zum Interior geportet: %s", umgebungen[listitem][interiorname]);
- }
- case 5 : {
- SetPlayerInterior(playerid, other[listitem][interior]);
- SetPlayerPos(playerid, other[listitem][PosX], other[listitem][PosY], other[listitem][PosZ]);
- format(tmpstr, sizeof tmpstr, "Du hast dich zum Interior geportet: %s", other[listitem][interiorname]);
- }
- }
- SendClientMessage(playerid, 0xFFFFFFFF, tmpstr);
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment