Advertisement
Guest User

Small Stunt in LSA

a guest
Jul 21st, 2015
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 12.56 KB | None | 0 0
  1. //0.3.7 Tube Connector 1.10
  2.  
  3.  
  4. #define TUBE        (0)
  5. #define COVER       (1)
  6. #define LIGHT       (2)
  7. #define SUPPORT     (3)
  8.  
  9. #define TBR_RED     (0)
  10. #define TBR_GREEN   (1)
  11. #define TBR_BLUE    (2)
  12. #define TBR_YELLOW  (3)
  13. #define TBR_PURPLE  (4)
  14.  
  15. #include <a_samp>
  16.  
  17. public OnFilterScriptInit()
  18. {
  19.  
  20.     //TUBES:
  21.     Func_TubeConnector(0, 0, TUBE, TBR_RED, 19687, 1941.623901, -2340.711181, 14.867634, -0.399999, 0.299999, -89.999992, 2000.0);
  22.     Func_TubeConnector(1, 0, TUBE, TBR_GREEN, 19686, 1941.628784, -2365.681152, 15.555286, 0.400059, -0.300049, 89.999984, 2000.0);
  23.     Func_TubeConnector(2, 2, TUBE, TBR_GREEN, 19682, 1944.270507, -2389.660156, 20.803068, -10.070344, -9.497203, -44.913425, 2000.0);
  24.     Func_TubeConnector(3, 0, TUBE, TBR_GREEN, 19646, 1954.934814, -2402.962890, 24.018007, -10.070346, -9.497192, -44.913406, 2000.0);
  25.     Func_TubeConnector(4, 0, TUBE, TBR_GREEN, 19646, 1962.123291, -2409.722167, 25.642580, -10.070346, -9.497192, -44.913375, 2000.0);
  26.     Func_TubeConnector(5, 0, TUBE, TBR_GREEN, 19646, 1969.311767, -2416.481445, 27.267152, -10.070346, -9.497192, -44.913375, 2000.0);
  27.     Func_TubeConnector(6, 1, TUBE, TBR_GREEN, 19681, 1979.976806, -2429.783935, 30.482002, 10.070346, 9.497192, 135.086593, 2000.0);
  28.     Func_TubeConnector(7, 0, TUBE, TBR_GREEN, 19646, 1982.688110, -2446.412109, 34.554328, -0.502379, -13.799589, -89.135505, 2000.0);
  29.     Func_TubeConnector(8, 0, TUBE, TBR_GREEN, 19646, 1982.855468, -2456.122070, 36.939502, -0.502383, -13.799588, -89.135482, 2000.0);
  30.     Func_TubeConnector(9, 0, TUBE, TBR_GREEN, 19646, 1983.022827, -2465.832031, 39.324676, -0.502383, -13.799588, -89.135482, 2000.0);
  31.     Func_TubeConnector(10, 0, TUBE, TBR_GREEN, 19646, 1983.190185, -2475.541992, 41.709850, -0.502383, -13.799588, -89.135482, 2000.0);
  32.     Func_TubeConnector(11, 0, TUBE, TBR_BLUE, 19646, 1983.357543, -2485.251953, 44.095024, -0.502383, -13.799588, -89.135482, 2000.0);
  33.     Func_TubeConnector(12, 0, TUBE, TBR_YELLOW, 19686, 1983.653930, -2502.016113, 49.055690, 0.502383, 13.799588, 90.864494, 2000.0);
  34.     Func_TubeConnector(13, 0, TUBE, TBR_YELLOW, 19683, 1984.088134, -2524.641845, 59.632087, -0.502383, -28.799587, -89.135498, 2000.0);
  35.     Func_TubeConnector(14, 0, TUBE, TBR_YELLOW, 19686, 1984.513549, -2548.456054, 67.164291, 0.502387, 13.799589, 90.864494, 2000.0);
  36.     Func_TubeConnector(15, 0, TUBE, TBR_YELLOW, 19686, 1984.948364, -2570.294677, 79.169494, 0.502386, 28.799587, 90.864479, 2000.0);
  37.     Func_TubeConnector(16, 0, TUBE, TBR_YELLOW, 19683, 1985.377929, -2589.411865, 95.242317, -0.502387, -43.799583, -89.135513, 2000.0);
  38.     Func_TubeConnector(17, 0, TUBE, TBR_YELLOW, 19686, 1985.813476, -2610.464599, 108.682144, 0.502388, 28.799591, 90.864494, 2000.0);
  39.     Func_TubeConnector(18, 1, TUBE, TBR_YELLOW, 19662, 1980.962158, -2627.797607, 124.148666, 0.502387, 43.799591, 90.864471, 2000.0);
  40.     Func_TubeConnector(19, 2, TUBE, TBR_YELLOW, 19661, 1959.815307, -2635.680175, 131.587554, -0.502388, -43.799591, -89.135513, 2000.0);
  41.     Func_TubeConnector(20, 0, TUBE, TBR_YELLOW, 19688, 1954.962890, -2653.920654, 145.694488, -0.502388, -43.799591, -89.135475, 2000.0);
  42.     Func_TubeConnector(21, 0, TUBE, TBR_YELLOW, 19683, 1955.344848, -2678.604248, 146.788650, -0.502388, 1.200408, -89.135444, 2000.0);
  43.     Func_TubeConnector(22, 0, TUBE, TBR_YELLOW, 19683, 1955.645141, -2702.541748, 139.836074, -0.502393, 16.200441, -89.135414, 2000.0);
  44.     Func_TubeConnector(23, 1, TUBE, TBR_YELLOW, 19657, 1939.976562, -2724.283691, 130.831115, 0.502380, -31.200433, 90.864578, 2000.0);
  45.     Func_TubeConnector(24, 0, TUBE, TBR_YELLOW, 19683, 1923.896728, -2705.608886, 144.390762, 0.502386, -31.200445, 90.864562, 2000.0);
  46.     Func_TubeConnector(25, 0, TUBE, TBR_YELLOW, 19683, 1923.596557, -2681.672607, 151.347686, 0.502393, -16.200445, 90.864532, 2000.0);
  47.     Func_TubeConnector(26, 0, TUBE, TBR_YELLOW, 19688, 1923.214843, -2657.004882, 150.256912, 0.502397, -1.200433, 90.864517, 2000.0);
  48.     Func_TubeConnector(27, 0, TUBE, TBR_YELLOW, 19689, 1922.781494, -2636.063720, 136.878097, 0.502396, -1.200439, -269.135437, 2000.0);
  49.     Func_TubeConnector(28, 0, TUBE, TBR_PURPLE, 19686, 1922.399658, -2611.393798, 135.788681, -0.502419, 1.200431, -89.135421, 2000.0);
  50.     Func_TubeConnector(29, 1, TUBE, TBR_PURPLE, 19651, 1938.278442, -2601.746093, 147.945632, -0.502411, 16.200433, -89.135421, 2000.0);
  51.     Func_TubeConnector(30, 0, TUBE, TBR_PURPLE, 19655, 1938.339477, -2595.687988, 165.324798, -0.502410, 16.200431, -89.135406, 2000.0);
  52.     Func_TubeConnector(31, 1, TUBE, TBR_PURPLE, 19655, 1938.721923, -2618.958740, 168.976577, 0.502410, -16.200431, 90.864585, 2000.0);
  53.     Func_TubeConnector(32, 0, TUBE, TBR_PURPLE, 19683, 1922.583984, -2598.153564, 179.585418, 0.502414, -16.200431, 90.864562, 2000.0);
  54.     Func_TubeConnector(33, 0, TUBE, TBR_PURPLE, 19683, 1922.212646, -2573.233154, 180.109909, 0.502418, -1.200431, 90.864540, 2000.0);
  55.     Func_TubeConnector(34, 0, TUBE, TBR_PURPLE, 19683, 1921.795166, -2549.027099, 174.166229, 0.502415, 13.799568, 90.864509, 2000.0);
  56.     Func_TubeConnector(35, 0, TUBE, TBR_PURPLE, 19649, 1921.141967, -2515.809814, 156.834045, 0.502414, 28.799556, 90.864494, 2000.0);
  57.     Func_TubeConnector(36, 0, TUBE, TBR_PURPLE, 19686, 1920.488769, -2482.589843, 139.502807, -0.502415, -28.799554, -89.135490, 2000.0);
  58.     Func_TubeConnector(37, 1, TUBE, TBR_PURPLE, 19659, 1936.007568, -2460.086181, 133.052505, -0.502416, -13.799562, -89.135475, 2000.0);
  59.     Func_TubeConnector(38, 0, TUBE, TBR_PURPLE, 19683, 1952.302978, -2482.501953, 137.635559, -0.502411, -13.799556, -89.135452, 2000.0);
  60.     Func_TubeConnector(39, 0, TUBE, TBR_PURPLE, 19683, 1952.674560, -2507.422363, 137.115570, -0.502411, 1.200443, -89.135421, 2000.0);
  61.     Func_TubeConnector(40, 1, TUBE, TBR_PURPLE, 19659, 1937.053466, -2530.100097, 131.587158, 0.502407, -16.200435, 90.864540, 2000.0);
  62.     Func_TubeConnector(41, 0, TUBE, TBR_PURPLE, 19688, 1920.835693, -2507.729248, 135.772216, 0.502410, -16.200431, 90.864517, 2000.0);
  63.     Func_TubeConnector(42, 0, TUBE, TBR_PURPLE, 19683, 1920.406127, -2485.348632, 125.305419, 0.502414, 28.799568, 90.864486, 2000.0);
  64.     Func_TubeConnector(43, 0, TUBE, TBR_PURPLE, 19686, 1919.976562, -2466.230224, 109.232337, -0.502416, -43.799568, -89.135498, 2000.0);
  65.     Func_TubeConnector(44, 0, TUBE, TBR_PURPLE, 19686, 1919.541625, -2444.393554, 97.223770, -0.502419, -28.799568, -89.135482, 2000.0);
  66.     Func_TubeConnector(45, 0, TUBE, TBR_RED, 19686, 1919.124267, -2420.192382, 91.276969, -0.502416, -13.799562, -89.135475, 2000.0);
  67.     Func_TubeConnector(46, 0, TUBE, TBR_RED, 19683, 1918.737915, -2395.240478, 90.166267, 0.502411, -1.200443, 90.864509, 2000.0);
  68.     Func_TubeConnector(47, 2, TUBE, TBR_RED, 19661, 1913.104370, -2372.668701, 85.490371, 13.799023, -0.517341, -179.012054, 2000.0);
  69.     Func_TubeConnector(48, 0, TUBE, TBR_RED, 19683, 1889.884521, -2368.114990, 83.646118, 13.799016, -0.517331, -179.012039, 2000.0);
  70.     Func_TubeConnector(49, 0, TUBE, TBR_RED, 19683, 1865.776733, -2370.017578, 77.593872, 13.799016, 14.482667, -179.012023, 2000.0);
  71.     Func_TubeConnector(50, 1, TUBE, TBR_RED, 19665, 1838.045043, -2374.120361, 62.837959, 13.799015, 29.482669, -179.011993, 2000.0);
  72.     Func_TubeConnector(51, 0, TUBE, TBR_RED, 19686, 1834.507202, -2380.834228, 35.753967, -13.799012, -29.482667, 0.987993, 2000.0);
  73.     Func_TubeConnector(52, 0, TUBE, TBR_GREEN, 19686, 1810.404418, -2382.737060, 29.698745, -13.799010, -14.482660, 0.987981, 2000.0);
  74.     Func_TubeConnector(53, 2, TUBE, TBR_GREEN, 19661, 1787.364868, -2388.380126, 30.359806, -0.502407, -13.799551, -89.135391, 2000.0);
  75.     Func_TubeConnector(54, 2, TUBE, TBR_GREEN, 19682, 1784.921020, -2410.605957, 35.833702, -10.070348, -9.497145, -44.913249, 2000.0);
  76.     Func_TubeConnector(55, 1, TUBE, TBR_GREEN, 19681, 1799.061889, -2430.451904, 40.638893, 10.070348, 9.497134, 135.086746, 2000.0);
  77.     Func_TubeConnector(56, 0, TUBE, TBR_GREEN, 19649, 1802.106933, -2466.517578, 49.485870, -0.502421, -13.799550, -89.135368, 2000.0);
  78.     Func_TubeConnector(57, 0, TUBE, TBR_GREEN, 19689, 1802.741455, -2502.038818, 60.707393, -0.502411, -58.799556, -89.135398, 2000.0);
  79.     Func_TubeConnector(58, 0, TUBE, TBR_GREEN, 19688, 1803.155151, -2518.799560, 79.034133, -0.502411, -58.799549, -89.135391, 2000.0);
  80.     Func_TubeConnector(59, 0, TUBE, TBR_GREEN, 19688, 1803.563232, -2542.459960, 84.848274, -0.502419, -13.799549, -89.135360, 2000.0);
  81.     Func_TubeConnector(60, 1, TUBE, TBR_GREEN, 19667, 1798.640625, -2570.697753, 107.894416, -0.502411, 31.200443, -89.135360, 2000.0);
  82.     Func_TubeConnector(61, 1, TUBE, TBR_GREEN, 19667, 1787.542358, -2570.865478, 107.992340, -0.502410, 31.200445, -89.135360, 2000.0);
  83.     Func_TubeConnector(62, 1, TUBE, TBR_GREEN, 19667, 1776.444091, -2571.033203, 108.090263, -0.502410, 31.200448, -89.135360, 2000.0);
  84.     Func_TubeConnector(63, 0, TUBE, TBR_BLUE, 19649, 1770.616577, -2576.016845, 67.963607, -0.502410, 31.200448, -89.135360, 2000.0);
  85.     Func_TubeConnector(64, 1, TUBE, TBR_BLUE, 19662, 1765.688110, -2606.602050, 49.533966, 0.502409, -31.200448, 90.864608, 2000.0);
  86.     Func_TubeConnector(65, 0, TUBE, TBR_BLUE, 19686, 1742.616577, -2611.865722, 47.716968, 31.199111, 0.587370, 0.560326, 2000.0);
  87.     Func_TubeConnector(66, 0, TUBE, TBR_BLUE, 19686, 1718.643310, -2615.568603, 53.444171, 31.199111, 15.587369, 0.560333, 2000.0);
  88.     Func_TubeConnector(67, 0, TUBE, TBR_BLUE, 19683, 1696.412719, -2621.628173, 63.090763, -31.199111, -30.587364, -179.439636, 2000.0);
  89.     Func_TubeConnector(68, 0, TUBE, TBR_BLUE, 19683, 1672.436767, -2625.333740, 68.822326, -31.199100, -15.587368, -179.439605, 2000.0);
  90.     Func_TubeConnector(69, 0, TUBE, TBR_BLUE, 19683, 1647.512084, -2625.710937, 69.042846, -31.199104, -0.587371, -179.439575, 2000.0);
  91.     Func_TubeConnector(70, 1, TUBE, TBR_BLUE, 19662, 1624.839721, -2618.869873, 67.511398, 31.199100, -14.412630, 0.560433, 2000.0);
  92.     Func_TubeConnector(71, 2, TUBE, TBR_BLUE, 19660, 1604.135620, -2598.096679, 74.054595, 12.292652, 32.016864, -97.022460, 2000.0);
  93.     Func_TubeConnector(72, 1, TUBE, TBR_BLUE, 19659, 1573.447265, -2612.539550, 56.228149, -12.292649, -32.016860, 82.977531, 2000.0);
  94.     Func_TubeConnector(73, 0, TUBE, TBR_BLUE, 19683, 1558.020507, -2590.440185, 64.144493, -12.292664, -32.016841, 82.977523, 2000.0);
  95.     Func_TubeConnector(74, 0, TUBE, TBR_BLUE, 19683, 1559.392700, -2566.592529, 71.274742, -12.292664, -17.016841, 82.977516, 2000.0);
  96.     Func_TubeConnector(75, 0, TUBE, TBR_YELLOW, 19683, 1562.252563, -2541.843750, 72.134147, -12.292664, -2.016834, 82.977516, 2000.0);
  97.     Func_TubeConnector(76, 0, TUBE, TBR_YELLOW, 19649, 1568.348632, -2505.627685, 64.687500, -12.292672, 12.983154, 82.977523, 2000.0);
  98.     Func_TubeConnector(77, 0, TUBE, TBR_YELLOW, 19649, 1576.678955, -2457.563964, 53.711818, -12.292669, 12.983160, 82.977508, 2000.0);
  99.     Func_TubeConnector(78, 1, TUBE, TBR_YELLOW, 19657, 1597.608642, -2424.560058, 51.651550, 12.292667, -12.983160, -97.022491, 2000.0);
  100.     Func_TubeConnector(79, 0, TUBE, TBR_YELLOW, 19688, 1609.222290, -2448.402099, 60.125789, 12.292670, -12.983157, -97.022483, 2000.0);
  101.     Func_TubeConnector(80, 0, TUBE, TBR_YELLOW, 19649, 1608.942382, -2481.423095, 42.873733, 12.292675, 32.016845, -97.022491, 2000.0);
  102.     Func_TubeConnector(81, 0, TUBE, TBR_YELLOW, 19686, 1609.056152, -2513.881591, 24.143903, -12.292673, -32.016838, 82.977500, 2000.0);
  103.     Func_TubeConnector(82, 0, TUBE, TBR_YELLOW, 19686, 1607.684082, -2537.725585, 17.015090, -12.292664, -17.016841, 82.977500, 2000.0);
  104.     Func_TubeConnector(83, 0, TUBE, TBR_YELLOW, 19687, 1605.003173, -2562.440917, 15.359008, 12.292664, 2.016834, -97.022460, 2000.0);
  105.  
  106.  
  107.     //COVERS:
  108.     Func_TubeConnector(76, 0, COVER, TBR_YELLOW, 19649, 1567.367309, -2504.261962, 69.924026, -12.292669, 192.983154, 82.977508, 2000.0);
  109.     Func_TubeConnector(77, 0, COVER, TBR_YELLOW, 19649, 1575.697631, -2456.198242, 58.948341, -12.292666, 192.983169, 82.977493, 2000.0);
  110.     Func_TubeConnector(78, 1, COVER, TBR_YELLOW, 19657, 1596.627319, -2423.194335, 56.888072, -12.292667, -167.016830, 82.977508, 2000.0);
  111.     return 1;
  112. }
  113.  
  114.  
  115.  
  116. //FUNCTIONS (COPY IF YOU HAVEN'T):
  117. Func_TubeConnector(index, direction, tubetype, tubecolor, modelid, Float:X, Float:Y, Float:Z, Float:RX, Float:RY, Float:RZ, Float:distance, support_dir=0)
  118. {
  119.     new tube = CreateObject(modelid, X, Y, Z, RX, RY, RZ, distance);
  120.     switch(tubecolor)
  121.     {
  122.         case 0: SetObjectMaterial(tube, 0, 19659, "MatTubes", "RedDirt1");
  123.         case 1: SetObjectMaterial(tube, 0, 19659, "MatTubes", "GreenDirt1");
  124.         case 2: SetObjectMaterial(tube, 0, 19659, "MatTubes", "BlueDirt1");
  125.         case 3: SetObjectMaterial(tube, 0, 19659, "MatTubes", "YellowDirt1");
  126.         case 4: SetObjectMaterial(tube, 0, 19659, "MatTubes", "PurpleDirt1");
  127.     }
  128.     CallRemoteFunction("OnTubeImported", "ddddddffffffd", tube, index, direction, tubetype, tubecolor, modelid, X, Y, Z, RX, RY, RZ, support_dir); //DELETE THIS LINE ON YOUR SCRIPT, KEEP IN THIS FILE
  129.     return tube;
  130. }
  131.  
  132.  
  133. //0.3.7 Tube Connector 1.10
  134. //Created by adri1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement