Guest User

Sr4pwn's Easy Interiors

a guest
Sep 10th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 12.45 KB | None | 0 0
  1. //Please do not delete the Credits
  2. //Made by Sry4pwn, 2011
  3.  
  4. #include <a_samp>
  5.  
  6. #define D_INTKATWAHL 2998
  7. #define D_INTERIORS 2999
  8.  
  9. enum intInfo{
  10.     interior,
  11.     Float:PosX,
  12.     Float:PosY,
  13.     Float:PosZ,
  14.     interiorname[22]
  15. }
  16.  
  17. new saveHouses[][intInfo] = {
  18.     {5,2233.6919,-1112.8107,1050.8828,"Safe House 1"}, //SafeHouses
  19.     {6,2194.7900,-1204.3500,1049.0234,"Safe House 2"},
  20.     {9,2319.1272,-1023.9562,1050.2109,"Safe House 3"},
  21.     {10,2261.0977,-1137.8833,1050.6328,"Safe House 4"},
  22.     {3,234.6087,1187.8195,1080.2578,"Burglary X1"}, //Burglarys
  23.     {2,225.5707,1240.0643,1082.1406,"Burglary X2"},
  24.     {1,224.288,1289.1907,1082.1406,"Burglary X3"},
  25.     {5,239.2819,1114.1991,1080.9922,"Burglary X4"}, //5-10fehlend
  26.     {5,227.7559,1114.3844,1080.9922,"Burglary X11"},
  27.     {4,261.1165,1287.2197,1080.2578,"Burglary  X12"},
  28.     {4,221.6766,1142.4962,1082.6094,"Burglary X13"},
  29.     {10,24.3769,1341.1829,1084.375,"Burglary X14"},
  30.     {4,-262.1759,1456.6158,1084.3672,"Burglary X15"},
  31.     {5,22.861,1404.9165,1084.4297,"Burglary X16"},
  32.     {5,140.3679,1367.8837,1083.8621,"Burglary X17"},
  33.     {6,234.2826,1065.229,1084.2101,"House X18"},
  34.     {6,-68.5145,1353.8485,1080.2109,"House X19"},
  35.     {15,-285.2511,1471.197,1084.375,"House X20"},
  36.     {8,-42.5267,1408.23,1084.4297,"Burglary X21"},
  37.     {9,84.9244,1324.2983,1083.8594,"Burglary X22"},
  38.     {9,260.7421,1238.2261,1084.2578,"Burglary X23"}, //letztes Burglary
  39.     {15,295.1391,1473.3719,1080.2578,"Burglary Houses"}, //Andere Häuser ?
  40.     {2,446.626,1397.738,1084.3047,"Pair Burglary"},
  41.     {12,2323.7063,-1147.6509,1050.7101,"Unused House"},
  42.     {1,2216.1282,-1076.3052,1050.4844,"The Camel's Safehouse"},
  43.     {8,2365.1089,-1133.0795,1050.875,"Verdant Bluffs House"},
  44.     {11,2282.9099,-1138.2900,1050.8984,"Willowfield House"}
  45. };
  46. new shops[][intInfo] = {
  47.     {3,-103.559165,-24.225606,1000.718750,"Sex Shop"}, //Shops
  48.     {6,-2240.468505,137.060440,1035.414062,"Zero's Rc-Shop"},
  49.     {3,833.269775,10.588416,1004.179687,"Offtrack Betting"},
  50.     {3,-2029.798339,-106.675910,1035.171875,"Driving School"},
  51.     {3,1494.325195,1304.942871,1093.28906,"Bike School"},
  52.     {15,207.7,-109.0,1005.2,"Binco"}, //Bekleidungsläden
  53.     {14,204.3,-166.7,1000.5,"Didier Sachs"},
  54.     {3,207.9,-138.8,1003.5,"Prolaps"},
  55.     {1,203.8,-48.5,1001.8,"Suburban"},
  56.     {5,226.3,-7.4,1002.2,"Victim"},
  57.     {18,161.4,-93.2,1001.8,"Zip"},
  58.     {2,411.625976,-21.433298,1001.804687,"Barber1"}, //Friseure
  59.     {3,418.652984,-82.639793,1001.804687,"Barber2"},
  60.     {12,412.021972,-52.649898,1001.898437,"Barber3"},
  61.     {16,-204.439987,-26.453998,1002.273437,"Tatoo 1"}, //Tatoo Shops
  62.     {17,-204.439987,-8.469599,1002.273437,"Tatoo 2"},
  63.     {3,-204.439987,-43.652496,1002.273437,"Tatoo 3"},
  64.     {5,772.111999,-3.898649,1000.728820,"LS Gym"},
  65.     {6,774.213989,-48.924297,1000.585937,"SF Gym"},
  66.     {7,773.579956,-77.096694,1000.655029,"LV Gym"},
  67.     {17,-25.884498,-185.868988,1003.546875, "24/7 Nr.1"}, //Alle 24/7
  68.     {10,6.091179,-29.271898,1003.549438, "24/7 Nr.2"},
  69.     {18,-30.946699,-89.609596,1003.546875, "24/7 NR.3"},
  70.     {16,-25.132598,-139.066986,1003.546875,"24/7 NR.4"},
  71.     {4,-27.312299,-29.277599,1003.557250,"24/7 NR.5"},
  72.     {6,-26.691598,-55.714897,1003.546875,"24/7 NR.6"},
  73.     {1,286.148986,-40.644397,1001.515625, "Ammu 1"}, //Alle ammus
  74.     {4,286.800994,-82.547599,1001.515625,"Ammu 2"},
  75.     {6,296.919982,-108.071998,1001.515625,"Ammu 3"},
  76.     {7,314.820983,-141.431991,999.601562,"Ammu 4"},
  77.     {6,316.524993,-167.706985,999.593750,"Ammu 5"},
  78.     {7,302.292877,-143.139099,1004.062500,"Ammu Booths"},
  79.     {7,298.507934,-141.647048,1004.054748,"Ammu Range"}
  80. };
  81. new restaurants[][intInfo] = {
  82.     {12,446.3247,509.9662,1001.4195,"Budget-Inn Motel"}, //Motels
  83.     {15,2215.4,-1147.5,1025.8,"Jefferson Motel"},
  84.     {3,942.171997,-16.542755,1000.929687,"Brothel"},
  85.     {3,964.106994,-53.205497,1001.124572,"Tiger Skin Brothel"},
  86.     {2,1204.809936,-11.586799,1000.921875,"Strip Club"}, //Stripclubs
  87.     {2,1204.809936,13.897239,1000.921875,"Strip Private"},
  88.     {3,-2640.762939,1406.682006,906.460937,"Pleasure Dome"},
  89.     {3,1212.019897,-28.663099,1000.953125,"Big Spread Ranch"},
  90.     {17,493.390991,-22.722799,1000.679687,"Club"}, //Bars, Clubs
  91.     {11,501.980987,-69.150199,998.757812,"Bar"},
  92.     {18,-227.027999,1401.229980,27.765625,"Lil'ProbeInn"}, //restaurants
  93.     {18, -221.059051,1408.984008,27.773437, "ProbeInn Toilet"},
  94.     {4,457.304748,-88.428497,999.554687,"Jay's Diner"},
  95.     {5,454.973937,-110.104995,1000.077209,"Gant Bridge Diner"},
  96.     {6,435.271331,-80.958938,999.554687,"Secret Valley Diner"},
  97.     {1,452.489990,-18.179698,1001.132812,"World Of Cock"},
  98.     {1,681.557861,-455.680053,-25.609874,"Welcome Pump"},
  99.     {10,375.962463,-65.816848,1001.507812,"Burger Shot"}, //Fast food
  100.     {9,369.579528,-4.487294,1001.858886,"Cluckin Bell"},
  101.     {5,373.825653,-117.270904,1001.499511,"Well Stacked Pizza"},
  102.     {17,381.169189,-188.803024,1000.632812,"Rusty Browns Donuts"}
  103. };
  104. new houses[][intInfo] = {
  105.     {8,2807.3604,-1171.7048,1025.5703,"Colonel Furhberger"}, //Privathäuser anderer
  106.     {2,2447.8704,-1704.4509,1013.5078,"Ryder´s House"},
  107.     {3,2496.0549,-1695.1749,1014.7422,"Johnson´s House"},
  108.     {5,1267.8407,-776.9587,1091.9063,"MaddDog Mansion"},
  109.     {3,513.882507,-11.269994,1001.565307,"Og Loc's House"},
  110.     {1,2527.654052,-1679.388305,1015.498596,"Sweets House"},
  111.     {3,1527.229980,-11.574499,1002.097106,"BDup's House"},
  112.     {2,1523.509887,-47.821197,1002.130981,"BDup's Crack Pad"},
  113.     {5,2350.339843,-1181.649902,1027.976562,"Gang House"},
  114.     {5,318.564971,1118.209960,1083.882812,"Crack Den"},
  115.     {2,269.6405,305.9512,999.1484,"Katie's Lovenest"}, //Häuser der freundinnen
  116.     {5,322.5014,303.6906,999.1484,"Barbara's Love nest"},
  117.     {4,306.1966,307.819,1003.3047,"Michelle's Love Nest"},
  118.     {6,344.9984,307.1824,999.1557,"Millie's Room"},
  119.     {1,245.2307,304.7632,999.1484,"Denise's Bedroom"},
  120.     {3,291.3,310.0,999.2,"Helena's Room"}
  121. };
  122. new umgebungen[][intInfo] = {
  123.     {7,-1398.065307,-217.028900,1051.115844,"8-Track"}, //Rennstrecken
  124.     {15,-1398.103515,937.631164,1036.479125,"Bloodbowl2"},
  125.     {4,-1444.645507,-664.526000,1053.572998,"Dirttrack"},
  126.     {14,-1465.268676,1557.868286,1052.531250,"Kickstart"},
  127.     {1,-1401.829956,107.051300,1032.273437,"Vice Stadium"},
  128.     {1,-794.806396,497.738037,1376.195312,"Liberty City"},
  129.     {10,-976.0,1061.0,1345.7,"Rc Battlefield"},
  130.     {14,-1827.147338,7.207417,1061.143554,"Airport Ticket"}, //Airport
  131.     {14,-1861.936889,54.908092,1061.143554,"Airport Baggage"},
  132.     {1,1.808619,32.384357,1199.593750,"Shamal"}, //Flugzeuge
  133.     {9,315.745086,984.969299,1958.919067,"Andromada"}
  134. };
  135. new other[][intInfo] = {
  136.     {17,-959.564392,1848.576782,9.000000,"Sherman Dam"}, //Öffentliche Gebäude
  137.     {3,384.808624,173.804992,1008.382812,"Planning Dept."},
  138.     {0,2315.952880,-1.618174,26.742187,"Bank"},
  139.     {18,1710.433715,-1669.379272,20.225049,"Ls Atrium"},
  140.     {6,246.783996,63.900199,1003.640625,"LS Police"}, //Pd's
  141.     {10,246.375991,109.245994,1003.218750,"SF Police"},
  142.     {3,288.745971,169.350997,1007.171875,"LV Police"},
  143.     {1,-2159.122802,641.517517,1052.381713,"Woozies Office"},
  144.     {1,2169.461181,1618.798339,999.976562,"Catigulas Basement"},
  145.     {1,2131.507812,1600.818481,1008.359375,"Catigulas Hidden Room"},
  146.     {10,1889.953369,1017.438293,31.882812,"FCD Janitors Room"},
  147.     {3,1038.531372,0.111030,1001.284484,"Blastin Fools Hallway"},
  148.     {6,761.412963,1440.191650,1102.703125,"Fanny Batters"},
  149.     {1,963.418762,2108.292480,1011.030273,"Meat Factory"}, //Industrielle Bauten
  150.     {1,1412.639892,-1.787510,1000.924377,"Warehouse 1"},
  151.     {18,1302.519897,-1.787510,1001.028259,"Warehouse 2"},
  152.     {0,76.632553,-301.156829,1.578125,"Blueberry Warehouse"},
  153.     {0,1059.895996,2081.685791,10.820312,"LV Warehouse"},
  154.     {0,1059.180175,2148.938720,10.820312,"LV Warehouse(Hidden)"},
  155.     {2,2543.462646,-1308.379882,1026.728393,"Crack Factory"},
  156.     {0,-1790.378295,1436.949829,7.187500,"SF-Garage"}
  157. };
  158.  
  159.  
  160. public OnPlayerCommandText(playerid, cmdtext[])
  161. {
  162.     if (!strcmp("/gotoint", cmdtext, true, 8) && IsPlayerAdmin(playerid)) {
  163.         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");
  164.         return 1;
  165.     }
  166.     return 0;
  167. }
  168.  
  169. public OnFilterScriptInit()
  170. {
  171.     print("Sry4pwn's Easy Interiors loaded");
  172.     return 1;
  173. }
  174.  
  175. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  176. {
  177.     if(dialogid==D_INTKATWAHL) {
  178.         if(response) {
  179.             switch(listitem) {
  180.                 case 0 : {
  181.                     new str[24*sizeof(saveHouses)];
  182.                     for(new i =0; i<sizeof(saveHouses); i++) {
  183.                         format(str, sizeof(str), "%s%s\n", str, saveHouses[i][interiorname]);
  184.                     }
  185.                     ShowPlayerDialog(playerid, D_INTERIORS, DIALOG_STYLE_LIST, "Save Houses", str, "Porten", "---");
  186.                 }
  187.                 case 1 : {
  188.                     new str[24*sizeof(houses)];
  189.                     for(new i =0; i<sizeof(houses); i++) {
  190.                         format(str, sizeof(str), "%s%s\n", str, houses[i][interiorname]);
  191.                     }
  192.                     ShowPlayerDialog(playerid, D_INTERIORS, DIALOG_STYLE_LIST, "Wohnhäuser", str, "Porten", "---");
  193.                 }
  194.                 case 2 : {
  195.                     new str[24*sizeof(shops)];
  196.                     for(new i =0; i<sizeof(shops); i++) {
  197.                         format(str, sizeof(str), "%s%s\n", str, shops[i][interiorname]);
  198.                     }
  199.                     ShowPlayerDialog(playerid, D_INTERIORS, DIALOG_STYLE_LIST, "Shops", str, "Porten", "---");
  200.                 }
  201.                 case 3 : {
  202.                     new str[24*sizeof(restaurants)];
  203.                     for(new i =0; i<sizeof(restaurants); i++) {
  204.                         format(str, sizeof(str), "%s%s\n", str, restaurants[i][interiorname]);
  205.                     }
  206.                     ShowPlayerDialog(playerid, D_INTERIORS, DIALOG_STYLE_LIST, "Restaurants/Bars/Clubs", str, "Porten", "---");
  207.                 }
  208.                 case 4 : {
  209.                     new str[24*sizeof(umgebungen)];
  210.                     for(new i =0; i<sizeof(umgebungen); i++) {
  211.                         format(str, sizeof(str), "%s%s\n", str, umgebungen[i][interiorname]);
  212.                     }
  213.                     ShowPlayerDialog(playerid, D_INTERIORS, DIALOG_STYLE_LIST, "Umgebungen", str, "Porten", "---");
  214.                 }
  215.                 case 5 : {
  216.                     new str[24*sizeof(other)];
  217.                     for(new i =0; i<sizeof(other); i++) {
  218.                         format(str, sizeof(str), "%s%s\n", str, other[i][interiorname]);
  219.                     }
  220.                     ShowPlayerDialog(playerid, D_INTERIORS, DIALOG_STYLE_LIST, "Sonstige Interiors", str, "Porten", "---");
  221.                 }
  222.             }
  223.             SetPVarInt(playerid, "intKategorie", listitem);
  224.         }
  225.     }
  226.     if(dialogid==D_INTERIORS) {
  227.         if(response) {
  228.             new kat=GetPVarInt(playerid, "intKategorie");
  229.             DeletePVar(playerid, "intKategorie");
  230.             new tmpstr[64];
  231.             switch(kat) {
  232.                 case 0 : {
  233.                     SetPlayerInterior(playerid, saveHouses[listitem][interior]);
  234.                     SetPlayerPos(playerid, saveHouses[listitem][PosX], saveHouses[listitem][PosY], saveHouses[listitem][PosZ]);
  235.                     format(tmpstr, sizeof tmpstr, "Du hast dich zum Interior geportet: %s", saveHouses[listitem][interiorname]);
  236.                 }
  237.                 case 1 : {
  238.                     SetPlayerInterior(playerid, houses[listitem][interior]);
  239.                     SetPlayerPos(playerid, houses[listitem][PosX], houses[listitem][PosY], houses[listitem][PosZ]);
  240.                     format(tmpstr, sizeof tmpstr, "Du hast dich zum Interior geportet: %s", houses[listitem][interiorname]);
  241.                 }
  242.                 case 2 : {
  243.                     SetPlayerInterior(playerid, shops[listitem][interior]);
  244.                     SetPlayerPos(playerid, shops[listitem][PosX], shops[listitem][PosY], shops[listitem][PosZ]);
  245.                     format(tmpstr, sizeof tmpstr, "Du hast dich zum Interior geportet: %s", shops[listitem][interiorname]);
  246.                 }
  247.                 case 3 : {
  248.                     SetPlayerInterior(playerid, restaurants[listitem][interior]);
  249.                     SetPlayerPos(playerid, restaurants[listitem][PosX], restaurants[listitem][PosY], restaurants[listitem][PosZ]);
  250.                     format(tmpstr, sizeof tmpstr, "Du hast dich zum Interior geportet: %s", restaurants[listitem][interiorname]);
  251.                 }
  252.                 case 4 : {
  253.                     SetPlayerInterior(playerid, umgebungen[listitem][interior]);
  254.                     SetPlayerPos(playerid, umgebungen[listitem][PosX], umgebungen[listitem][PosY], umgebungen[listitem][PosZ]);
  255.                     format(tmpstr, sizeof tmpstr, "Du hast dich zum Interior geportet: %s", umgebungen[listitem][interiorname]);
  256.                 }
  257.                 case 5 : {
  258.                     SetPlayerInterior(playerid, other[listitem][interior]);
  259.                     SetPlayerPos(playerid, other[listitem][PosX], other[listitem][PosY], other[listitem][PosZ]);
  260.                     format(tmpstr, sizeof tmpstr, "Du hast dich zum Interior geportet: %s", other[listitem][interiorname]);
  261.                 }
  262.             }
  263.             SendClientMessage(playerid, 0xFFFFFFFF, tmpstr);
  264.             return 1;
  265.         }
  266.     }
  267.     return 1;
  268. }
Advertisement
Add Comment
Please, Sign In to add comment