Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new Gate5;
- new Gate6;
- new Gate7;
- new Gate8;
- new Gate9;
- new Gate10;
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Gates Filterscript by Sean McColl");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Gates Filterscript by Sean McColl");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- CreateObject(973, 2320.577637, 1385.022827, 44.133499, 0.0000, 0.0000, 0.0000);
- CreateObject(973, 2333.185547, 1384.945313, 44.149128, 0.0000, 0.0000, 0.0000);
- CreateObject(973, 2327.337402, 1521.519165, 44.338654, 0.0000, 0.0000, 180.3777);
- CreateObject(973, 2301.950928, 1403.393066, 35.880798, 0.0000, 0.0000, 180.3777);
- CreateObject(973, 2306.583008, 1403.410522, 35.880798, 0.0000, 0.0000, 180.3777);
- CreateObject(973, 2313.309570, 1403.453247, 35.880840, 0.0000, 0.0000, 180.3777);
- CreateObject(973, 2312.642090, 1503.129028, 29.496452, 0.0000, 0.0000, 358.1773);
- CreateObject(973, 2303.702148, 1503.397705, 29.471453, 0.0000, 0.0000, 358.1773);
- CreateObject(973, 2301.425537, 1503.590576, 29.496437, 0.0000, 0.0000, 358.1773);
- CreateObject(987, 2797.176025, 1323.912720, 9.898438, 0.0000, 0.0000, 180.0000);
- CreateObject(987, 2797.211182, 1335.666016, 9.907634, 0.0000, 0.0000, 270.0000);
- CreateObject(987, 2797.208984, 1347.611816, 9.913641, 0.0000, 0.0000, 270.0000);
- CreateObject(987, 2797.136963, 1359.566284, 9.925079, 0.0000, 0.0000, 270.0000);
- CreateObject(987, 2797.064697, 1371.501953, 9.924931, 0.0000, 0.0000, 270.0000);
- CreateObject(987, 2797.251709, 1382.868286, 9.915428, 0.0000, 0.0000, 269.1406);
- CreateObject(987, 2809.253906, 1383.061768, 9.910908, 0.0000, 0.0000, 180.0002);
- CreateObject(987, 2821.176025, 1383.071655, 9.926641, 0.0000, 0.0000, 180.0002);
- CreateObject(987, 2861.183105, 1383.159790, 9.900957, 0.0000, 0.0000, 180.0002);
- CreateObject(987, 2849.264893, 1383.197876, 9.892976, 0.0000, 0.0000, 180.0002);
- CreateObject(967, 2836.440430, 1382.561035, 9.898438, 0.0000, 0.0000, 92.7152);
- CreateObject(966, 2834.048584, 1384.023560, 9.898438, 0.0000, 0.0000, 0.0000);
- CreateObject(966, 2820.371094, 1383.993530, 9.824999, 0.0000, 0.8594, 180.3776);
- Gate5 = CreateObject(968, 2834.078857, 1384.032959, 10.732691, 0.0000, 270, 0.0000); // W+O GATE
- Gate6 = CreateObject(968, 2820.339600, 1384.049805, 10.708895, 0.0000, 90, 0.0000); // W+O GATE
- Gate8 = CreateObject(987, 2840.364990, 1383.137329, 1.693354, 0.0000, 0.0000, 180.0002); // LOCKDOWN GATE
- Gate9 = CreateObject(987, 2831.335205, 1383.123901, 1.700006, 0.0000, 0.0000, 180.0002); // LOCKDOWN GATE
- CreateObject(974, 2857.666016, 1337.912842, 13.126171, 0.0000, 0.0000, 8.5944);
- CreateObject(987, 2855.593506, 1284.915161, 10.040604, 0.0000, 0.0000, 90.0001);
- CreateObject(974, 2857.685303, 1243.251831, 13.142923, 0.0000, 0.0000, 359.8454);
- CreateObject(987, 2861.066406, 1231.614014, 9.829845, 0.0000, 0.0000, 90.0001);
- CreateObject(987, 2861.091797, 1223.346558, 9.820313, 0.0000, 0.0000, 90.0001);
- CreateObject(987, 2849.164063, 1223.390381, 9.823065, 0.0000, 0.0000, 0.0000);
- CreateObject(987, 2837.236572, 1223.411865, 9.822508, 0.0000, 0.0000, 0.0000);
- CreateObject(987, 2825.298340, 1223.404541, 9.823854, 0.0000, 0.0000, 0.0000);
- CreateObject(987, 2813.340576, 1223.416504, 9.819558, 0.0000, 0.0000, 0.0000);
- CreateObject(987, 2801.413330, 1223.402466, 9.829530, 0.0000, 0.0000, 0.0000);
- CreateObject(987, 2789.453369, 1223.393066, 9.825837, 0.0000, 0.0000, 0.0000);
- CreateObject(987, 2777.506592, 1223.358887, 9.828347, 0.0000, 0.0000, 0.0000);
- CreateObject(987, 2765.566406, 1223.351685, 9.841344, 0.0000, 0.0000, 0.0000);
- CreateObject(987, 2758.052490, 1223.330322, 9.851163, 0.0000, 0.0000, 0.0000);
- CreateObject(987, 2757.855469, 1235.070801, 9.834060, 0.0000, 0.0000, 270.0000);
- CreateObject(987, 2757.830566, 1247.006226, 9.838216, 0.0000, 0.0000, 270.0000);
- CreateObject(987, 2757.805664, 1258.951782, 9.840282, 0.0000, 0.0000, 270.0000);
- CreateObject(987, 2757.805664, 1270.889160, 9.841084, 0.0000, 0.0000, 270.0000);
- CreateObject(987, 2757.805664, 1282.843750, 9.839234, 0.0000, 0.0000, 270.0000);
- CreateObject(987, 2757.666260, 1294.773682, 9.823001, 0.0000, 0.0000, 270.8595);
- CreateObject(987, 2757.543457, 1303.421875, 9.828142, 0.0000, 0.0000, 270.8595);
- CreateObject(987, 2785.231934, 1323.934448, 9.898438, 0.0000, 0.0000, 180.0000);
- CreateObject(987, 2773.281250, 1323.933105, 9.898438, 0.0000, 0.0000, 180.0000);
- CreateObject(987, 2769.469238, 1303.046387, 9.856773, 0.0000, 0.0000, 180.0000);
- CreateObject(987, 2781.425293, 1303.061279, 9.788179, 0.0000, 0.0000, 180.0000);
- CreateObject(987, 2793.363281, 1303.070801, 9.774279, 0.0000, 0.0000, 180.0000);
- CreateObject(987, 2797.375488, 1327.584106, 9.750000, 0.0000, 0.0000, 270.0000);
- CreateObject(987, 2796.750244, 1303.109253, 9.773439, 0.0000, 0.0000, 180.8595);
- CreateObject(966, 2797.277344, 1308.514282, 9.773439, 0.0000, 0.0000, 271.5821);
- Gate7 = CreateObject(968, 2797.303223, 1308.505127, 10.657692, 0.0000, 90, 90); // W+O GATE
- CreateObject(973, 2795.468750, 1303.460693, 10.213666, 0.0000, 359.1406, 90.9964);
- CreateObject(967, 2796.230957, 1306.178589, 9.898438, 0.0000, 0.0000, 359.8965);
- Gate10 = CreateObject(987, 2797.338379, 1315.403564, 2.823425, 0.0000, 0.0000, 270.0000); // LOCKDOWN GATE
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX LOCKDOWN XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- if (strcmp("/lockdown", cmdtext, true, 10) == 0)
- {
- MoveObject(Gate8, 2840.364990, 1383.137329, 10, 4.5000);
- MoveObject(Gate9, 2831.335205, 1383.123901, 10, 4.5000);
- MoveObject(Gate10, 2797.338379, 1315.403564, 9.823425, 4.5000);
- return 1;
- }
- // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX LOCKDOWN OVER! XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- if (strcmp("/lockdownover", cmdtext, true, 10) == 0)
- {
- MoveObject(Gate8, 2840.364990, 1383.137329, 1.700000, 4.5000);
- MoveObject(Gate9, 2831.335205, 1383.123901, 1.700000, 4.5000);
- MoveObject(Gate10, 2797.338379, 1315.403564, 2.823425, 4.5000);
- return 1;
- }
- // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX OPENGATE XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- if (strcmp("/opengate", cmdtext, true, 10) == 0)
- {
- SetObjectRot(Gate5, 0.0000, 0, 0.00);
- SetObjectRot(Gate6, 0.0000, 0, 0.00);
- SetObjectRot(Gate7, 0.0000, 0, 90);
- return 1;
- }
- // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX CLOSEGATE XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- if (strcmp("/closegate", cmdtext, true, 10) == 0)
- {
- SetObjectRot(Gate5, 0.0000, 270, 0);
- SetObjectRot(Gate6, 0.0000, 90, 0);
- SetObjectRot(Gate7, 0.0000, 90, 90);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment