28.07.2015, 19:54
(
Последний раз редактировалось RotAway; 29.07.2015 в 20:54.
)
Код:
forward DoorOpen(playerid); public DoorOpen(playerid) { MoveDynamicObject(lspddoor1, 253.2000000,106.6130000,1002.2000100,90.0000000, 2.0); MoveDynamicObject(lspddoor2, 253.2000000,111.5660000,1002.2000100,270.0000000, 2.0); return 1; } forward DoorClose(playerid); public DoorClose(playerid) { MoveDynamicObject(lspddoor1, 253.2000000,107.6000000,1002.2000100,90.0000000, 2.0); MoveDynamicObject(lspddoor2, 253.2000000,110.6000000,1002.2000100,270.0000000, 2.0); return 1; } forward DoorOpen2(playerid); public DoorOpen2(playerid) { MoveDynamicObject(lspddoor3, 239.5000000,115.09200000,1002.2000000,90.0000000, 2.0); MoveDynamicObject(lspddoor4, 239.5996100,120.0600000,1002.2000000,270.0000000, 2.0); return 1; } forward DoorClose2(playerid); public DoorClose2(playerid) { MoveDynamicObject(lspddoor3, 239.5000000,116.1000000,1002.2000100,90.0000000, 2.0); MoveDynamicObject(lspddoor4, 239.5000000,119.1000000,1002.2000100,270.0000000, 2.0); return 1; }
Код:
//LSPD Button lspdcopsonly = CreateButton(253.0000000,110.4000000,1003.8000000,272.0000000); // ONLYS ONLY lspdeveryone = CreateButton(253.3999900,110.6000000,1003.7000000,96.0000000); // People, ^^==LSPD lspdcopsonly2 = CreateButton(239.8000000,116.2000000,1003.8000000,92.0000000); // ONLY ONLY lspdeveryone2 = CreateButton(239.3000000,116.3000000,1003.8000000,268.0000000); CreateDynamicObject(2886,253.0000000,110.4000000,1003.8000000,0.0000000,0.0000000,272.0000000); CreateDynamicObject(2886,253.3999900,110.6000000,1003.7000000,0.0000000,0.0000000,96.0000000); CreateDynamicObject(2886,239.8000000,116.2000000,1003.8000000,0.0000000,0.0000000,92.0000000); CreateDynamicObject(2886,239.3000000,116.3000000,1003.8000000,0.0000000,0.0000000,268.0000000); lspddoor1= CreateDynamicObject(1569,253.2000000,107.6000000,1002.2000100,0.0000000,0.0000000,90.0000000); lspddoor2 = CreateDynamicObject(1569,253.2000000,110.6000000,1002.2000100,0.0000000,0.0000000,270.0000000); lspddoor3 = CreateDynamicObject(1569,239.5000000,116.1000000,1002.2000100,0.0000000,0.0000000,90.0000000); lspddoor4 = CreateDynamicObject(1569,239.5000000,119.1000000,1002.2000100,0.0000000,0.0000000,270.0000000);