Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- #define DIALOG_TELEPORT_MENU 1
- #define DIALOG_GENERAL_STORE 2
- #define DIALOG_AMMU_NATIONS 3
- #define DIALOG_HOUSES 4
- #define DIALOG_SHOPS 5
- #define DIALOG_CLOTHING_STORES 6
- #define DIALOG_MISCELLANIOUS 7
- #define COLOR_WHITE 0xFFFFFFFF
- enum TeleportEnum
- {
- telName[128],
- Float:telPosX,
- Float:telPosY,
- Float:telPosZ,
- telInt
- }
- new GeneralStoreInteriors[6][TeleportEnum] =
- {
- {"24/7 (Version 1)", -25.884498, -185.868988, 1003.546875, 17},
- {"24/7 (Version 2)", 6.091179, -29.271898, 1003.549438, 10},
- {"24/7 (Version 3)", -30.946699, -89.609596, 1003.546875, 18},
- {"24/7 (Version 4)", -25.132598, -139.066986, 1003.54687, 16},
- {"24/7 (Version 5)", -27.312299, -29.277599, 1003.557250, 4},
- {"24/7 (Version 6)", -26.691598, -55.714897, 1003.546875, 6}
- };
- new AmmuNationInteriors[7][TeleportEnum] =
- {
- {"Ammu-Nation (Version 1)", 286.148986, -40.644397, 1001.515625, 1},
- {"Ammu-Nation (Version 2)", 286.800994, -82.547599, 1001.515625, 4},
- {"Ammu-Nation (Version 3)", 296.919982, -108.071998, 1001.515625, 6},
- {"Ammu-Nation (Version 4)", 314.820983, -141.431991, 999.601562, 7},
- {"Ammu-Nation (Version 5)", 316.524993, -167.706985, 999.593750, 6},
- {"Ammu-Nation Booths", 302.292877, -143.139099, 1004.062500, 7},
- {"Ammu-Nation Range", 298.507934,-141.647048,1004.054748, 7}
- };
- new HouseInteriors[26][TeleportEnum] =
- {
- {"Burglary House 1", 235.508994, 1189.169897, 1080.339966, 3},
- {"Burglary House 2", 225.756989, 1240.000000, 1082.149902, 2},
- {"Burglary House 3", 223.043991, 1289.259888, 1082.199951, 1},
- {"Burglary House 4", 225.630997, 1022.479980, 1084.069946, 7},
- {"Burglary House 5", 295.138977, 1474.469971,1080.519897, 15},
- {"Burglary House 6", 328.493988, 1480.589966, 1084.449951, 15},
- {"Burglary House 7", 385.803986, 1471.769897, 1080.209961, 15},
- {"Denise's Room", 244.411987, 305.032989, 999.148437, 1},
- {"Katie's Room", 271.884979, 306.631988, 999.148437, 2},
- {"Helena's Room", 291.282989, 310.031982, 999.148437, 3},
- {"Michelle's Room", 302.180999, 300.722991, 999.148437, 4},
- {"Barbara's Room", 322.197998, 302.497985, 999.148437, 5},
- {"Millie's Room", 346.870025, 309.259033, 999.155700, 6},
- {"Johnson's House", 2496.65, -1696.55, 1014.74, 3},
- {"Ryder's House", 2454.717041, -1700.871582, 1013.515197, 2},
- {"Sweet's House", 2527.654052, -1679.388305, 1015.498596, 1},
- {"Golden Bed Motel Room", 2251.85, -1138.16, 1050.63, 9},
- {"Red Bed Motel Room", 2262.83, -1137.71, 1050.63, 10},
- {"Hashbury House", 2260.76, -1210.45, 1049.02, 10},
- {"Verdant Bluffs Safe House", 2365.42, -1131.85, 1050.88, 8},
- {"Unused Safe House", 2324.33, -1144.79, 1050.71, 12},
- {"Madd Dogg's Mansion", 1299.14, -794.77, 1084.00, 5},
- {"Burning Desire", 2350.339843, -1181.649902, 1027.976562, 5},
- {"Crack Den", 318.564971, 1118.209960, 1083.882812, 5},
- {"Woozie's Apartment", -2159.122802, 641.517517, 1052.381713, 1},
- {"Colonel Furhberger's", 2807.619873, -1171.899902, 1025.570312, 8}
- };
- new Shops[14][TeleportEnum] =
- {
- {"Sex Shop", -103.559165, -24.225606, 1000.718750, 3},
- {"Zero's RC Shop", -2240.468505, 137.060440, 1035.414062, 6},
- {"Ten Green Bottles", 501.980987, -69.150199, 998.757812, 11},
- {"Lil' Probe Inn", -227.027999, 1401.229980, 27.765625, 18},
- {"Jay's Dinner", 457.304748, -88.428497, 999.554687, 4},
- {"Burger Shot", 375.962463, -65.816848, 1001.507812, 10},
- {"Cluckin' Bell", 369.579528, -4.487294, 1001.858886, 9},
- {"Pizza Stack", 373.825653, -117.270904, 1001.499511, 5},
- {"Donut Shop", 381.169189, -188.803024, 1000.632812, 17},
- {"Barber's Shop 1", 411.625976, -21.433298, 1001.804687, 2},
- {"Barber's Shop 2", 418.652984, -82.639793, 1001.804687, 3},
- {"Barber's Shop 3", 412.021972, -52.649898, 1001.898437, 12},
- {"Tattoo Parlor", -204.439987, -26.453998, 1002.273437, 16},
- {"Off Track Betting Shop", 833.269775, 10.588416, 1004.179687, 3}
- };
- new ClothingStores[6][TeleportEnum] =
- {
- {"Binco", 207.737991, -109.019996, 1005.132812, 15},
- {"Didier Sachs", 204.332992,-166.694992,1000.523437, 14},
- {"Pro-Laps", 207.054992,-138.804992,1003.507812, 3},
- {"Sub-Urban", 203.777999, -48.492397, 1001.804687, 1},
- {"Victim", 226.293991, -7.431529,1002.210937, 5},
- {"ZIP", 161.391006, -93.159156, 1001.804687, 18}
- };
- new Miscellanious[21][TeleportEnum] =
- {
- {"Los Santos Police Department", 246.783996, 63.900199, 1003.640625, 6},
- {"San Fierro Police Department", 246.375991, 109.245994, 1003.218750, 10},
- {"Las Venturas Police Department", 288.745971, 169.350997, 1007.171875, 3},
- {"Planning Department", 384.808624, 173.804992, 1008.382812, 3},
- {"Ganton Gym", 772.111999, -3.898649, 1000.728820, 5},
- {"Cobra Marital Arts Gym", 774.213989, -48.924297, 1000.585937, 6},
- {"Below the Belt Gym", 773.579956, -77.096694, 1000.655029, 7},
- {"Warehouse 1", 1412.639892, -1.787510, 1000.924377, 1},
- {"Warehouse 2", 1302.519897, -1.787510, 1001.028259, 18},
- {"Jefferson's Motel", 2215.454833, -1147.475585, 1025.796875, 15},
- {"Meat Factory", 963.418762, 2108.292480, 1011.030273, 1},
- {"Caligula's Casino", 2233.8032, 1712.2303, 1011.7632, 1},
- {"4 Dragons Casino", 2016.2699, 1017.7790, 996.8750, 10},
- {"Casino", 1118.8878, -10.2737, 1002.0859, 12},
- {"Pleasure Domes", -2640.762939, 1406.682006, 906.460937, 3},
- {"Atrium", 1710.433715, -1669.379272, 20.225049, 18},
- {"Driving School", 1494.325195, 1304.942871, 1093.289062, 3},
- {"RC Battlefield", -975.975708, 1060.983032, 1345.671875, 10},
- {"Alhambra Club", 493.390991, -22.722799, 1000.679687, 17},
- {"Sherman Dam", -959.564392, 1848.576782, 9.000000, 17},
- {"Big Smoke's Crack Palace", 2543.462646, -1308.379882, 1026.728393, 2}
- };
- CMD:interiors(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_TELEPORT_MENU, DIALOG_STYLE_LIST, "Teleport Menu", "24/7's\nAmmu-Nations\nHouses\nShops\nClothing Stores\nMiscellanious", "Select", "Back");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_TELEPORT_MENU)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- new string[512];
- for(new x;x<sizeof(GeneralStoreInteriors);x++)
- {
- format(string, sizeof(string), "%s%s\n", string, GeneralStoreInteriors[x][telName]);
- }
- ShowPlayerDialog(playerid, DIALOG_GENERAL_STORE, DIALOG_STYLE_LIST, "Teleport Menu - 24/7's", string, "Select", "Back");
- }
- case 1:
- {
- new string[512];
- for(new x;x<sizeof(AmmuNationInteriors);x++)
- {
- format(string, sizeof(string), "%s%s\n", string, AmmuNationInteriors[x][telName]);
- }
- ShowPlayerDialog(playerid, DIALOG_AMMU_NATIONS, DIALOG_STYLE_LIST, "Teleport Menu - Ammu-Nations", string, "Select", "Back");
- }
- case 2:
- {
- new string[512];
- for(new x;x<sizeof(HouseInteriors);x++)
- {
- format(string, sizeof(string), "%s%s\n", string, HouseInteriors[x][telName]);
- }
- ShowPlayerDialog(playerid, DIALOG_HOUSES, DIALOG_STYLE_LIST, "Teleport Menu - Houses", string, "Select", "Back");
- }
- case 3:
- {
- new string[512];
- for(new x;x<sizeof(Shops);x++)
- {
- format(string, sizeof(string), "%s%s\n", string, Shops[x][telName]);
- }
- ShowPlayerDialog(playerid, DIALOG_SHOPS, DIALOG_STYLE_LIST, "Teleport Menu - Shops", string, "Select", "Back");
- }
- case 4:
- {
- new string[512];
- for(new x;x<sizeof(ClothingStores);x++)
- {
- format(string, sizeof(string), "%s%s\n", string, ClothingStores[x][telName]);
- }
- ShowPlayerDialog(playerid, DIALOG_CLOTHING_STORES, DIALOG_STYLE_LIST, "Teleport Menu - Clothing Stores", string, "Select", "Back");
- }
- case 5:
- {
- new string[512];
- for(new x;x<sizeof(Miscellanious);x++)
- {
- format(string, sizeof(string), "%s%s\n", string, Miscellanious[x][telName]);
- }
- ShowPlayerDialog(playerid, DIALOG_MISCELLANIOUS, DIALOG_STYLE_LIST, "Teleport Menu - Miscellanious", string, "Select", "Back");
- }
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_GENERAL_STORE)
- {
- if(response)
- {
- new string[128];
- SetPlayerPos(playerid, GeneralStoreInteriors[listitem][telPosX], GeneralStoreInteriors[listitem][telPosY], GeneralStoreInteriors[listitem][telPosZ]);
- SetPlayerInterior(playerid, GeneralStoreInteriors[listitem][telInt]);
- format(string, sizeof(string), "You have been teleported to %s.", GeneralStoreInteriors[listitem][telName]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_TELEPORT_MENU, DIALOG_STYLE_LIST, "Teleport Menu", "24/7's\nAmmu-Nations\nHouses\nShops\nClothing Stores\nMiscellanious", "Select", "Back");
- return 1;
- }
- }
- if(dialogid == DIALOG_AMMU_NATIONS)
- {
- if(response)
- {
- new string[128];
- SetPlayerPos(playerid, AmmuNationInteriors[listitem][telPosX], AmmuNationInteriors[listitem][telPosY], AmmuNationInteriors[listitem][telPosZ]);
- SetPlayerInterior(playerid, AmmuNationInteriors[listitem][telInt]);
- format(string, sizeof(string), "You have been teleported to %s.", AmmuNationInteriors[listitem][telName]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_TELEPORT_MENU, DIALOG_STYLE_LIST, "Teleport Menu", "24/7's\nAmmu-Nations\nHouses\nShops\nClothing Stores\nMiscellanious", "Select", "Back");
- return 1;
- }
- }
- if(dialogid == DIALOG_HOUSES)
- {
- if(response)
- {
- new string[128];
- SetPlayerPos(playerid, HouseInteriors[listitem][telPosX], HouseInteriors[listitem][telPosY], HouseInteriors[listitem][telPosZ]);
- SetPlayerInterior(playerid, HouseInteriors[listitem][telInt]);
- format(string, sizeof(string), "You have been teleported to %s.", HouseInteriors[listitem][telName]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_TELEPORT_MENU, DIALOG_STYLE_LIST, "Teleport Menu", "24/7's\nAmmu-Nations\nHouses\nShops\nClothing Stores\nMiscellanious", "Select", "Back");
- return 1;
- }
- }
- if(dialogid == DIALOG_SHOPS)
- {
- if(response)
- {
- new string[128];
- SetPlayerPos(playerid, Shops[listitem][telPosX], Shops[listitem][telPosY], Shops[listitem][telPosZ]);
- SetPlayerInterior(playerid, Shops[listitem][telInt]);
- format(string, sizeof(string), "You have been teleported to %s.", Shops[listitem][telName]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_TELEPORT_MENU, DIALOG_STYLE_LIST, "Teleport Menu", "24/7's\nAmmu-Nations\nHouses\nShops\nClothing Stores\nMiscellanious", "Select", "Back");
- return 1;
- }
- }
- if(dialogid == DIALOG_CLOTHING_STORES)
- {
- if(response)
- {
- new string[128];
- SetPlayerPos(playerid, ClothingStores[listitem][telPosX], ClothingStores[listitem][telPosY], ClothingStores[listitem][telPosZ]);
- SetPlayerInterior(playerid, ClothingStores[listitem][telInt]);
- format(string, sizeof(string), "You have been teleported to %s.", ClothingStores[listitem][telName]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_TELEPORT_MENU, DIALOG_STYLE_LIST, "Teleport Menu", "24/7's\nAmmu-Nations\nHouses\nShops\nClothing Stores\nMiscellanious", "Select", "Back");
- return 1;
- }
- }
- if(dialogid == DIALOG_MISCELLANIOUS)
- {
- if(response)
- {
- new string[128];
- SetPlayerPos(playerid, Miscellanious[listitem][telPosX], Miscellanious[listitem][telPosY], Miscellanious[listitem][telPosZ]);
- SetPlayerInterior(playerid, Miscellanious[listitem][telInt]);
- format(string, sizeof(string), "You have been teleported to %s.", Miscellanious[listitem][telName]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_TELEPORT_MENU, DIALOG_STYLE_LIST, "Teleport Menu", "24/7's\nAmmu-Nations\nHouses\nShops\nClothing Stores\nMiscellanious", "Select", "Back");
- return 1;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement