13.07.2014, 17:31
okay so i thought i will release this map then and yeah i wish you like it (( just to say that this might be the most best coding but good for me as i just started ))
Pictures
onplayerconnect
on top of the script
Pictures
onplayerconnect
pawn Код:
new moderntv = CreateObject(19172, 1403.55127, -1701.11609, 680.79633, 0.00000, 0.00000, -90.00000);
SetObjectMaterial(moderntv, 0, 3925, "weemap", "steel128", 0xFF000000);
SetObjectMaterial(moderntv, 1, 3925, "weemap", "steel128", 0xFF000000);
//for TV
CreateObject(2233, 1403.96643, -1700.00879, 679.03040, 0.00000, 0.00000, -90.00000);
CreateObject(2233, 1403.97424, -1702.94458, 679.03040, 0.00000, 0.00000, -90.00000);
//chairs
CreateObject(1714, 1394.27710, -1698.64026, 679.00800, 0.00000, 0.00000, 0.00000);
CreateObject(1714, 1392.02515, -1698.58130, 679.00800, 0.00000, 0.00000, 0.00000);
CreateObject(1714, 1389.87695, -1698.57446, 679.00800, 0.00000, 0.00000, 0.00000);
CreateObject(1714, 1387.73584, -1698.59119, 679.00800, 0.00000, 0.00000, 0.00000);
CreateObject(1714, 1386.03296, -1698.58447, 679.00800, 0.00000, 0.00000, 0.00000);
CreateObject(1714, 1384.21655, -1700.56665, 679.00800, 0.00000, 0.00000, 90.00000);
CreateObject(1714, 1386.10840, -1702.52100, 679.00800, 0.00000, 0.00000, 180.00000);
CreateObject(1714, 1387.59106, -1702.58044, 679.00800, 0.00000, 0.00000, 180.00000);
CreateObject(1714, 1389.73401, -1702.61743, 679.00800, 0.00000, 0.00000, 180.00000);
CreateObject(1714, 1392.01831, -1702.62720, 679.00800, 0.00000, 0.00000, 180.00000);
CreateObject(1714, 1394.22400, -1702.66248, 679.00800, 0.00000, 0.00000, 180.00000);
CreateObject(1714, 1396.15515, -1700.53906, 679.00800, 0.00000, 0.00000, -90.00000);
//desk
//sides
desksides[0] = CreateObject(19449, 1390.27869, -1699.87329, 678.02820, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(desksides[0], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
desksides[1] = CreateObject(19449, 1390.30005, -1701.27161, 678.02820, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(desksides[1], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
//top and on sides
desk[0] = CreateObject(19428, 1395.08057, -1700.57080, 678.02899, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(desk[0], 0, 4002, "cityhall_lan", "LAcityhwal1", 0xFFff0000);
desk[1] = CreateObject(19428, 1385.50903, -1700.56287, 678.02899, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(desk[1], 0, 4002, "cityhall_lan", "LAcityhwal1", 0xFFff0000);
desk[2] = CreateObject(19428, 1387.19238, -1700.56226, 679.70898, 0.00000, 90.00000, 0.00000);
SetObjectMaterial(desk[2], 0, 4002, "cityhall_lan", "LAcityhwal1", 0xFFff0000);
desk[3] = CreateObject(19428, 1390.69495, -1700.56555, 679.70898, 0.00000, 90.00000, 0.00000);
SetObjectMaterial(desk[3], 0, 4002, "cityhall_lan", "LAcityhwal1", 0xFFff0000);
desk[4] = CreateObject(19428, 1393.43469, -1700.56458, 679.70898, 0.00000, 90.00000, 0.00000);
SetObjectMaterial(desk[4], 0, 4002, "cityhall_lan", "LAcityhwal1", 0xFFff0000);
//glass
CreateObject(19325, 1400.38586, -1695.64868, 681.02789, 0.00000, 0.00000, 90.00000);
CreateObject(19325, 1393.91785, -1695.65479, 681.02789, 0.00000, 0.00000, 90.00000);
CreateObject(19325, 1387.37769, -1695.65601, 681.02789, 0.00000, 0.00000, 90.00000);
CreateObject(19325, 1384.08093, -1695.65747, 681.02789, 0.00000, 0.00000, 90.00000);
//door
CreateObject(1491, 1379.25098, -1695.70435, 679.02930, 0.00000, 0.00000, 0.00000);
//glass awesomeness :D
onglass[0] = CreateObject(19435, 1380.81592, -1695.73438, 682.28680, 90.00000, 90.00000, 0.00000);
SetObjectMaterial(onglass[0], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
onglass[1] = CreateObject(19435, 1384.28345, -1695.73157, 682.28680, 90.00000, 90.00000, 0.00000);
SetObjectMaterial(onglass[1], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
onglass[2] = CreateObject(19435, 1387.75342, -1695.72144, 682.28680, 90.00000, 90.00000, 0.00000);
SetObjectMaterial(onglass[2], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
onglass[3] = CreateObject(19435, 1391.16187, -1695.73315, 682.28680, 90.00000, 90.00000, 0.00000);
SetObjectMaterial(onglass[3], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
onglass[4] = CreateObject(19435, 1394.66699, -1695.72461, 682.28680, 90.00000, 90.00000, 0.00000);
SetObjectMaterial(onglass[4], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
onglass[5] = CreateObject(19435, 1398.09033, -1695.71069, 682.28680, 90.00000, 90.00000, 0.00000);
SetObjectMaterial(onglass[5], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
onglass[6] = CreateObject(19435, 1401.51343, -1695.71899, 682.28680, 90.00000, 90.00000, 0.00000);
SetObjectMaterial(onglass[6], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
onglass[7] = CreateObject(19435, 1404.93518, -1695.70740, 682.28680, 90.00000, 90.00000, 0.00000);
SetObjectMaterial(onglass[7], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
onglass[8] = CreateObject(19435, 1390.68408, -1695.72192, 679.78680, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(onglass[8], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
onglass[9] = CreateObject(19435, 1381.52710, -1695.70691, 679.78680, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(onglass[9], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
onglass[10] = CreateObject(19435, 1402.83240, -1695.68762, 679.78680, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(onglass[10], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
//doors
CreateObject(1536, 1389.10364, -1683.47461, 678.98798, 0.00000, 0.00000, 0.00000);
CreateObject(1536, 1392.06409, -1683.43018, 678.98798, 0.00000, 0.00000, 180.00000);
//text
new officetext = CreateObject(19371, 1395.91064, -1683.45190, 681.00189, 0.00000, 0.00000, 90.00000);
SetObjectMaterialText(officetext, "{33FF00}Office For Sale{FFFFFF}", 0, OBJECT_MATERIAL_SIZE_256x128,
"Arial", 28, 0, 0xFFFF8200, 0xFFFFFFFF, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
//TV at entrance
new moderntv2 = CreateObject(19172, 1382.24841, -1683.95813, 681.15369, 0.00000, 0.00000, 20.00000);
new moderntv3 = CreateObject(19172, 1384.78601, -1683.96594, 681.15369, 0.00000, 0.00000, -20.00000);
SetObjectMaterial(moderntv2, 0, 3925, "weemap", "steel128", 0xFF000000);
SetObjectMaterial(moderntv2, 1, 3925, "weemap", "steel128", 0xFF000000);
SetObjectMaterial(moderntv3, 0, 3925, "weemap", "steel128", 0xFF000000);
SetObjectMaterial(moderntv3, 1, 3925, "weemap", "steel128", 0xFF000000);
//entrance
CreateObject(1753, 1399.22815, -1683.89075, 678.96729, 0.00000, 0.00000, 0.00000);
CreateObject(1753, 1403.11963, -1686.01099, 678.96729, 0.00000, 0.00000, -90.00000);
CreateObject(1753, 1401.29297, -1689.75256, 678.96729, 0.00000, 0.00000, 180.00000);
CreateObject(2024, 1399.83044, -1687.54285, 678.96942, 0.00000, 0.00000, 0.00000);
CreateObject(1753, 1397.69238, -1688.00024, 678.96729, 0.00000, 0.00000, 90.00000);
CreateObject(18075, 1399.77502, -1688.87415, 682.97028, 0.00000, 0.00000, 0.00000);
CreateObject(18075, 1391.28577, -1688.90283, 682.97028, 0.00000, 0.00000, 0.00000);
CreateObject(18075, 1383.40210, -1688.92920, 682.97028, 0.00000, 0.00000, 0.00000);
CreateObject(2605, 1384.50781, -1693.41809, 679.40973, 0.00000, 0.00000, 0.00000);
CreateObject(2356, 1384.70776, -1694.84363, 679.01129, 0.00000, 0.00000, 0.00000);
CreateObject(2233, 1386.50854, -1683.18152, 679.03040, 0.00000, 0.00000, 0.00000);
CreateObject(2233, 1381.43298, -1683.18103, 679.03040, 0.00000, 0.00000, 0.00000);
CreateObject(640, 1379.56677, -1689.16589, 679.52972, 0.00000, 0.00000, 0.00000);
CreateObject(640, 1390.93225, -1695.11169, 679.52972, 0.00000, 0.00000, 90.00000);
CreateObject(640, 1396.26160, -1695.11353, 679.52972, 0.00000, 0.00000, 90.00000);
CreateObject(640, 1401.60071, -1695.11560, 679.52972, 0.00000, 0.00000, 90.00000);
//light
CreateObject(18075, 1390.26379, -1701.04797, 682.97028, 0.00000, 0.00000, 0.00000);
CreateObject(18075, 1398.68909, -1701.01721, 682.97028, 0.00000, 0.00000, 0.00000);
CreateObject(18075, 1382.96472, -1701.27722, 682.97028, 0.00000, 0.00000, 0.00000);
//roof
roofof[0] = CreateObject(19379, 1384.32141, -1702.93152, 683.02191, 0.00000, 90.00000, 0.00000);
SetObjectMaterial(roofof[0], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
roofof[1] = CreateObject(19379, 1394.76868, -1702.92773, 683.02191, 0.00000, 90.00000, 0.00000);
SetObjectMaterial(roofof[1], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
roofof[2] = CreateObject(19379, 1405.20190, -1702.92078, 683.02191, 0.00000, 90.00000, 0.00000);
SetObjectMaterial(roofof[2], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
roofof[3] = CreateObject(19379, 1398.42834, -1693.33398, 683.02191, 0.00000, 90.00000, 0.00000);
SetObjectMaterial(roofof[3], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
roofof[4] = CreateObject(19379, 1398.43030, -1683.72803, 683.02191, 0.00000, 90.00000, 0.00000);
SetObjectMaterial(roofof[4], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
roofof[5] = CreateObject(19379, 1388.05859, -1693.45959, 683.02191, 0.00000, 90.00000, 0.00000);
SetObjectMaterial(roofof[5], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
roofof[6] = CreateObject(19379, 1377.68481, -1693.47083, 683.02191, 0.00000, 90.00000, 0.00000);
SetObjectMaterial(roofof[6], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
roofof[7] = CreateObject(19379, 1387.99255, -1683.91125, 683.02191, 0.00000, 90.00000, 0.00000);
SetObjectMaterial(roofof[7], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
roofof[8] = CreateObject(19379, 1377.62842, -1683.94434, 683.02191, 0.00000, 90.00000, 0.00000);
SetObjectMaterial(roofof[8], 0, 7983, "vgsscollege", "stonesandkb2_128", 0xFFFFFFFF);
//walls
ofwalls[0] = CreateObject(19377, 1403.71448, -1688.06165, 677.83038, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(ofwalls[0], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
ofwalls[1] = CreateObject(19377, 1403.70129, -1697.66125, 677.83038, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(ofwalls[1], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
ofwalls[2] = CreateObject(19377, 1403.67407, -1707.19128, 677.83038, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(ofwalls[2], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
ofwalls[3] = CreateObject(19377, 1398.92322, -1707.76416, 677.83038, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(ofwalls[3], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
ofwalls[4] = CreateObject(19377, 1389.42944, -1707.77002, 677.83038, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(ofwalls[4], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
ofwalls[5] = CreateObject(19377, 1379.87610, -1707.76123, 677.83038, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(ofwalls[5], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
ofwalls[6] = CreateObject(19377, 1379.11047, -1703.00696, 677.83038, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(ofwalls[6], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
ofwalls[7] = CreateObject(19377, 1379.11377, -1693.39282, 677.83038, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(ofwalls[7], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
ofwalls[8] = CreateObject(19377, 1379.11963, -1683.86987, 677.83038, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(ofwalls[8], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
ofwalls[9] = CreateObject(19377, 1383.91638, -1683.39661, 677.83038, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(ofwalls[9], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
ofwalls[10] = CreateObject(19377, 1393.44446, -1683.38721, 677.83038, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(ofwalls[10], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
ofwalls[11] = CreateObject(19377, 1402.96680, -1683.36646, 677.83038, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(ofwalls[11], 0, 14390, "dr_gsnew", "des_ranchwall1", 0xFFFFFFFF);
//Floor
floorof = CreateObject(18981, 1391.26843, -1695.69043, 678.53241, 0.00000, 90.00000, 0.00000);
SetObjectMaterial(floorof, 0, 14390, "dr_gsnew", "mp_marble", 0xFFFFFFFF);//floor // white 0xFFFFFF
pawn Код:
//office map by acres
new floorof;
new ofwalls[15];
new onglass[15];
new desksides[2];
new desk[5];
new roofof[15];