26.12.2011, 14:49
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <streamer>
new AutoGate;
#if defined FILTERSCRIPT
#endif
public OnFilterScriptInit()
{
CreateDynamicObject(9482,2185.10009766,-1762.80004883,19.00000000,0.00000000,0.00000000,88.00000000); //object(chinagate) (1)
CreateDynamicObject(1550,2151.19995117,-1799.00000000,13.00000000,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (1)
CreateDynamicObject(1550,2151.30004883,-1798.40002441,13.00000000,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (2)
CreateDynamicObject(1550,2151.39990234,-1797.80004883,13.00000000,0.00000000,0.00000000,0.00000000); //object(cj_money_bag) (3)
CreateDynamicObject(1550,2151.50000000,-1797.09997559,13.00000000,0.00000000,0.00000000,0.25000000); //object(cj_money_bag) (4)
CreateDynamicObject(1550,2151.60009766,-1796.40002441,13.00000000,0.00000000,0.00000000,0.49719238); //object(cj_money_bag) (5)
CreateDynamicObject(1550,2151.60009766,-1795.69995117,13.00000000,0.00000000,0.00000000,0.49438477); //object(cj_money_bag) (6)
CreateDynamicObject(1550,2151.30004883,-1801.80004883,13.00000000,0.00000000,0.00000000,0.49438477); //object(cj_money_bag) (7)
CreateDynamicObject(1550,2151.30004883,-1802.50000000,13.00000000,0.00000000,0.00000000,0.49438477); //object(cj_money_bag) (8)
CreateDynamicObject(1550,2151.29980469,-1803.29980469,13.00000000,0.00000000,0.00000000,359.74182129); //object(cj_money_bag) (9)
CreateDynamicObject(1550,2151.30004883,-1804.00000000,13.00000000,0.00000000,0.00000000,359.74182129); //object(cj_money_bag) (10)
CreateDynamicObject(1550,2151.30004883,-1804.59997559,13.00000000,0.00000000,0.00000000,358.99182129); //object(cj_money_bag) (11)
CreateDynamicObject(1550,2151.30004883,-1805.19995117,13.00000000,0.00000000,0.00000000,358.23925781); //object(cj_money_bag) (12)
CreateDynamicObject(1550,2151.50000000,-1805.69995117,13.00000000,0.00000000,0.00000000,358.23669434); //object(cj_money_bag) (13)
CreateDynamicObject(2114,2190.00000000,-1786.69995117,12.50000000,0.00000000,0.00000000,0.00000000); //object(basketball) (1)
CreateDynamicObject(3496,2191.50000000,-1786.80004883,12.60000038,0.00000000,0.00000000,88.00000000); //object(vgsxrefbballnet) (1)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,15.30000019,0.00000000,0.00000000,0.00000000); //object(drug_white) (1)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,15.39999962,0.00000000,0.00000000,0.00000000); //object(drug_white) (2)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,15.50000000,0.00000000,0.00000000,0.00000000); //object(drug_white) (3)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,15.60000038,0.00000000,0.00000000,0.00000000); //object(drug_white) (4)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,15.69999981,0.00000000,0.00000000,0.00000000); //object(drug_white) (5)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,15.80000019,0.00000000,0.00000000,0.00000000); //object(drug_white) (6)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,15.89999962,0.75000000,0.00000000,0.00000000); //object(drug_white) (7)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,16.00000000,0.99707031,0.00000000,0.00000000); //object(drug_white) (8)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,16.10000038,1.49426270,0.00000000,0.00000000); //object(drug_white) (9)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,16.20000076,1.99414062,0.00000000,0.00000000); //object(drug_white) (10)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,16.29999924,2.24401855,0.00000000,0.00000000); //object(drug_white) (11)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,16.39999962,2.24121094,0.00000000,0.00000000); //object(drug_white) (12)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,16.50000000,2.24121094,0.00000000,0.00000000); //object(drug_white) (13)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,16.60000038,2.24121094,0.00000000,0.00000000); //object(drug_white) (14)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,16.70000076,2.49121094,0.00000000,0.00000000); //object(drug_white) (15)
CreateDynamicObject(1575,2141.30004883,-1804.30004883,15.19999981,2.48840332,0.00000000,0.00000000); //object(drug_white) (16)
CreateDynamicObject(1575,2141.39990234,-1804.30004883,15.10000038,0.23840332,0.00000000,0.00000000); //object(drug_white) (17)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,15.10000038,0.23620605,0.00000000,0.00000000); //object(drug_white) (18)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,15.19999981,0.23620605,0.00000000,0.00000000); //object(drug_white) (19)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,15.30000019,0.23620605,0.00000000,0.00000000); //object(drug_white) (20)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,15.39999962,0.48620605,0.00000000,0.00000000); //object(drug_white) (21)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,15.50000000,0.73339844,0.00000000,0.00000000); //object(drug_white) (22)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,15.60000038,0.73059082,0.00000000,0.00000000); //object(drug_white) (23)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,15.69999981,0.73059082,0.00000000,0.00000000); //object(drug_white) (24)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,15.80000019,0.73059082,0.00000000,0.00000000); //object(drug_white) (25)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,15.89999962,0.73059082,0.00000000,0.00000000); //object(drug_white) (26)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,16.00000000,0.73059082,0.00000000,0.00000000); //object(drug_white) (27)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,16.10000038,0.73059082,0.00000000,0.00000000); //object(drug_white) (28)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,16.20000076,0.73059082,0.00000000,0.00000000); //object(drug_white) (29)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,16.39999962,0.73059082,0.00000000,0.00000000); //object(drug_white) (30)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,16.29999924,0.73059082,0.00000000,0.00000000); //object(drug_white) (31)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,16.50000000,0.73059082,0.00000000,0.00000000); //object(drug_white) (32)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,16.60000038,0.73059082,0.00000000,0.00000000); //object(drug_white) (33)
CreateDynamicObject(1575,2141.39990234,-1804.00000000,16.70000076,0.98059082,0.00000000,0.00000000); //object(drug_white) (34)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,16.70000076,0.97778320,0.00000000,0.00000000); //object(drug_white) (35)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,16.70000076,0.97778320,0.00000000,0.00000000); //object(drug_white) (36)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,16.60000038,0.97778320,0.00000000,0.00000000); //object(drug_white) (37)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,16.50000000,0.97778320,0.00000000,0.00000000); //object(drug_white) (38)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,16.39999962,0.97778320,0.00000000,0.00000000); //object(drug_white) (39)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,16.29999924,0.97778320,0.00000000,0.00000000); //object(drug_white) (40)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,16.20000076,0.97778320,0.00000000,0.00000000); //object(drug_white) (41)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,16.10000038,0.97778320,0.00000000,0.00000000); //object(drug_white) (42)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,16.00000000,0.97778320,0.00000000,0.00000000); //object(drug_white) (43)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,15.89999962,0.97778320,0.00000000,0.00000000); //object(drug_white) (44)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,15.80000019,0.97778320,0.00000000,0.00000000); //object(drug_white) (45)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,15.69999981,0.97778320,0.00000000,0.00000000); //object(drug_white) (46)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,15.60000038,0.72778320,0.00000000,0.00000000); //object(drug_white) (47)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,15.50000000,0.72509766,0.00000000,0.00000000); //object(drug_white) (48)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,15.39999962,0.47509766,0.00000000,0.00000000); //object(drug_white) (49)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,15.30000019,0.47241211,0.00000000,0.00000000); //object(drug_white) (50)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,15.19999981,0.22241211,0.00000000,0.00000000); //object(drug_white) (51)
CreateDynamicObject(1575,2140.80004883,-1804.30004883,15.10000038,0.21972656,0.00000000,0.00000000); //object(drug_white) (52)
CreateDynamicObject(1575,2140.80004883,-1804.19995117,15.10000038,0.21972656,0.00000000,0.00000000); //object(drug_white) (53)
CreateDynamicObject(1575,2140.80004883,-1804.09997559,15.10000038,0.21972656,0.00000000,0.00000000); //object(drug_white) (54)
CreateDynamicObject(1575,2140.80004883,-1804.00000000,15.10000038,0.21972656,0.00000000,0.00000000); //object(drug_white) (55)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,15.10000038,0.21972656,0.00000000,0.00000000); //object(drug_white) (56)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,15.19999981,0.21972656,0.00000000,0.00000000); //object(drug_white) (57)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,15.30000019,0.46972656,0.00000000,0.00000000); //object(drug_white) (58)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,15.39999962,0.71691895,0.00000000,0.00000000); //object(drug_white) (59)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,15.50000000,0.71411133,0.00000000,0.00000000); //object(drug_white) (60)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,15.60000038,0.96411133,0.00000000,0.00000000); //object(drug_white) (61)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,15.69999981,1.21130371,0.00000000,0.00000000); //object(drug_white) (62)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,15.80000019,1.45849609,0.00000000,0.00000000); //object(drug_white) (63)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,15.89999962,1.45568848,0.00000000,0.00000000); //object(drug_white) (64)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,16.00000000,1.45568848,0.00000000,0.00000000); //object(drug_white) (65)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,16.10000038,1.70568848,0.00000000,0.00000000); //object(drug_white) (66)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,16.20000076,1.70288086,0.00000000,0.00000000); //object(drug_white) (67)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,16.29999924,1.70288086,0.00000000,0.00000000); //object(drug_white) (68)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,16.39999962,1.70288086,0.00000000,0.00000000); //object(drug_white) (69)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,16.50000000,1.70288086,0.00000000,0.00000000); //object(drug_white) (70)
CreateDynamicObject(1575,2140.89990234,-1804.00000000,16.60000038,1.70288086,0.00000000,0.00000000); //object(drug_white) (71)
CreateDynamicObject(1337,2180.00000000,-1761.90002441,17.89999962,356.53662109,30.06054688,70.00244141); //object(1)
CreateDynamicObject(1337,2179.60009766,-1761.90002441,17.89999962,356.53381348,30.05859375,69.99938965); //object(2)
CreateDynamicObject(1337,2190.19995117,-1760.59997559,17.89999962,356.53381348,30.05859375,107.99938965); //object(3)
CreateDynamicObject(1337,2190.39990234,-1760.59997559,17.89999962,356.52832031,30.05859375,107.99560547); //object(4)
CreateDynamicObject(1337,2190.39941406,-1760.59960938,17.89999962,356.52832031,30.05859375,107.99560547); //object(5)
CreateDynamicObject(2745,2179.30004883,-1765.80004883,13.80000019,0.00000000,0.00000000,92.00000000); //object(cj_stat_3) (1)
CreateDynamicObject(2693,2192.50000000,-1761.09997559,15.80000019,0.00000000,0.00000000,232.00000000); //object(cj_banner11) (1)
CreateDynamicObject(2692,2192.39941406,-1759.00000000,15.80000019,0.00000000,0.00000000,231.99829102); //object(cj_banner10) (1)
CreateDynamicObject(3471,2190.79980469,-1761.29980469,13.80000019,0.00000000,0.00000000,91.99951172); //object(vgschinalion1) (1)
CreateDynamicObject(3471,2179.19921875,-1761.39941406,13.80000019,0.00000000,0.00000000,91.99401855); //object(vgschinalion1) (2)
CreateDynamicObject(2745,2190.69995117,-1764.50000000,13.80000019,0.00000000,0.00000000,267.99951172); //object(cj_stat_3) (2)
CreateDynamicObject(14467,2176.19995117,-1761.30004883,23.50000000,0.00000000,0.00000000,183.99998474); //object(carter_statue) (1)
CreateDynamicObject(14467,2193.39941406,-1761.89941406,23.50000000,0.00000000,0.00000000,173.99597168); //object(carter_statue) (2)
CreateDynamicObject(2780,2185.30004883,-1762.09997559,24.10000038,0.00000000,0.00000000,0.00000000); //object(cj_smoke_mach) (1)
CreateDynamicObject(3471,2192.00000000,-1761.30004883,13.80000019,0.00000000,0.00000000,91.99951172); //object(vgschinalion1) (1)
CreateDynamicObject(3471,2193.19995117,-1761.19995117,13.80000019,0.00000000,0.00000000,91.99951172); //object(vgschinalion1) (1)
CreateDynamicObject(3471,2194.39990234,-1761.09997559,13.80000019,0.00000000,0.00000000,91.99951172); //object(vgschinalion1) (1)
CreateDynamicObject(3471,2178.10009766,-1761.40002441,13.80000019,0.00000000,0.00000000,91.99401855); //object(vgschinalion1) (2)
CreateDynamicObject(3471,2177.00000000,-1761.50000000,13.80000019,0.00000000,0.00000000,91.99401855); //object(vgschinalion1) (2)
CreateDynamicObject(3471,2175.89990234,-1761.59997559,13.80000019,0.00000000,0.00000000,91.99401855); //object(vgschinalion1) (2)
CreateDynamicObject(987,2195.60009766,-1775.40002441,12.19999981,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (1)
CreateDynamicObject(987,2195.60009766,-1787.30004883,12.19999981,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (2)
CreateDynamicObject(987,2195.60009766,-1799.30004883,12.19999981,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (3)
CreateDynamicObject(987,2195.50000000,-1811.30004883,12.19999981,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (4)
CreateDynamicObject(987,2195.50000000,-1823.00000000,12.19999981,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (5)
CreateDynamicObject(987,2195.50000000,-1834.80004883,12.19999981,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (6)
CreateDynamicObject(987,2195.50000000,-1839.59997559,12.19999981,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (7)
CreateDynamicObject(987,2135.19995117,-1832.90002441,12.19999981,0.00000000,0.00000000,90.50000000); //object(elecfence_bar) (8)
CreateDynamicObject(987,2135.19995117,-1832.90002441,16.79999924,0.00000000,0.00000000,90.49987793); //object(elecfence_bar) (9)
CreateDynamicObject(987,2135.50000000,-1820.90002441,16.79999924,0.00000000,0.00000000,90.49987793); //object(elecfence_bar) (10)
CreateDynamicObject(987,2135.50000000,-1820.90002441,12.30000019,0.00000000,0.00000000,90.49987793); //object(elecfence_bar) (11)
CreateDynamicObject(987,2135.80004883,-1808.90002441,16.79999924,0.00000000,0.00000000,90.49987793); //object(elecfence_bar) (12)
CreateDynamicObject(987,2135.60009766,-1796.90002441,16.79999924,0.00000000,0.00000000,90.50000000); //object(elecfence_bar) (13)
CreateDynamicObject(987,2129.30004883,-1786.00000000,16.79999924,0.00000000,0.00000000,90.49987793); //object(elecfence_bar) (14)
CreateDynamicObject(987,2128.80004883,-1776.80004883,16.79999924,0.00000000,0.00000000,90.49987793); //object(elecfence_bar) (16)
CreateDynamicObject(987,2129.69995117,-1762.59997559,16.79999924,0.00000000,0.00000000,0.49987793); //object(elecfence_bar) (17)
CreateDynamicObject(987,2141.60009766,-1762.40002441,16.79999924,0.00000000,0.00000000,0.49987793); //object(elecfence_bar) (18)
CreateDynamicObject(987,2153.60009766,-1762.50000000,16.79999924,0.00000000,0.00000000,0.49987793); //object(elecfence_bar) (19)
CreateDynamicObject(987,2165.00000000,-1762.50000000,16.79999924,0.00000000,0.00000000,344.49987793); //object(elecfence_bar) (20)
CreateDynamicObject(987,2175.50000000,-1766.19995117,16.79999924,0.00000000,0.00000000,268.49829102); //object(elecfence_bar) (21)
CreateDynamicObject(987,2175.39990234,-1773.00000000,16.79999924,0.00000000,0.00000000,268.49487305); //object(elecfence_bar) (22)
CreateDynamicObject(988,2132.80004883,-1786.00000000,18.29999924,0.00000000,0.00000000,0.00000000); //object(ws_apgate) (2)
CreateDynamicObject(14467,2187.50000000,-1816.80004883,20.60000038,0.00000000,0.00000000,179.99597168); //object(carter_statue) (2)
CreateDynamicObject(3471,2195.10009766,-1762.90002441,16.00000000,0.00000000,0.00000000,91.99951172); //object(vgschinalion1) (1)
CreateDynamicObject(3471,2194.00000000,-1762.90002441,16.00000000,0.00000000,0.00000000,91.99951172); //object(vgschinalion1) (1)
CreateDynamicObject(3471,2192.89990234,-1763.00000000,16.00000000,0.00000000,0.00000000,91.99951172); //object(vgschinalion1) (1)
CreateDynamicObject(3471,2191.89990234,-1763.19995117,16.00000000,0.00000000,0.00000000,91.99951172); //object(vgschinalion1) (1)
CreateDynamicObject(988,2187.39990234,-1763.30004883,18.79999924,0.00000000,0.00000000,177.99499512); //object(ws_apgate) (5)
CreateDynamicObject(988,2182.09960938,-1763.19921875,18.79999924,0.00000000,0.00000000,177.98950195); //object(ws_apgate) (6)
AutoGate = CreateDynamicObject(980,2184.89990234,-1763.19995117,15.19999981,0.00000000,0.00000000,0.00000000); //object(airportgate) (1)
CreateDynamicObject(5820,2185.60009766,-1834.59997559,21.79999924,0.00000000,0.00000000,272.00000000); //object(odrampbit02) (1)
CreateDynamicObject(4726,2179.50000000,-1855.30004883,23.29999924,0.00000000,0.00000000,0.00000000); //object(libtwrhelipd_lan2) (1)
CreateDynamicObject(1337,2169.70117188,-1858.78125000,3.63360214,0.00000000,0.00000000,0.00000000); //object(binnt07_la) (3)
CreateDynamicObject(1371,2146.69995117,-1819.50000000,15.89999962,0.00000000,0.00000000,148.00000000); //object(cj_hippo_bin) (1)
CreateDynamicObject(6865,2184.80004883,-1763.09997559,19.39999962,0.00000000,0.00000000,224.00000000); //object(steerskull) (1)
CreateDynamicObject(3524,2190.80004883,-1791.50000000,15.39999962,0.00000000,0.00000000,270.00000000); //object(skullpillar01_lvs) (1)
CreateDynamicObject(3524,2178.60009766,-1787.00000000,15.39999962,0.00000000,0.00000000,40.00000000); //object(skullpillar01_lvs) (2)
CreateDynamicObject(6965,2163.50000000,-1776.59997559,22.20000076,0.00000000,0.00000000,0.00000000); //object(venefountain02) (1)
CreateDynamicObject(16782,2130.30004883,-1764.40002441,18.79999924,0.00000000,0.00000000,0.00000000); //object(a51_radar_scan) (1)
CreateDynamicObject(3786,2130.89990234,-1766.40002441,21.89999962,0.00000000,0.00000000,178.00000000); //object(missile_05_sfxr) (1)
CreateDynamicObject(3786,2131.00000000,-1765.50000000,21.89999962,0.00000000,0.00000000,177.99499512); //object(missile_05_sfxr) (2)
CreateDynamicObject(3786,2131.00000000,-1764.59997559,21.89999962,0.00000000,0.00000000,177.99499512); //object(missile_05_sfxr) (3)
CreateDynamicObject(3786,2131.00000000,-1763.59997559,21.89999962,0.00000000,0.00000000,177.99499512); //object(missile_05_sfxr) (4)
return 1;
}
public OnPlayerConnect(playerid)
{
SetTimerEx( "AGCheck", 750, true, "i", playerid );
return 1;
}
forward AGCheck(playerid);
public AGCheck(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,8.0,2184.8999023438, -1763.1999511719, 15.199999809265))
{
MoveDynamicObject(AutoGate,2196.1999511719, -1763.9000244141, 15.199999809265,2.00);
}
else
{
MoveDynamicObject(AutoGate,2184.8999023438, -1763.1999511719, 15.199999809265,2.00);
}
return 1;
}