You had numerous things wrong with that script, I'm not going to go into them, you can compare both scripts and see what I changed.
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
#include <streamer>
//-------------------------------------------------
new Menu:ElevatorMenu;
new ElevatorObj;
public OnFilterScriptInit()
{
CreateDynamicObject(19375,2902.7998047,-1078.7998047,8.8999996,0.0000000,0.0000000,90.0000000); //object(road_sfw13) (1)
CreateDynamicObject(19378,2902.7998047,-1084.0000000,10.1999998,179.9945068,90.0000000,90.0000000); //object(road_sfw13) (2)
CreateDynamicObject(19378,2902.7998047,-1094.5000000,10.1999998,179.9945068,90.0000000,90.0000000); //object(road_sfw13) (3)
CreateDynamicObject(19375,2902.7998047,-1099.6992188,8.8999996,180.0000000,0.0000000,270.0000000); //object(road_sfw13) (4)
CreateDynamicObject(19378,2912.4296875,-1084.0000000,10.1999998,0.0000000,90.0000000,90.0000000); //object(road_sfw13) (5)
CreateDynamicObject(19378,2912.4296875,-1094.5000000,10.1999998,0.0000000,90.0000000,90.0000000); //object(road_sfw13) (6)
CreateDynamicObject(19375,2909.3994141,-1084.0000000,6.1999998,90.0000000,0.0000000,0.0000000); //object(road_sfw13) (7)
CreateDynamicObject(19375,2912.5996094,-1094.5000000,6.1999998,90.0000000,0.0000000,0.0000000); //object(road_sfw13) (8)
CreateDynamicObject(19366,2914.1992188,-1080.5000000,11.0000000,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (1)
CreateDynamicObject(19429,2916.5000000,-1080.5000000,10.6000004,29.9981689,90.0000000,90.0000000); //object(cs_landbit_a) (1)
CreateDynamicObject(19366,2914.1999512,-1084.0000000,11.0000000,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (2)
CreateDynamicObject(19366,2914.1999512,-1087.5000000,11.0000000,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (3)
CreateDynamicObject(19366,2914.1999512,-1091.0000000,11.0000000,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (4)
CreateDynamicObject(19366,2914.1999512,-1094.5000000,11.0000000,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (5)
CreateDynamicObject(19366,2914.1999512,-1098.0000000,11.0000000,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (6)
CreateDynamicObject(19429,2916.5000000,-1084.0000000,10.6000004,29.9981689,90.0000000,90.0000000); //object(cs_landbit_a) (3)
CreateDynamicObject(19429,2916.5000000,-1087.5000000,10.6000004,29.9981689,90.0000000,90.0000000); //object(cs_landbit_a) (4)
CreateDynamicObject(19429,2916.5000000,-1091.0000000,10.6000004,29.9981689,90.0000000,90.0000000); //object(cs_landbit_a) (5)
CreateDynamicObject(19429,2916.5000000,-1094.5000000,10.6000004,29.9981689,90.0000000,90.0000000); //object(cs_landbit_a) (6)
CreateDynamicObject(19429,2916.5000000,-1098.0000000,10.6000004,29.9981689,90.0000000,90.0000000); //object(cs_landbit_a) (7)
CreateDynamicObject(19375,2912.4296875,-1099.6992188,15.3000011,0.0000000,0.0000000,90.0000000); //object(road_sfw13) (9)
CreateDynamicObject(19375,2912.4296875,-1078.7998047,15.3000002,0.0000000,0.0000000,90.0000000); //object(road_sfw13) (10)
CreateDynamicObject(19378,2902.7998047,-1084.0000000,14.1000004,0.0000000,90.0000000,90.0000000); //object(road_sfw13) (11)
CreateDynamicObject(19378,2902.7998047,-1094.5000000,14.1000004,0.0000000,90.0000000,90.0000000); //object(road_sfw13) (12)
CreateDynamicObject(19378,2912.4296875,-1094.5000000,14.1000004,0.0000000,90.0000000,90.0000000); //object(road_sfw13) (14)
CreateDynamicObject(970,2915.6999512,-1097.5000000,11.6000004,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (1)
CreateDynamicObject(970,2915.6999512,-1081.0000000,11.6000004,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (2)
CreateDynamicObject(970,2915.6999512,-1093.3000488,11.6000004,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (3)
CreateDynamicObject(970,2915.6999512,-1085.1999512,11.6000004,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (4)
CreateDynamicObject(970,2915.6999512,-1089.2500000,11.6000004,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (5)
CreateDynamicObject(3441,2898.8994141,-1089.2500000,12.1000004,0.0000000,0.0000000,0.0000000); //object(luxorpillar02_lvs) (1)
CreateDynamicObject(3441,2909.5000000,-1084.0999756,12.1000004,0.0000000,0.0000000,0.0000000); //object(luxorpillar02_lvs) (4)
CreateDynamicObject(3441,2912.5000000,-1094.5000000,12.1000004,0.0000000,0.0000000,0.0000000); //object(luxorpillar02_lvs) (5)
CreateDynamicObject(19356,2906.0097656,-1078.7998047,15.8999996,0.0000000,0.0000000,90.0000000); //object(blokmod2_sfw03) (8)
CreateDynamicObject(19356,2902.7998047,-1078.7998047,15.8999996,0.0000000,0.0000000,90.0000000); //object(blokmod2_sfw03) (9)
CreateDynamicObject(19356,2906.0097656,-1099.6992188,15.8999996,179.9945068,0.0000000,90.0000000); //object(blokmod2_sfw03) (10)
CreateDynamicObject(19356,2902.7998047,-1099.6992188,15.8999996,0.0000000,0.0000000,90.0000000); //object(blokmod2_sfw03) (11)
CreateDynamicObject(19378,2902.7998047,-1084.0000000,17.6000004,0.0000000,90.0000000,90.0000000); //object(road_sfw13) (15)
CreateDynamicObject(19378,2902.7998047,-1094.5000000,17.6000004,0.0000000,90.0000000,90.0000000); //object(road_sfw13) (16)
CreateDynamicObject(19378,2912.4296875,-1094.5000000,18.1000004,0.0000000,90.0000000,90.0000000); //object(road_sfw13) (17)
CreateDynamicObject(3851,2917.0996094,-1094.0000000,16.1000004,0.0000000,0.0000000,0.0000000); //object(carshowwin_sfsx) (2)
CreateDynamicObject(19366,2915.6396484,-1087.5000000,18.1000004,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (12)
CreateDynamicObject(19366,2912.4296875,-1087.5000000,18.1000004,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (13)
CreateDynamicObject(19366,2909.2197266,-1087.5000000,18.1000004,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (14)
CreateDynamicObject(19366,2915.6396484,-1084.0000000,18.1000004,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (16)
CreateDynamicObject(19366,2912.4296875,-1084.0000000,18.1000004,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (17)
CreateDynamicObject(19366,2909.2197266,-1084.0000000,18.1000004,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (18)
CreateDynamicObject(19366,2909.2197266,-1080.5000000,18.1000004,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (19)
CreateDynamicObject(19366,2912.4296875,-1080.5000000,10.8,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (20)
CreateDynamicObject(19458,2908.7998047,-1094.8994141,18.0000000,0.0000000,90.0000000,0.0000000); //object(cs_detrok02) (3)
CreateDynamicObject(19458,2908.5000000,-1094.9345703,17.8999996,0.0000000,90.0000000,0.0000000); //object(cs_detrok02) (4)
CreateDynamicObject(19458,2908.2998047,-1094.9345703,17.7999992,0.0000000,90.0000000,0.0000000); //object(cs_detrok02) (5)
CreateDynamicObject(19458,2908.0000000,-1094.9345703,17.7000008,0.0000000,90.0000000,0.0000000); //object(cs_detrok02) (6)
CreateDynamicObject(19458,2908.8000488,-1083.5999756,18.0000000,0.0000000,90.0000000,0.0000000); //object(cs_detrok02) (7)
CreateDynamicObject(19458,2908.5000000,-1083.5999756,17.8999996,0.0000000,90.0000000,0.0000000); //object(cs_detrok02) (8)
CreateDynamicObject(19458,2908.2998047,-1083.5996094,17.7999992,0.0000000,90.0000000,0.0000000); //object(cs_detrok02) (9)
CreateDynamicObject(19458,2908.0000000,-1083.5999756,17.7000008,0.0000000,90.0000000,0.0000000); //object(cs_detrok02) (10)
CreateDynamicObject(19448,2901.1992188,-1083.5996094,15.8999996,0.0000000,0.0000000,0.0000000); //object(cs_detrok02) (11)
CreateDynamicObject(19448,2901.1992188,-1094.8994141,15.8999996,0.0000000,0.0000000,0.0000000); //object(cs_detrok02) (12)
CreateDynamicObject(19378,2912.4296875,-1084.0000000,20.5000000,0.0000000,90.0000000,90.0000000); //object(road_sfw13) (19)
CreateDynamicObject(19378,2912.4296875,-1094.5000000,20.5000000,0.0000000,90.0000000,90.0000000); //object(road_sfw13) (20)
CreateDynamicObject(19356,2906.0097656,-1078.7998047,19.3999996,0.0000000,179.9945068,90.0000000); //object(blokmod2_sfw03) (23)
CreateDynamicObject(19356,2906.0097656,-1099.6992188,19.3999996,179.9945068,0.0000000,90.0000000); //object(blokmod2_sfw03) (24)
CreateDynamicObject(19366,2906.0097656,-1098.0000000,21.1000004,0.0000000,270.0000000,90.0000000); //object(blokmod2_sfw03) (25)
CreateDynamicObject(19366,2906.0097656,-1080.5000000,21.1000004,0.0000000,270.0000000,90.0000000); //object(blokmod2_sfw03) (26)
CreateDynamicObject(19366,2906.0097656,-1094.5000000,21.1000004,0.0000000,270.0000000,90.0000000); //object(blokmod2_sfw03) (27)
CreateDynamicObject(19366,2906.0097656,-1084.0000000,21.1000004,0.0000000,270.0000000,90.0000000); //object(blokmod2_sfw03) (28)
CreateDynamicObject(19366,2906.0097656,-1091.0000000,21.1000004,0.0000000,270.0000000,90.0000000); //object(blokmod2_sfw03) (29)
CreateDynamicObject(19366,2906.0097656,-1087.5000000,21.1000004,0.0000000,270.0000000,90.0000000); //object(blokmod2_sfw03) (30)
CreateDynamicObject(19366,2909.1796875,-1096.2500000,20.8199997,9.9975586,90.0000000,90.0000000); //object(blokmod2_sfw03) (31)
CreateDynamicObject(19366,2909.1796875,-1089.2500000,20.8199997,9.9975586,90.0000000,90.0000000); //object(blokmod2_sfw03) (32)
CreateDynamicObject(19366,2909.1796875,-1082.2500000,20.8199997,9.9975586,90.0000000,90.0000000); //object(blokmod2_sfw03) (33)
CreateDynamicObject(19356,2904.4394531,-1089.2998047,19.3999996,179.9945068,0.0000000,0.0000000); //object(blokmod2_sfw03) (34)
CreateDynamicObject(1649,2917.1992188,-1086.1992188,15.6999998,0.0000000,0.0000000,90.0000000); //object(wglasssmash) (1)
CreateDynamicObject(1649,2917.1992188,-1081.0996094,15.6999998,0.0000000,0.0000000,90.0000000); //object(wglasssmash) (2)
CreateDynamicObject(1649,2917.1992188,-1081.0996094,18.8999996,0.0000000,0.0000000,90.0000000); //object(wglasssmash) (3)
CreateDynamicObject(1649,2917.1992188,-1086.1992188,18.8999996,0.0000000,0.0000000,90.0000000); //object(wglasssmash) (4)
CreateDynamicObject(3499,2916.8994141,-1083.6992188,15.3999996,0.0000000,0.0000000,0.0000000); //object(wdpillar02_lvs) (1)
CreateDynamicObject(3499,2916.8994141,-1094.7998047,15.3999996,0.0000000,0.0000000,0.0000000); //object(wdpillar02_lvs) (2)
CreateDynamicObject(19366,2915.6396484,-1080.5000000,18.1000004,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (36)
CreateDynamicObject(19356,2914.0996094,-1080.3994141,15.2200003,0.0000000,0.0000000,0.0000000); //object(blokmod2_sfw03) (37)
CreateDynamicObject(19356,2914.0996094,-1080.3994141,18.7099991,0.0000000,0.0000000,0.0000000); //object(blokmod2_sfw03) (38)
CreateDynamicObject(19356,2910.7998047,-1080.5000000,18.7099991,0.0000000,0.0000000,0.0000000); //object(blokmod2_sfw03) (39)
CreateDynamicObject(19356,2910.7998047,-1080.5000000,15.2200003,0.0000000,0.0000000,0.0000000); //object(blokmod2_sfw03) (40)
CreateDynamicObject(19366,2911.0000000,-1080.5000000,11.0000000,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (41)
CreateDynamicObject(19366,2911.0000000,-1084.0000000,11.0000000,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (42)
CreateDynamicObject(19366,2911.0000000,-1087.5000000,11.0000000,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (43)
CreateDynamicObject(19366,2911.0000000,-1089.1999512,9.3000002,0.0000000,0.0000000,90.0000000); //object(blokmod2_sfw03) (44)
CreateDynamicObject(19356,2910.7998047,-1080.5000000,11.7700005,0.0000000,0.0000000,0.0000000); //object(blokmod2_sfw03) (45)
CreateDynamicObject(19356,2914.0996094,-1080.3994141,11.7700005,0.0000000,0.0000000,0.0000000); //object(blokmod2_sfw03) (46)
CreateDynamicObject(19458,2912.4296875,-1087.5000000,14.1000004,0.0000000,90.0000000,90.0000000); //object(cs_detrok02) (15)
CreateDynamicObject(19458,2912.4296875,-1084.0000000,14.1000004,0.0000000,90.0000000,90.0000000); //object(cs_detrok02) (16)
CreateDynamicObject(19366,2909.2197266,-1080.5000000,14.1000004,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (47)
CreateDynamicObject(19366,2915.6398926,-1080.5000000,14.1000004,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (48)
CreateDynamicObject(10244,2904.6992188,-1076.6494141,10.6400003,0.0000000,0.0000000,179.9945068); //object(vicjump_sfe) (3)
CreateDynamicObject(970,2898.1999512,-1080.9000244,14.6999998,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (6)
CreateDynamicObject(970,2898.1992188,-1085.0996094,14.6999998,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (7)
CreateDynamicObject(970,2898.1992188,-1089.2998047,14.6999998,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (8)
CreateDynamicObject(970,2898.1999512,-1093.5000000,14.6999998,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (9)
CreateDynamicObject(970,2898.1999512,-1097.6999512,14.6999998,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (10)
CreateDynamicObject(970,2900.3000488,-1099.6999512,14.6999998,0.0000000,0.0000000,0.0000000); //object(fencesmallb) (11)
CreateDynamicObject(1502,2901.1992188,-1090.0000000,14.1700001,0.0000000,0.0000000,90.0000000); //object(gen_doorint04) (1)
CreateDynamicObject(19375,2915.1992188,-1094.5000000,5.8000002,114.9938965,90.0000000,90.0000000); //object(road_sfw13) (23)
CreateDynamicObject(19375,2915.1992188,-1084.0000000,5.8000002,114.9938965,90.0000000,90.0000000); //object(road_sfw13) (24)
CreateDynamicObject(970,2909.5000000,-1081.0000000,11.6000004,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (12)
CreateDynamicObject(970,2909.5000000,-1087.1500244,11.6000004,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (13)
CreateDynamicObject(970,2912.6992188,-1091.3398438,11.6000004,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (14)
CreateDynamicObject(970,2912.6999512,-1097.5000000,11.6000004,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (15)
CreateDynamicObject(19366,2911.0000000,-1087.9000244,10.8000002,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (7)
CreateDynamicObject(19366,2911.0000000,-1088.3000488,10.6299992,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (15)
CreateDynamicObject(19366,2911.0000000,-1088.6999512,10.4600000,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (22)
CreateDynamicObject(19366,2911.0000000,-1089.0000000,10.2849998,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (35)
CreateDynamicObject(19366,2918.7998047,-1098.0000000,18.1000004,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (49)
CreateDynamicObject(19366,2918.7998047,-1094.5000000,18.1000004,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (50)
CreateDynamicObject(19366,2918.8000488,-1091.0000000,18.1000004,0.0000000,90.0000000,90.0000000); //object(blokmod2_sfw03) (51)
CreateDynamicObject(9131,2901.1999512,-1090.5000000,15.3000002,0.0000000,0.0000000,135.0000000); //object(shbbyhswall13_lvs) (1)
CreateDynamicObject(9131,2901.1992188,-1088.0000000,15.3000002,0.0000000,0.0000000,135.0000000); //object(shbbyhswall13_lvs) (2)
CreateDynamicObject(9131,2901.0000000,-1090.3994141,16.7999992,0.0000000,270.0000000,90.0000000); //object(shbbyhswall13_lvs) (3)
CreateDynamicObject(9131,2901.0000000,-1088.1999512,16.7999992,0.0000000,90.0000000,90.0000000); //object(shbbyhswall13_lvs) (4)
CreateDynamicObject(9131,2900.8000488,-1089.3000488,17.1000004,0.0000000,90.0000000,90.0000000); //object(shbbyhswall13_lvs) (7)
CreateDynamicObject(19458,2909.0000000,-1094.9000244,17.6208458,0.0000000,90.0000000,0.0000000); //object(cs_detrok02) (19)
CreateDynamicObject(19458,2909.0000000,-1083.5999756,17.6208458,0.0000000,90.0000000,0.0000000); //object(cs_detrok02) (20)
CreateDynamicObject(19366,2909.0000000,-1089.1992188,17.7000008,0.0000000,90.0000000,0.0000000); //object(blokmod2_sfw03) (56)
CreateDynamicObject(3499,2910.1999512,-1094.1999512,17.5000000,90.0000000,0.0000000,0.0000000); //object(wdpillar02_lvs) (8)
CreateDynamicObject(3499,2910.1999512,-1084.3000488,17.5000000,90.0000000,0.0000000,0.0000000); //object(wdpillar02_lvs) (9)
CreateDynamicObject(19356,2910.7998047,-1083.6992188,15.8999996,0.0000000,0.0000000,0.0000000); //object(blokmod2_sfw03) (57)
CreateDynamicObject(19356,2910.7998047,-1098.0000000,15.8999996,0.0000000,0.0000000,0.0000000); //object(blokmod2_sfw03) (59)
CreateDynamicObject(19356,2910.7998047,-1094.7998047,15.8999996,0.0000000,0.0000000,0.0000000); //object(blokmod2_sfw03) (60)
CreateDynamicObject(19356,2905.9990234,-1098.0000000,15.8999996,0.0000000,0.0000000,0.0000000); //object(cables_sfw28) (12)
CreateDynamicObject(19356,2910.7998047,-1086.8994141,15.8999996,0.0000000,0.0000000,0.0000000); //object(blokmod2_sfw03) (53)
CreateDynamicObject(19356,2906.0000000,-1094.7998047,15.8999996,0.0000000,0.0000000,0.0000000); //object(cables_sfw28) (11)
CreateDynamicObject(19356,2906.0000000,-1086.8994141,15.8999996,0.0000000,0.0000000,0.0000000); //object(cables_sfw28) (9)
CreateDynamicObject(19356,2906.0000000,-1083.6992188,15.8999996,0.0000000,0.0000000,0.0000000); //object(cables_sfw28) (8)
CreateDynamicObject(19356,2906.0000000,-1080.5000000,15.8999996,0.0000000,0.0000000,0.0000000); //object(cables_sfw28) (10)
CreateDynamicObject(19356,2907.1083984,-1089.5791016,15.8999996,0.0000000,0.0000000,44.9890137); //object(cables_sfw28) (3)
CreateDynamicObject(19386,2909.6894531,-1089.5791016,15.8999996,0.0000000,0.0000000,135.0000000); //object(vicbig_sfw1) (3)
CreateDynamicObject(19356,2907.1074219,-1094.2646484,15.8999996,0.0000000,0.0000000,44.9890137); //object(cables_sfw28) (4)
CreateDynamicObject(19356,2904.8994141,-1087.3691406,15.8999996,0.0000000,0.0000000,44.9945068); //object(cables_sfw28) (5)
CreateDynamicObject(19386,2902.3994141,-1087.0000000,15.8999996,0.0000000,0.0000000,119.9981384); //object(vicbig_sfw1) (5)
CreateDynamicObject(19386,2909.6894531,-1094.2597656,15.8999996,0.0000000,0.0000000,135.0000000); //object(vicbig_sfw1) (6)
CreateDynamicObject(19356,2904.8388672,-1091.9980469,15.8999996,0.0000000,0.0000000,44.7473145); //object(cables_sfw28) (6)
CreateDynamicObject(19386,2902.3994141,-1091.6992188,15.8999996,0.0000000,0.0000000,119.9926758); //object(vicbig_sfw1) (7)
CreateDynamicObject(9131,2908.3999023,-1095.1999512,15.3000002,0.0000000,0.0000000,315.0000000); //object(shbbyhswall13_lvs) (5)
CreateDynamicObject(9131,2908.3994141,-1095.2998047,16.5000000,179.9945068,0.0000000,225.0000000); //object(shbbyhswall13_lvs) (6)
CreateDynamicObject(9131,2908.3999023,-1090.5000000,15.3000002,0.0000000,0.0000000,135.0000000); //object(shbbyhswall13_lvs) (8)
CreateDynamicObject(9131,2908.3999023,-1090.5999756,16.5000000,180.0000000,0.0000000,45.0000000); //object(shbbyhswall13_lvs) (9)
CreateDynamicObject(970,2902.3000488,-1078.8000488,18.2000008,0.0000000,0.0000000,0.0000000); //object(fencesmallb) (16)
CreateDynamicObject(970,2899.1396484,-1080.5996094,18.2000008,0.0000000,0.0000000,59.9963379); //object(fencesmallb) (17)
CreateDynamicObject(970,2902.3000488,-1099.6999512,18.2000008,0.0000000,0.0000000,0.0000000); //object(fencesmallb) (18)
CreateDynamicObject(970,2899.1396484,-1097.8994141,18.2000008,0.0000000,0.0000000,119.9981689); //object(fencesmallb) (21)
CreateDynamicObject(970,2898.0996094,-1084.5000000,18.2000008,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (22)
CreateDynamicObject(970,2898.0996094,-1089.2500000,18.2000008,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (23)
CreateDynamicObject(970,2898.0996094,-1094.0000000,18.2000008,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (24)
CreateDynamicObject(970,2918.7998047,-1098.1992188,18.7000008,0.0000000,0.0000000,44.9945068); //object(fencesmallb) (25)
CreateDynamicObject(970,2918.7998047,-1090.7998047,18.7000008,0.0000000,0.0000000,135.0000000); //object(fencesmallb) (26)
CreateDynamicObject(970,2920.2998047,-1094.5000000,18.7000008,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (27)
CreateDynamicObject(1786,2908.2998047,-1079.6992188,14.4989004,0.0000000,0.0000000,0.0000000); //object(swank_tv_4) (37)
CreateDynamicObject(2311,2907.6367188,-1080.0000000,14.0000000,0.0000000,0.0000000,0.0000000); //object(cj_tv_table2) (4)
CreateDynamicObject(2229,2910.1999512,-1079.9000244,14.1000004,0.0000000,0.0000000,0.0000000); //object(swank_speaker) (1)
CreateDynamicObject(2229,2907.1999512,-1079.9000244,14.1000004,0.0000000,0.0000000,0.0000000); //object(swank_speaker) (2)
CreateDynamicObject(2663,2908.5000000,-1084.0999756,14.9399996,0.0000000,0.0000000,333.9953613); //object(cj_bs_bag) (1)
CreateDynamicObject(2647,2908.3999023,-1084.6999512,14.8499994,0.0000000,0.0000000,0.0000000); //object(cj_bs_cup) (1)
CreateDynamicObject(2344,2908.8000488,-1084.6999512,14.7200003,350.0000000,0.0000000,270.0000000); //object(cj_remote) (1)
CreateDynamicObject(1744,2908.0000000,-1078.7349854,15.8000002,0.0000000,0.0000000,0.0000000); //object(med_shelf) (2)
CreateDynamicObject(1809,2908.4799805,-1079.0498047,16.1299992,0.0000000,0.0000000,0.0000000); //object(med_hi_fi) (1)
CreateDynamicObject(2100,2906.1999512,-1084.4000244,14.1999998,0.0000000,0.0000000,90.0000000); //object(med_hi_fi_2) (1)
CreateDynamicObject(2299,2901.6999512,-1082.4019775,14.1799994,0.0000000,0.0000000,0.0000000); //object(swank_bed_6) (1)
CreateDynamicObject(1823,2903.1999512,-1079.9000244,14.1799994,0.0000000,0.0000000,0.0000000); //object(coffee_med_5) (1)
CreateDynamicObject(2025,2905.5000000,-1082.2998047,14.1799994,0.0000000,0.0000000,270.0000000); //object(mrk_wrobe_tmp) (1)
CreateDynamicObject(2297,2905.3000488,-1085.0000000,14.1799994,0.0000000,0.0000000,180.0000000); //object(tv_unit_2) (1)
CreateDynamicObject(2522,2907.8999023,-1099.1099854,14.1890001,0.0000000,0.0000000,180.0000000); //object(cj_bath3) (1)
CreateDynamicObject(2517,2907.6000977,-1097.0000000,14.1700001,0.0000000,0.0000000,90.0000000); //object(cj_shower1) (1)
CreateDynamicObject(2528,2907.0000000,-1095.0000000,14.1999998,0.0000000,0.0000000,314.9945068); //object(cj_toilet3) (1)
CreateDynamicObject(2523,2910.1999512,-1099.0999756,14.1900997,0.0000000,0.0000000,180.0000000); //object(cj_b_sink3) (1)
CreateDynamicObject(2137,2904.4494629,-1099.1020508,14.1999998,0.0000000,0.0000000,180.0000000); //object(cj_k3_low_unit3) (2)
CreateDynamicObject(2138,2905.4101562,-1098.1159668,14.1999998,0.0000000,0.0000000,270.0000000); //object(cj_k3_low_unit1) (1)
CreateDynamicObject(2139,2905.4020996,-1097.1198730,14.1920805,0.0000000,0.0000000,270.0000000); //object(cj_k3_low_unit2) (1)
CreateDynamicObject(2140,2902.4799805,-1099.1020508,14.1999998,0.0000000,0.0000000,180.0000000); //object(cj_k3_tall_unit1) (1)
CreateDynamicObject(2305,2905.4099121,-1099.0997314,14.1999998,0.0000000,0.0000000,270.0000000); //object(cj_k3_c_unit) (1)
CreateDynamicObject(2135,2903.4550781,-1099.1097412,14.1999998,0.0000000,0.0000000,180.0000000); //object(cj_k3_cooker) (1)
CreateDynamicObject(2136,2905.4169922,-1095.1309814,14.1999998,0.0000000,0.0000000,270.0000000); //object(cj_k3_sink) (1)
CreateDynamicObject(2357,2902.0000000,-1095.8994141,14.5830002,0.0000000,0.0000000,90.0000000); //object(dunc_dinning) (2)
CreateDynamicObject(1811,2903.0000000,-1096.8000488,14.8000002,0.0000000,0.0000000,314.0000000); //object(med_din_chair_5) (1)
CreateDynamicObject(1811,2902.8994141,-1095.0000000,14.8000002,0.0000000,0.0000000,27.9986572); //object(med_din_chair_5) (2)
CreateDynamicObject(2207,2914.8000488,-1096.1999512,14.1999998,0.0000000,0.0000000,180.0000000); //object(med_office7_desk_1) (1)
CreateDynamicObject(1714,2914.1999512,-1098.1999512,14.1999998,0.0000000,0.0000000,200.0000000); //object(kb_swivelchair1) (1)
CreateDynamicObject(2190,2913.5000000,-1096.1999512,15.0000000,0.0000000,0.0000000,0.0000000); //object(pc_1) (1)
CreateDynamicObject(2186,2912.3000488,-1099.0999756,14.1799994,0.0000000,0.0000000,180.0000000); //object(photocopier_1) (1)
CreateDynamicObject(2224,2911.0000000,-1094.4000244,14.1999998,0.0000000,0.0000000,350.0000000); //object(cj_sphere_tv) (1)
CreateDynamicObject(2164,2916.5000000,-1099.5999756,14.1799994,0.0000000,0.0000000,180.0000000); //object(med_office_unit_5) (1)
CreateDynamicObject(2609,2916.8000488,-1095.5999756,14.9010000,0.0000000,0.0000000,1.7500000); //object(cj_p_fileing1) (1)
CreateDynamicObject(1646,2918.5000000,-1096.8000488,18.5000000,0.0000000,0.0000000,135.0000000); //object(lounge_towel_up) (1)
CreateDynamicObject(1646,2918.5000000,-1092.4000244,18.5000000,0.0000000,0.0000000,44.9945068); //object(lounge_towel_up) (2)
CreateDynamicObject(1815,2917.8999023,-1095.0999756,18.2000008,0.0000000,0.0000000,0.0000000); //object(coffee_low_2) (1)
CreateDynamicObject(19128,2913.6999512,-1087.6999512,18.2000008,0.0000000,0.0000000,0.0000000); //object(sw_bridge03) (1)
CreateDynamicObject(19128,2909.6992188,-1087.6992188,18.2000008,0.0000000,0.0000000,0.0000000); //object(sw_bridge03) (2)
CreateDynamicObject(19128,2913.6992188,-1091.6992188,18.2000008,0.0000000,0.0000000,0.2471924); //object(sw_bridge03) (3)
CreateDynamicObject(19128,2909.6992188,-1091.6992188,18.2000008,0.0000000,0.0000000,0.0000000); //object(sw_bridge03) (4)
CreateDynamicObject(19159,2911.6999512,-1089.5999756,20.2000008,0.0000000,0.0000000,0.0000000); //object(sw_apartments07) (1)
CreateDynamicObject(2232,2907.3999023,-1089.8000488,18.2999992,0.0000000,0.0000000,90.0000000); //object(med_speaker_4) (2)
CreateDynamicObject(16151,2912.0000000,-1098.5389404,18.5200005,0.0000000,0.0000000,270.0000000); //object(ufo_bar) (1)
CreateDynamicObject(2232,2907.3999023,-1088.6999512,18.2999992,0.0000000,0.0000000,90.0000000); //object(med_speaker_4) (1)
CreateDynamicObject(2229,2907.0800781,-1088.9350586,17.5000000,0.0000000,0.0000000,90.0000000); //object(swank_speaker) (3)
CreateDynamicObject(2190,2907.6000977,-1088.9000244,18.7000008,0.0000000,0.0000000,270.0000000); //object(pc_1) (2)
CreateDynamicObject(19421,2907.3000488,-1089.6999512,18.8999996,0.0000000,0.0000000,0.0000000); //object(shop_shelf02) (1)
CreateDynamicObject(2571,2908.3000488,-1079.5999756,18.1800003,0.0000000,0.0000000,295.0000000); //object(hotel_single_1) (1)
CreateDynamicObject(2290,2914.6999512,-1079.5000000,18.1800003,0.0000000,0.0000000,0.0000000); //object(swk_couch_1) (1)
CreateDynamicObject(2291,2914.6999512,-1081.0000000,18.1800003,0.0000000,0.0000000,90.0000000); //object(swk_single_1) (1)
CreateDynamicObject(2293,2899.8999023,-1081.5999756,17.7000008,0.0000000,0.0000000,22.7500000); //object(swk_1_fstool) (1)
CreateDynamicObject(2291,2901.6000977,-1081.5000000,17.7000008,0.0000000,0.0000000,316.0000000); //object(swk_single_1) (2)
CreateDynamicObject(2295,2900.6000977,-1084.4000244,17.7000008,0.0000000,0.0000000,170.0000000); //object(cj_beanbag) (1)
CreateDynamicObject(1822,2900.3999023,-1083.5999756,17.7000008,0.0000000,0.0000000,0.0000000); //object(coffee_swank_6) (1)
CreateDynamicObject(1704,2900.1999512,-1087.4000244,17.7000008,0.0000000,0.0000000,0.0000000); //object(kb_chair03) (1)
CreateDynamicObject(1703,2899.3000488,-1090.3000488,17.7000008,0.0000000,0.0000000,90.0000000); //object(kb_couch02) (1)
CreateDynamicObject(1704,2901.1000977,-1091.1999512,17.7000008,0.0000000,0.0000000,180.0000000); //object(kb_chair03) (2)
CreateDynamicObject(2126,2901.1999512,-1089.8000488,17.7000008,0.0000000,0.0000000,90.0000000); //object(coffee_swank_5) (1)
CreateDynamicObject(1368,2900.7009277,-1097.0000000,14.8759995,0.0000000,0.0000000,270.0000000); //object(cj_blocker_bench) (1)
CreateDynamicObject(2812,2902.1000977,-1096.0000000,15.0000000,0.0000000,0.0000000,90.0000000); //object(gb_platedirty01) (1)
CreateDynamicObject(2822,2905.4990234,-1095.3000488,15.2500000,0.0000000,0.0000000,0.0000000); //object(gb_kitchplatecln01) (1)
CreateDynamicObject(2824,2903.6999512,-1079.5000000,14.6700001,0.0000000,0.0000000,325.0000000); //object(gb_novels02) (1)
CreateDynamicObject(19174,2905.8000488,-1092.8000488,16.1000004,0.0000000,0.0000000,134.7473145); //object(des_reslab_) (1)
CreateDynamicObject(19172,2905.6999512,-1088.3000488,16.1000004,0.0000000,0.0000000,314.7473145); //object(des_nbrstruct) (1)
CreateDynamicObject(19164,2910.9299316,-1095.9000244,15.8999996,90.0000000,0.0000000,90.0000000); //object(drvin_screen) (1)
CreateDynamicObject(19175,2904.3398438,-1089.2392578,19.7999992,0.0000000,0.0000000,270.0000000); //object(des_westrn2_) (2)
CreateDynamicObject(1950,2918.3999023,-1094.3000488,18.8999996,0.0000000,0.0000000,0.0000000); //object(kb_beer) (1)
CreateDynamicObject(2232,2898.3999023,-1086.8900146,18.2870007,0.0000000,0.0000000,90.0000000); //object(med_speaker_4) (3)
CreateDynamicObject(2232,2898.3999023,-1091.6300049,18.2870007,0.0000000,0.0000000,90.0000000); //object(med_speaker_4) (4)
CreateDynamicObject(1491,2903.0300293,-1091.3100586,14.1699991,0.0000000,0.0000000,209.9926758); //object(gen_doorint01) (1)
CreateDynamicObject(1491,2909.1489258,-1094.8000488,14.1699991,0.0000000,0.0000000,45.0000000); //object(gen_doorint01) (2)
CreateDynamicObject(1491,2903.0500488,-1086.6307373,14.1699991,0.0000000,0.0000000,209.9981689); //object(gen_doorint01) (3)
CreateDynamicObject(3499,2916.8994141,-1088.9000244,15.3999996,0.0000000,0.0000000,0.0000000); //object(wdpillar02_lvs) (3)
CreateDynamicObject(1709,2909.0000000,-1081.5999756,14.1999998,0.0000000,0.0000000,270.0000000); //object(kb_couch08) (1)
CreateDynamicObject(2126,2908.8999023,-1084.6999512,14.1999998,0.0000000,0.0000000,90.0000000); //object(coffee_swank_5) (2)
CreateDynamicObject(2256,2907.1000977,-1089.4000244,16.0000000,0.0000000,0.0000000,134.9890442); //object(frame_clip_3) (1)
CreateDynamicObject(2297,2904.1000977,-1091.8000488,14.1799994,0.0000000,0.0000000,270.0000000); //object(tv_unit_2) (2)
CreateDynamicObject(3851,2917.0996094,-1094.0000000,16.1000004,0.0000000,0.0000000,180.0000000); //object(carshowwin_sfsx) (1)
CreateDynamicObject(1649,2917.1992188,-1086.1992188,15.6999998,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (5)
CreateDynamicObject(1649,2917.1992188,-1086.1992188,18.8999996,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (6)
CreateDynamicObject(1649,2917.1992188,-1081.0996094,18.8999996,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (7)
CreateDynamicObject(1649,2917.1992188,-1081.0996094,15.6999998,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (8)
//-------------------------------------------------
ElevatorObj = CreateDynamicObject(19366, 2912.4296875, -1080.50, 10.8, 0.0, 90.0, 90.0);
ElevatorMenu = CreateMenu("ElevatorMenu", 1, 200.0, 100.0, 150.0, 150.0);
AddMenuItem(ElevatorMenu, 0, "From 1 to 2");
AddMenuItem(ElevatorMenu, 0, "From 1 to 3");
AddMenuItem(ElevatorMenu, 0, "From 2 to 1");
AddMenuItem(ElevatorMenu, 0, "From 2 to 3");
AddMenuItem(ElevatorMenu, 0, "From 3 to 1");
AddMenuItem(ElevatorMenu, 0, "From 3 to 2");
return 1;
}
COMMAND:khalelevator(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 2912.4296875, -1080.5000000, 14.10000038147))
{
// you might wanna freeze the player here
ShowMenuForPlayer(ElevatorMenu, playerid);
}
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
if(GetPlayerMenu(playerid) == ElevatorMenu)
{
switch(row)
{
case 0: //From 1 to 2
{
MoveDynamicObject(ElevatorObj, 2912.4296875, -1080.5000000, 14.10000038147, 3.0, 0.0, 90.0, 90.0);
}
case 1: //From 1 to 3
{
MoveDynamicObject(ElevatorObj, 2912.4296875, -1080.5000000, 18.10000038147, 3.0, 0.0, 90.0, 90.0);
}
case 2: //From 2 to 1
{
MoveDynamicObject(ElevatorObj, 2912.4296875, -1080.5000000, 10.8, 3.0, 0.0, 90.0, 90.0);
}
case 3: //From 2 to 3
{
MoveDynamicObject(ElevatorObj, 2912.4296875, -1080.5000000, 18.10000038147, 3.0, 0.0, 90.0, 90.0);
}
case 4: //From 3 to 1
{
MoveDynamicObject(ElevatorObj, 2912.4296875, -1080.5000000, 10.8, 3.0, 0.0, 90.0, 90.0);
}
case 5: //From 3 to 2
{
MoveDynamicObject(ElevatorObj, 2912.4296875, -1080.5000000, 14.10000038147, 3.0, 0.0, 90.0, 90.0);
}
}
}
return 1;
}
//-------------------------------------------------