Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- new attachers[3], swv, timersss, xep[MAX_PLAYERS], attract[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- CreateObject(19449, 383.58, -2077.43, 13.05, 90.00, 0.00, 0.00);
- CreateObject(19449, 381.89, -2075.71, 13.05, 90.00, 0.00, 90.00);
- CreateObject(19449, 380.21, -2077.43, 13.05, 90.00, 0.00, 0.00);
- CreateObject(19449, 381.90, -2079.12, 13.05, 90.00, 0.00, 90.00);
- CreateObject(19377, 382.19, -2077.33, 8.37, 0.00, 90.00, 0.00);
- CreateObject(19435, 385.67, -2072.56, 7.58, 90.00, 0.00, 90.00);
- CreateObject(19435, 382.18, -2072.56, 7.58, 90.00, 0.00, 90.00);
- CreateObject(19435, 378.82, -2072.56, 7.58, 90.00, 0.00, 90.00);
- CreateObject(19435, 377.00, -2074.25, 7.58, 90.00, 0.00, 0.00);
- CreateObject(19435, 377.00, -2077.75, 7.58, 90.00, 0.00, 0.00);
- CreateObject(19435, 377.01, -2080.39, 7.58, 90.00, 0.00, 0.00);
- CreateObject(19435, 378.69, -2082.10, 7.58, 90.00, 0.00, 90.00);
- CreateObject(19435, 382.18, -2082.10, 7.58, 90.00, 0.00, 90.00);
- CreateObject(19435, 385.68, -2082.10, 7.58, 90.00, 0.00, 90.00);
- CreateObject(19435, 387.36, -2080.40, 7.58, 90.00, 0.00, 0.00);
- CreateObject(19435, 387.36, -2076.90, 7.58, 90.00, 0.00, 0.00);
- CreateObject(19435, 387.37, -2074.25, 7.58, 90.00, 0.00, 0.00);
- CreateObject(19435, 382.15, -2071.07, 7.49, 0.00, -60.00, 90.00);
- CreateObject(19435, 382.15, -2071.43, 7.49, 0.00, -60.00, 90.00);
- CreateObject(19435, 382.15, -2071.78, 7.49, 0.00, -60.00, 90.00);
- CreateObject(19435, 382.15, -2072.14, 7.49, 0.00, -60.00, 90.00);
- CreateObject(19435, 382.15, -2072.50, 7.49, 0.00, -60.00, 90.00);
- CreateObject(19435, 382.15, -2072.85, 7.49, 0.00, -60.00, 90.00);
- CreateObject(19435, 382.15, -2073.21, 7.49, 0.00, -60.00, 90.00);
- CreateObject(19435, 382.15, -2073.57, 7.49, 0.00, -60.00, 90.00);
- CreateObject(970, 379.10, -2072.51, 8.94, 0.00, 0.00, 0.00);
- CreateObject(970, 385.24, -2072.57, 8.94, 0.00, 0.00, 0.00);
- CreateObject(970, 387.32, -2074.66, 8.94, 0.00, 0.00, 90.00);
- CreateObject(970, 387.32, -2079.98, 8.94, 0.00, 0.00, 90.00);
- CreateObject(19435, 389.11, -2077.31, 8.31, 0.00, -90.00, 0.00);
- CreateObject(19435, 389.13, -2078.05, 7.58, 90.00, 0.00, -90.00);
- CreateObject(19435, 389.14, -2076.58, 7.58, 90.00, 0.00, -90.00);
- CreateObject(19435, 390.84, -2077.32, 6.62, 0.00, 180.00, 0.00);
- CreateObject(970, 385.22, -2082.07, 8.94, 0.00, 0.00, 0.00);
- CreateObject(970, 381.09, -2082.08, 8.94, 0.00, 0.00, 0.00);
- CreateObject(970, 379.00, -2082.08, 8.94, 0.00, 0.00, 0.00);
- CreateObject(970, 376.99, -2079.98, 8.94, 0.00, 0.00, 90.00);
- CreateObject(970, 376.99, -2074.60, 8.94, 0.00, 0.00, 90.00);
- CreateObject(19435, 375.36, -2077.28, 8.31, 0.00, -90.00, 0.00);
- CreateObject(19435, 375.35, -2078.00, 7.58, 90.00, 0.00, 90.00);
- CreateObject(19435, 375.34, -2076.56, 7.58, 90.00, 0.00, 90.00);
- CreateObject(19435, 373.64, -2077.27, 6.62, 0.00, 180.00, 0.00);
- CreateObject(19449, 381.89, -2075.71, 22.65, 90.00, 0.00, 90.00);
- CreateObject(19449, 383.58, -2077.43, 22.65, 90.00, 0.00, 0.00);
- CreateObject(19449, 381.90, -2079.12, 22.65, 90.00, 0.00, 90.00);
- CreateObject(19449, 380.21, -2077.43, 22.65, 90.00, 0.00, 0.00);
- CreateObject(19449, 381.89, -2075.71, 32.23, 90.00, 0.00, 90.00);
- CreateObject(19449, 380.21, -2077.43, 32.23, 90.00, 0.00, 0.00);
- CreateObject(19449, 381.90, -2079.12, 32.23, 90.00, 0.00, 90.00);
- CreateObject(19449, 383.58, -2077.43, 32.23, 90.00, 0.00, 0.00);
- CreateObject(970, 381.42, -2070.45, 7.83, 0.00, 30.00, 90.00);
- CreateObject(970, 382.93, -2070.51, 7.83, 0.00, 30.00, 90.00);
- CreateObject(717, 384.07, -2071.47, 6.97, 0.00, 0.00, 0.00);
- CreateObject(717, 380.81, -2071.59, 6.97, 0.00, 0.00, 0.00);
- CreateObject(717, 391.95, -2077.18, 6.97, 0.00, 0.00, 0.00);
- CreateObject(717, 373.09, -2077.13, 6.97, 0.00, 0.00, 0.00);
- CreateObject(717, 388.53, -2081.38, 6.97, 0.00, 0.00, 0.00);
- CreateObject(717, 376.41, -2081.40, 6.97, 0.00, 0.00, 0.00);
- CreateObject(717, 382.25, -2082.93, 6.97, 0.00, 0.00, 0.00);
- CreateObject(16644, 383.72, -2077.02, 15.89, 0.00, -90.00, 0.00);
- CreateObject(16644, 383.73, -2077.79, 29.25, 0.00, 90.00, 180.00);
- CreateObject(16644, 381.50, -2075.58, 15.89, 0.00, -90.00, 90.00);
- CreateObject(16644, 382.30, -2075.54, 29.25, 0.00, 90.00, -90.00);
- CreateObject(16644, 380.06, -2077.81, 15.77, 180.00, 90.00, 0.00);
- CreateObject(16644, 380.06, -2077.81, 29.25, 180.00, -90.00, 0.00);
- CreateObject(19362, 381.89, -2077.44, 36.94, 0.00, 90.00, 90.00);
- CreateObject(9131, 381.91, -2077.40, 38.04, 0.00, 0.00, 0.00);
- CreateObject(9131, 383.48, -2077.42, 37.96, 0.00, 20.00, 0.00);
- CreateObject(9131, 380.35, -2077.40, 37.96, 0.00, -20.00, 0.00);
- CreateObject(9131, 381.95, -2079.02, 37.96, 20.00, 0.00, 0.00);
- CreateObject(9131, 381.86, -2075.81, 37.96, -20.00, 0.00, 0.00);
- CreateObject(9131, 381.86, -2075.06, 40.02, -20.00, 0.00, 0.00);
- CreateObject(9131, 379.60, -2077.41, 40.02, 0.00, -20.00, 0.00);
- CreateObject(9131, 381.95, -2079.78, 40.02, 20.00, 0.00, 0.00);
- CreateObject(9131, 384.23, -2077.43, 40.02, 0.00, 20.00, 0.00);
- CreateObject(9131, 381.91, -2077.40, 40.31, 0.00, 0.00, 0.00);
- CreateObject(9131, 381.91, -2077.40, 42.55, 0.00, 0.00, 0.00);
- CreateObject(19281, 381.85, -2074.65, 41.15, 0.00, 0.00, 0.00);
- CreateObject(19282, 379.12, -2077.40, 41.15, 0.00, 0.00, 0.00);
- CreateObject(19283, 381.97, -2080.20, 41.15, 0.00, 0.00, 0.00);
- CreateObject(19284, 384.64, -2077.47, 41.15, 0.00, 0.00, 0.00);
- CreateObject(19289, 381.92, -2077.40, 43.69, 0.00, 0.00, 0.00);
- CreateObject(717, 408.85, -2088.04, 6.97, 0.00, 0.00, 0.00);
- CreateObject(717, 351.57, -2087.69, 6.97, 0.00, 0.00, 0.00);
- CreateObject(2041, 380.51, -2079.27, 10.35, -90.00, 0.00, 180.00);
- CreateObject(2040, 380.79, -2079.17, 10.35, -90.00, 0.00, 180.00);
- CreateObject(2040, 381.07, -2079.17, 10.35, -90.00, 0.00, 180.00);
- CreateObject(2041, 381.33, -2079.27, 10.35, -90.00, 0.00, 180.00);
- CreateObject(2911, 383.13, -2079.22, 8.46, 0.00, 0.00, 180.00);
- attachers[0] = CreateObject(3657, 379.66, -2077.41, 9.41, -60.00, 0.00, 90.00);
- attachers[1] = CreateObject(3657, 384.14, -2077.44, 9.41, -60.00, 0.00, -90.00);
- attachers[2] = CreateObject(3657, 381.94, -2075.20, 9.41, -60.00, 0.00, 0.00);
- swv = CreatePickup(1239, 23, 377.6364, -2073.2363, 9.6807, -1);
- timersss = SetTimer("up", 1000, false);
- return 1;
- }
- #endif
- public OnPlayerConnect(playerid)
- {
- attract[playerid] = 0;
- return 1;
- }
- public OnPlayerDisconnect(playerid)
- {
- attract[playerid] = 0;
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys == 16)
- {
- if(attract[playerid] == 1)
- {
- SetCameraBehindPlayer(playerid);
- DestroyObject(xep[playerid]);
- SetPlayerPos(playerid, 379.6651,-2073.0146,9.4559);
- attract[playerid] = 0;
- }
- return 1;
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == swv)
- {
- new rand = random(sizeof(attachers));
- xep[playerid] = CreateObject(19374, 379.66, -2077.41, 9.41, 0, 0, 0);
- AttachObjectToObject(xep[playerid], attachers[rand], -0, 0, 1.3, 0, 0, 0);
- AttachCameraToObject(playerid, xep[playerid]);
- SendClientMessage(playerid, 0xFF0000FF, "To leave press Enter");
- SetPlayerPos(playerid, 382.5960, -2076.8357, 9.4559);
- attract[playerid] = 1;
- }
- return 1;
- }
- forward up();
- public up()
- {
- MoveObject(attachers[0], 379.66, -2077.41, 37.0412, 4);
- MoveObject(attachers[1], 384.14, -2077.44, 37.0412, 4);
- MoveObject(attachers[2], 381.94, -2075.20, 37.0412, 4);
- KillTimer(timersss);
- timersss = SetTimer("down", 7000, false);
- }
- forward down();
- public down()
- {
- MoveObject(attachers[0], 379.66, -2077.41, 9.4100, 5);
- MoveObject(attachers[1], 384.14, -2077.44, 9.4100, 5);
- MoveObject(attachers[2], 381.94, -2075.20, 9.4100, 5);
- KillTimer(timersss);
- timersss = SetTimer("up", 5500, false);
- }
Add Comment
Please, Sign In to add comment