SAMP Gitlab CI Test
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

220 lines
16 KiB

//-------------------------------------------------
//
// This is an example of using cessil's LS mall replacement
// mesh, which contains enterable shop interiors which
// you can decorate yourself.
//
// It's recommended you use Jernej's map editor, found on the
// SA-MP forum, and import this script (Import .pwn) if you
// want to place new objects in the shops.
//
// SA-MP 0.3d and above
//
//-------------------------------------------------
#include <a_samp>
#include "../include/gl_common.inc"
#define MALL_OBJECT_DRAW_DIST 30.0 // Even with a streamer, keep the draw distance on the objects inside the shops low.
//-------------------------------------------------
RemoveBuildingsForMall(playerid)
{
// Remove the original mall mesh
RemoveBuildingForPlayer(playerid, 6130, 1117.5859, -1490.0078, 32.7188, 10.0);
// This is the mall mesh LOD
RemoveBuildingForPlayer(playerid, 6255, 1117.5859, -1490.0078, 32.7188, 10.0);
// There are some trees on the outside of the mall which poke through one of the interiors
RemoveBuildingForPlayer(playerid, 762, 1175.3594, -1420.1875, 19.8828, 0.25);
RemoveBuildingForPlayer(playerid, 615, 1166.3516, -1417.6953, 13.9531, 0.25);
}
//-------------------------------------------------
public OnPlayerConnect(playerid)
{
RemoveBuildingsForMall(playerid);
return 1;
}
//-------------------------------------------------
public OnFilterScriptInit()
{
// Main mall mesh, interior areas
CreateObject(19322, 1117.580, -1490.01, 32.72, 0.00, 0.00, 0.00, 200.0);
CreateObject(19323, 1117.580, -1490.01, 32.72, 0.00, 0.00, 0.00, 200.0);
// Mall windows
CreateObject(19325, 1155.40, -1434.89, 16.49, 0.00, 0.00, 0.30, 100.0);
CreateObject(19325, 1155.37, -1445.41, 16.31, 0.00, 0.00, 0.00, 100.0);
CreateObject(19325, 1155.29, -1452.38, 16.31, 0.00, 0.00, 0.00, 100.0);
CreateObject(19325, 1157.36, -1468.35, 16.31, 0.00, 0.00, 18.66, 100.0);
CreateObject(19325, 1160.64, -1478.37, 16.31, 0.00, 0.00, 17.76, 100.0);
CreateObject(19325, 1159.84, -1502.06, 16.31, 0.00, 0.00, -19.92, 100.0);
CreateObject(19325, 1139.28, -1523.71, 16.31, 0.00, 0.00, -69.36, 100.0);
CreateObject(19325, 1117.06, -1523.43, 16.51, 0.00, 0.00, -109.44, 100.0);
CreateObject(19325, 1097.18, -1502.43, 16.51, 0.00, 0.00, -158.58, 100.0);
CreateObject(19325, 1096.47, -1478.29, 16.51, 0.00, 0.00, -197.94, 100.0);
CreateObject(19325, 1099.70, -1468.27, 16.51, 0.00, 0.00, -197.94, 100.0);
CreateObject(19325, 1101.81, -1445.45, 16.22, 0.00, 0.00, -180.24, 100.0);
CreateObject(19325, 1101.76, -1452.47, 16.22, 0.00, 0.00, -181.62, 100.0);
CreateObject(19325, 1101.77, -1434.88, 16.22, 0.00, 0.00, -180.24, 100.0);
CreateObject(19325, 1094.31, -1444.92, 23.47, 0.00, 0.00, -180.24, 100.0);
CreateObject(19325, 1094.37, -1458.37, 23.47, 0.00, 0.00, -179.46, 100.0);
CreateObject(19325, 1093.01, -1517.44, 23.44, 0.00, 0.00, -138.72, 100.0);
CreateObject(19325, 1101.08, -1526.64, 23.42, 0.00, 0.00, -137.34, 100.0);
CreateObject(19325, 1155.12, -1526.38, 23.46, 0.00, 0.00, -42.12, 100.0);
CreateObject(19325, 1163.09, -1517.25, 23.46, 0.00, 0.00, -40.74, 100.0);
CreateObject(19325, 1163.04, -1442.06, 23.40, 0.00, 0.00, -0.12, 100.0);
CreateObject(19325, 1163.09, -1428.47, 23.50, 0.00, 0.00, 0.54, 100.0);
// This is an example 24/7. Normally you'd want to stream these
// interior objects in your streamer.
// signs
CreateObject(19326, 1155.34, -1446.73, 16.38, 0.00, 0.00, -89.82, MALL_OBJECT_DRAW_DIST);
CreateObject(19326, 1155.25, -1443.85, 16.36, 0.00, 0.00, -89.82, MALL_OBJECT_DRAW_DIST);
CreateObject(19326, 1155.37, -1436.32, 16.36, 0.00, 0.00, -89.82, MALL_OBJECT_DRAW_DIST);
CreateObject(19326, 1155.35, -1433.51, 16.36, 0.00, 0.00, -89.70, MALL_OBJECT_DRAW_DIST);
CreateObject(19329, 1155.18, -1440.22, 18.70, 0.00, 0.00, 89.04, MALL_OBJECT_DRAW_DIST);
CreateObject(19329, 1161.59, -1431.50, 17.93, 0.00, 0.00, 0.00, MALL_OBJECT_DRAW_DIST);
CreateObject(19329, 1160.40, -1448.79, 17.96, 0.00, 0.00, 0.00, MALL_OBJECT_DRAW_DIST);
// 24/7 food aisles
CreateObject(2543, 1168.18, -1436.39, 14.79, 0.00, 0.00, 0.30, MALL_OBJECT_DRAW_DIST);
CreateObject(2535, 1182.74, -1448.30, 14.70, 0.00, 0.00, -90.96, MALL_OBJECT_DRAW_DIST);
CreateObject(2543, 1167.10, -1436.40, 14.79, 0.00, 0.00, 0.31, MALL_OBJECT_DRAW_DIST);
CreateObject(2538, 1172.31, -1435.32, 14.79, 0.00, 0.00, 180.34, MALL_OBJECT_DRAW_DIST);
CreateObject(2539, 1171.38, -1435.31, 14.79, 0.00, 0.00, 180.19, MALL_OBJECT_DRAW_DIST);
CreateObject(2540, 1169.56, -1435.36, 14.79, 0.00, 0.00, 180.17, MALL_OBJECT_DRAW_DIST);
CreateObject(1984, 1157.37, -1442.59, 14.79, 0.00, 0.00, -450.06, MALL_OBJECT_DRAW_DIST);
CreateObject(2012, 1163.25, -1448.31, 14.75, 0.00, 0.00, -179.16, MALL_OBJECT_DRAW_DIST);
CreateObject(2012, 1169.29, -1431.92, 14.75, 0.00, 0.00, 359.80, MALL_OBJECT_DRAW_DIST);
CreateObject(1987, 1163.13, -1436.34, 14.79, 0.00, 0.00, 361.06, MALL_OBJECT_DRAW_DIST);
CreateObject(1988, 1164.13, -1436.33, 14.79, 0.00, 0.00, 360.80, MALL_OBJECT_DRAW_DIST);
CreateObject(2871, 1164.79, -1443.96, 14.79, 0.00, 0.00, 177.73, MALL_OBJECT_DRAW_DIST);
CreateObject(2871, 1164.70, -1444.98, 14.79, 0.00, 0.00, 358.07, MALL_OBJECT_DRAW_DIST);
CreateObject(2942, 1155.52, -1464.68, 15.43, 0.00, 0.00, -71.22, MALL_OBJECT_DRAW_DIST);
CreateObject(1987, 1164.12, -1435.32, 14.77, 0.00, 0.00, 180.96, MALL_OBJECT_DRAW_DIST);
CreateObject(2530, 1171.13, -1443.79, 14.79, 0.00, 0.00, -182.16, MALL_OBJECT_DRAW_DIST);
CreateObject(1991, 1173.75, -1439.56, 14.79, 0.00, 0.00, 179.47, MALL_OBJECT_DRAW_DIST);
CreateObject(1996, 1169.82, -1439.50, 14.79, 0.00, 0.00, 179.10, MALL_OBJECT_DRAW_DIST);
CreateObject(1996, 1174.24, -1435.38, 14.79, 0.00, 0.00, 179.24, MALL_OBJECT_DRAW_DIST);
CreateObject(1991, 1175.23, -1435.39, 14.79, 0.00, 0.00, 179.57, MALL_OBJECT_DRAW_DIST);
CreateObject(1995, 1182.65, -1435.10, 14.79, 0.00, 0.00, 90.00, MALL_OBJECT_DRAW_DIST);
CreateObject(1994, 1182.66, -1438.07, 14.79, 0.00, 0.00, 90.00, MALL_OBJECT_DRAW_DIST);
CreateObject(1993, 1182.66, -1437.08, 14.79, 0.00, 0.00, 90.00, MALL_OBJECT_DRAW_DIST);
CreateObject(2542, 1163.78, -1443.92, 14.76, 0.00, 0.00, 178.77, MALL_OBJECT_DRAW_DIST);
CreateObject(2536, 1166.88, -1445.07, 14.70, 0.00, 0.00, -0.42, MALL_OBJECT_DRAW_DIST);
CreateObject(2542, 1163.70, -1444.93, 14.78, 0.00, 0.00, -1.74, MALL_OBJECT_DRAW_DIST);
CreateObject(1984, 1157.34, -1435.71, 14.79, 0.00, 0.00, -450.06, MALL_OBJECT_DRAW_DIST);
CreateObject(2012, 1166.31, -1448.28, 14.75, 0.00, 0.00, -180.12, MALL_OBJECT_DRAW_DIST);
CreateObject(2530, 1172.14, -1443.83, 14.79, 0.00, 0.00, -181.38, MALL_OBJECT_DRAW_DIST);
CreateObject(2530, 1173.14, -1443.85, 14.79, 0.00, 0.00, -180.96, MALL_OBJECT_DRAW_DIST);
CreateObject(2530, 1174.13, -1443.88, 14.79, 0.00, 0.00, -181.50, MALL_OBJECT_DRAW_DIST);
CreateObject(1981, 1170.76, -1439.52, 14.79, 0.00, 0.00, -181.74, MALL_OBJECT_DRAW_DIST);
CreateObject(1981, 1171.76, -1439.54, 14.79, 0.00, 0.00, -180.80, MALL_OBJECT_DRAW_DIST);
CreateObject(1981, 1172.75, -1439.55, 14.79, 0.00, 0.00, -180.84, MALL_OBJECT_DRAW_DIST);
CreateObject(2535, 1182.75, -1447.28, 14.70, 0.00, 0.00, -90.78, MALL_OBJECT_DRAW_DIST);
CreateObject(2535, 1182.74, -1446.28, 14.70, 0.00, 0.00, -90.78, MALL_OBJECT_DRAW_DIST);
CreateObject(2535, 1182.74, -1445.26, 14.70, 0.00, 0.00, -90.00, MALL_OBJECT_DRAW_DIST);
CreateObject(2541, 1182.75, -1444.22, 14.79, 0.00, 0.00, -90.06, MALL_OBJECT_DRAW_DIST);
CreateObject(2541, 1182.75, -1443.20, 14.79, 0.00, 0.00, -90.06, MALL_OBJECT_DRAW_DIST);
CreateObject(2541, 1182.74, -1442.16, 14.79, 0.00, 0.00, -90.06, MALL_OBJECT_DRAW_DIST);
CreateObject(2543, 1182.76, -1441.18, 14.79, 0.00, 0.00, -90.84, MALL_OBJECT_DRAW_DIST);
CreateObject(2541, 1182.79, -1440.17, 14.79, 0.00, 0.00, -90.06, MALL_OBJECT_DRAW_DIST);
CreateObject(2543, 1182.72, -1439.15, 14.79, 0.00, 0.00, -90.84, MALL_OBJECT_DRAW_DIST);
CreateObject(1990, 1182.66, -1431.67, 14.79, 0.00, 0.00, 3.30, MALL_OBJECT_DRAW_DIST);
CreateObject(1990, 1181.63, -1431.73, 14.79, 0.00, 0.00, 3.30, MALL_OBJECT_DRAW_DIST);
CreateObject(1990, 1180.61, -1431.81, 14.79, 0.00, 0.00, 3.30, MALL_OBJECT_DRAW_DIST);
CreateObject(1990, 1179.61, -1431.83, 14.79, 0.00, 0.00, 3.30, MALL_OBJECT_DRAW_DIST);
CreateObject(1990, 1178.61, -1431.89, 14.79, 0.00, 0.00, 3.30, MALL_OBJECT_DRAW_DIST);
CreateObject(1990, 1177.59, -1431.86, 14.79, 0.00, 0.00, 3.30, MALL_OBJECT_DRAW_DIST);
CreateObject(1993, 1182.66, -1436.09, 14.79, 0.00, 0.00, 90.00, MALL_OBJECT_DRAW_DIST);
CreateObject(2012, 1175.50, -1431.82, 14.75, 0.00, 0.00, 361.17, MALL_OBJECT_DRAW_DIST);
CreateObject(2012, 1172.42, -1431.87, 14.75, 0.00, 0.00, 359.93, MALL_OBJECT_DRAW_DIST);
CreateObject(2012, 1160.10, -1448.35, 14.75, 0.00, 0.00, -179.94, MALL_OBJECT_DRAW_DIST);
CreateObject(2539, 1170.45, -1435.33, 14.79, 0.00, 0.00, 181.26, MALL_OBJECT_DRAW_DIST);
CreateObject(2545, 1161.82, -1431.84, 14.91, 0.00, 0.00, -90.54, MALL_OBJECT_DRAW_DIST);
CreateObject(2545, 1160.82, -1431.83, 14.91, 0.00, 0.00, -90.54, MALL_OBJECT_DRAW_DIST);
CreateObject(2545, 1159.81, -1431.86, 14.91, 0.00, 0.00, -90.54, MALL_OBJECT_DRAW_DIST);
CreateObject(2545, 1162.82, -1431.87, 14.91, 0.00, 0.00, -90.54, MALL_OBJECT_DRAW_DIST);
CreateObject(1988, 1163.13, -1435.34, 14.79, 0.00, 0.00, 541.46, MALL_OBJECT_DRAW_DIST);
CreateObject(1988, 1166.07, -1436.32, 14.79, 0.00, 0.00, 360.80, MALL_OBJECT_DRAW_DIST);
CreateObject(1987, 1165.07, -1436.33, 14.79, 0.00, 0.00, 361.06, MALL_OBJECT_DRAW_DIST);
CreateObject(1987, 1166.11, -1435.30, 14.77, 0.00, 0.00, 180.96, MALL_OBJECT_DRAW_DIST);
CreateObject(1988, 1165.07, -1435.31, 14.79, 0.00, 0.00, 540.44, MALL_OBJECT_DRAW_DIST);
CreateObject(2536, 1165.79, -1445.07, 14.70, 0.00, 0.00, -1.20, MALL_OBJECT_DRAW_DIST);
CreateObject(2536, 1167.83, -1445.07, 14.70, 0.00, 0.00, -0.06, MALL_OBJECT_DRAW_DIST);
CreateObject(2871, 1165.79, -1444.00, 14.79, 0.00, 0.00, 178.27, MALL_OBJECT_DRAW_DIST);
CreateObject(2871, 1166.81, -1444.03, 14.79, 0.00, 0.00, 179.35, MALL_OBJECT_DRAW_DIST);
CreateObject(2871, 1167.79, -1444.04, 14.79, 0.00, 0.00, 179.89, MALL_OBJECT_DRAW_DIST);
CreateObject(2543, 1168.13, -1435.36, 14.79, 0.00, 0.00, 180.05, MALL_OBJECT_DRAW_DIST);
CreateObject(2543, 1167.10, -1435.37, 14.79, 0.00, 0.00, 180.35, MALL_OBJECT_DRAW_DIST);
CreateObject(2012, 1170.63, -1440.67, 14.75, 0.00, 0.00, 359.50, MALL_OBJECT_DRAW_DIST);
CreateObject(2012, 1173.77, -1440.72, 14.75, 0.00, 0.00, 359.82, MALL_OBJECT_DRAW_DIST);
CreateObject(2012, 1177.30, -1445.31, 14.75, 0.00, 0.00, 359.93, MALL_OBJECT_DRAW_DIST);
CreateObject(1996, 1173.36, -1448.30, 14.79, 0.00, 0.00, 179.10, MALL_OBJECT_DRAW_DIST);
CreateObject(1981, 1174.33, -1448.32, 14.79, 0.00, 0.00, -181.74, MALL_OBJECT_DRAW_DIST);
CreateObject(1981, 1175.32, -1448.35, 14.79, 0.00, 0.00, -180.84, MALL_OBJECT_DRAW_DIST);
CreateObject(1981, 1176.30, -1448.37, 14.79, 0.00, 0.00, -180.84, MALL_OBJECT_DRAW_DIST);
CreateObject(1991, 1177.28, -1448.37, 14.79, 0.00, 0.00, 179.47, MALL_OBJECT_DRAW_DIST);
CreateObject(1996, 1178.33, -1448.36, 14.79, 0.00, 0.00, 179.24, MALL_OBJECT_DRAW_DIST);
CreateObject(1991, 1179.33, -1448.37, 14.79, 0.00, 0.00, 179.57, MALL_OBJECT_DRAW_DIST);
CreateObject(1994, 1176.82, -1444.16, 14.79, 0.00, 0.00, -0.84, MALL_OBJECT_DRAW_DIST);
CreateObject(1995, 1178.81, -1444.20, 14.79, 0.00, 0.00, -1.26, MALL_OBJECT_DRAW_DIST);
CreateObject(2543, 1168.89, -1444.06, 14.79, 0.00, 0.00, 178.97, MALL_OBJECT_DRAW_DIST);
CreateObject(2543, 1169.91, -1444.07, 14.79, 0.00, 0.00, 179.69, MALL_OBJECT_DRAW_DIST);
CreateObject(2543, 1169.87, -1445.12, 14.79, 0.00, 0.00, -0.06, MALL_OBJECT_DRAW_DIST);
CreateObject(2543, 1168.86, -1445.11, 14.79, 0.00, 0.00, 0.31, MALL_OBJECT_DRAW_DIST);
CreateObject(2538, 1167.02, -1431.87, 14.79, 0.00, 0.00, 0.42, MALL_OBJECT_DRAW_DIST);
CreateObject(2539, 1166.03, -1431.89, 14.79, 0.00, 0.00, 0.70, MALL_OBJECT_DRAW_DIST);
CreateObject(2540, 1164.04, -1431.91, 14.79, 0.00, 0.00, 0.60, MALL_OBJECT_DRAW_DIST);
CreateObject(2539, 1165.03, -1431.91, 14.79, 0.00, 0.00, 1.02, MALL_OBJECT_DRAW_DIST);
CreateObject(2538, 1176.17, -1436.38, 14.79, 0.00, 0.00, 0.24, MALL_OBJECT_DRAW_DIST);
CreateObject(2539, 1174.22, -1436.37, 14.79, 0.00, 0.00, -0.06, MALL_OBJECT_DRAW_DIST);
CreateObject(2540, 1173.22, -1436.36, 14.79, 0.00, 0.00, 0.18, MALL_OBJECT_DRAW_DIST);
CreateObject(2539, 1175.20, -1436.38, 14.79, 0.00, 0.00, -2.06, MALL_OBJECT_DRAW_DIST);
CreateObject(2540, 1173.26, -1435.31, 14.79, 0.00, 0.00, 180.17, MALL_OBJECT_DRAW_DIST);
CreateObject(1991, 1175.74, -1439.58, 14.79, 0.00, 0.00, 179.57, MALL_OBJECT_DRAW_DIST);
CreateObject(1996, 1174.74, -1439.57, 14.79, 0.00, 0.00, 179.24, MALL_OBJECT_DRAW_DIST);
CreateObject(1996, 1176.17, -1435.37, 14.79, 0.00, 0.00, 179.24, MALL_OBJECT_DRAW_DIST);
CreateObject(1991, 1177.16, -1435.38, 14.79, 0.00, 0.00, 179.57, MALL_OBJECT_DRAW_DIST);
CreateObject(2540, 1169.44, -1436.35, 14.79, 0.00, 0.00, 0.18, MALL_OBJECT_DRAW_DIST);
CreateObject(2539, 1170.43, -1436.35, 14.79, 0.00, 0.00, 0.90, MALL_OBJECT_DRAW_DIST);
CreateObject(2539, 1171.34, -1436.33, 14.79, 0.00, 0.00, 0.58, MALL_OBJECT_DRAW_DIST);
CreateObject(2538, 1172.22, -1436.32, 14.79, 0.00, 0.00, 0.30, MALL_OBJECT_DRAW_DIST);
CreateObject(2871, 1163.40, -1440.68, 14.79, 0.00, 0.00, 360.41, MALL_OBJECT_DRAW_DIST);
CreateObject(2536, 1164.49, -1440.73, 14.70, 0.00, 0.00, -1.20, MALL_OBJECT_DRAW_DIST);
CreateObject(2536, 1165.49, -1440.75, 14.70, 0.00, 0.00, -0.42, MALL_OBJECT_DRAW_DIST);
CreateObject(2536, 1166.50, -1440.75, 14.70, 0.00, 0.00, -0.06, MALL_OBJECT_DRAW_DIST);
CreateObject(2543, 1167.61, -1440.64, 14.79, 0.00, 0.00, 0.31, MALL_OBJECT_DRAW_DIST);
CreateObject(2543, 1168.62, -1440.64, 14.79, 0.00, 0.00, 0.30, MALL_OBJECT_DRAW_DIST);
CreateObject(2543, 1168.64, -1439.60, 14.79, 0.00, 0.00, 180.05, MALL_OBJECT_DRAW_DIST);
CreateObject(2543, 1167.67, -1439.61, 14.79, 0.00, 0.00, 180.35, MALL_OBJECT_DRAW_DIST);
CreateObject(2871, 1163.65, -1439.67, 14.79, 0.00, 0.00, 180.61, MALL_OBJECT_DRAW_DIST);
CreateObject(2871, 1164.68, -1439.67, 14.79, 0.00, 0.00, 179.77, MALL_OBJECT_DRAW_DIST);
CreateObject(2871, 1165.68, -1439.68, 14.79, 0.00, 0.00, 180.61, MALL_OBJECT_DRAW_DIST);
CreateObject(2871, 1166.68, -1439.66, 14.79, 0.00, 0.00, 180.61, MALL_OBJECT_DRAW_DIST);
CreateObject(1990, 1175.09, -1444.97, 14.79, 0.00, 0.00, -2.46, MALL_OBJECT_DRAW_DIST);
CreateObject(1990, 1181.63, -1431.73, 14.79, 0.00, 0.00, 3.30, MALL_OBJECT_DRAW_DIST);
CreateObject(1990, 1174.07, -1444.94, 14.79, 0.00, 0.00, 0.48, MALL_OBJECT_DRAW_DIST);
CreateObject(1990, 1173.09, -1444.94, 14.79, 0.00, 0.00, -1.20, MALL_OBJECT_DRAW_DIST);
CreateObject(1990, 1172.11, -1444.92, 14.79, 0.00, 0.00, -1.14, MALL_OBJECT_DRAW_DIST);
CreateObject(1990, 1171.12, -1444.91, 14.79, 0.00, 0.00, -0.72, MALL_OBJECT_DRAW_DIST);
CreateObject(2530, 1168.54, -1448.31, 14.79, 0.00, 0.00, -178.98, MALL_OBJECT_DRAW_DIST);
CreateObject(2530, 1169.60, -1448.29, 14.79, 0.00, 0.00, -178.98, MALL_OBJECT_DRAW_DIST);
CreateObject(2530, 1170.67, -1448.30, 14.79, 0.00, 0.00, -178.98, MALL_OBJECT_DRAW_DIST);
CreateObject(2530, 1171.72, -1448.32, 14.79, 0.00, 0.00, -181.50, MALL_OBJECT_DRAW_DIST);
CreateObject(2530, 1175.13, -1443.91, 14.79, 0.00, 0.00, -181.50, MALL_OBJECT_DRAW_DIST);
CreateObject(2012, 1176.82, -1440.75, 14.75, 0.00, 0.00, 359.93, MALL_OBJECT_DRAW_DIST);
CreateObject(1995, 1177.71, -1439.63, 14.79, 0.00, 0.00, 0.00, MALL_OBJECT_DRAW_DIST);
CreateObject(1994, 1176.73, -1439.63, 14.79, 0.00, 0.00, 0.06, MALL_OBJECT_DRAW_DIST);
CreateObject(1993, 1177.83, -1444.15, 14.79, 0.00, 0.00, 179.46, MALL_OBJECT_DRAW_DIST);
return 1;
}