Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // LSPD Gate Mapped by 12kelvin12 and scripted by Tom.1412
- // Don't remove credits or claim it as yours.
- #include <a_samp>
- #define FILTERSCRIPT
- #define Message 0xFFFFFFAA
- #if defined FILTERSCRIPT
- #endif
- new lspdgate1;
- new lspdgate2;
- new lspdgate3;
- new lspdgate4;
- forward GateClose0(playerid);
- forward GateClose02(playerid);
- forward GateClose03(playerid);
- forward PDEXIT(playerid);
- forward PDEXIT2(playerid);
- forward PDEXIT3(playerid);
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" LSPD Gate Mapped by 12kelvin12 and scripted by Tom.1412 ");
- print("--------------------------------------\n");
- lspdgate1 = CreateObject(988, 1539.6418457031, -1630.5640869141, 12, 0, 0, 270);
- lspdgate2 = CreateObject(988, 1539.6505126953, -1625.1252441406, 12, 0, 0, 270);
- lspdgate3 = CreateObject(988, 1549.2589111328, -1630.8956298828, 12, 0, 0, 270);
- lspdgate4 = CreateObject(988, 1549.2487792969, -1625.4670410156, 12, 0, 0, 270);
- CreateObject(997, 1534.5986328125, -1681.638671875, 12.546875, 0, 0, 0);
- CreateObject(997, 1534.5634765625, -1663.716796875, 12.546875, 0, 0, 0);
- CreateObject(996, 1534.6552734375, -1662.9423828125, 13.295630455017, 0, 0, 90);
- CreateObject(996, 1534.583984375, -1654.796875, 13.295630455017, 0, 0, 90);
- CreateObject(996, 1534.66796875, -1646.6513671875, 13.295630455017, 0, 0, 90);
- CreateObject(996, 1534.5634765625, -1682.2041015625, 13.295630455017, 0, 0, 269.99450683594);
- CreateObject(996, 1534.5635986328, -1690.2080078125, 13.295630455017, 0, 0, 269.99450683594);
- CreateObject(996, 1534.634765625, -1698.2705078125, 13.295630455017, 0, 0, 269.98901367188);
- CreateObject(1361, 1538.1005859375, -1673.6728515625, 13.290218353271, 0, 0, 0);
- CreateObject(1361, 1538.0458984375, -1667.2744140625, 13.290218353271, 0, 0, 0);
- CreateObject(1361, 1538.1151123047, -1679.5211181641, 13.290218353271, 0, 0, 0);
- CreateObject(987, 1539.638671875, -1605.8525390625, 12.451058387756, 0, 0, 269.91760253906);
- CreateObject(987, 1539.6668701172, -1602.3726806641, 12.451058387756, 0, 0, 269.91760253906);
- CreateObject(987, 1551.6217041016, -1602.3498535156, 12.451058387756, 0, 0, 180.62121582031);
- CreateObject(987, 1563.5257568359, -1602.2956542969, 12.451058387756, 0, 0, 180.62072753906);
- CreateObject(987, 1575.5502929688, -1602.3790283203, 12.451058387756, 0, 0, 179.62072753906);
- CreateObject(987, 1587.4641113281, -1602.3509521484, 12.451058387756, 0, 0, 180.09423828125);
- CreateObject(987, 1599.4165039063, -1602.3077392578, 12.451058387756, 0, 0, 180.34069824219);
- CreateObject(987, 1608.0374755859, -1602.3475341797, 12.451058387756, 0, 0, 180.09069824219);
- CreateObject(987, 1607.9322509766, -1614.2145996094, 12.451058387756, 0, 0, 89.762390136719);
- CreateObject(987, 1607.9489746094, -1626.1324462891, 12.451058387756, 0, 0, 89.75830078125);
- CreateObject(987, 1607.9357910156, -1638.0140380859, 12.451058387756, 0, 0, 89.75830078125);
- CreateObject(987, 1596.0131835938, -1638.84375, 12.451058387756, 0, 0, 4.1143798828125);
- CreateObject(970, 1551.5568847656, -1617.6177978516, 13.098356246948, 0, 0, 0);
- CreateObject(970, 1559.8994140625, -1617.6291503906, 13.098356246948, 0, 0, 0);
- CreateObject(970, 1564.0150146484, -1617.6455078125, 13.098356246948, 0, 0, 0);
- CreateObject(970, 1568.0375976563, -1617.6365966797, 13.098356246948, 0, 0, 0);
- CreateObject(970, 1572.1741943359, -1617.6512451172, 13.098356246948, 0, 0, 0);
- CreateObject(970, 1575.6446533203, -1617.6606445313, 13.098356246948, 0, 0, 0);
- CreateObject(3934, 1565.6787109375, -1645.189453125, 27.402114868164, 0, 0, 359.21997070313);
- CreateObject(3881, 1541.732421875, -1634.6865234375, 14.214325904846, 0, 0, 0);
- CreateObject(970, 1555.736328125, -1617.626953125, 13.098356246948, 0, 0, 0);
- CreateObject(1269, 1537.865234375, -1670.3577880859, 13.268968582153, 0, 0, 90.85302734375);
- CreateObject(1269, 1538.1125488281, -1677.0135498047, 13.364785194397, 0, 0, 90.851440429688);
- CreateObject(3881, 1541.7333984375, -1621.7998046875, 14.214325904846, 0, 0, 0);
- CreateObject(3881, 1546.7053222656, -1634.7111816406, 14.214325904846, 0, 0, 0);
- CreateObject(3881, 1546.7021484375, -1621.802734375, 14.214325904846, 0, 0, 0);
- CreateObject(8673, 1539.5, -1627.1667480469, 17.60000038147, 0, 0, 90);
- CreateObject(8673, 1549.8707275391, -1638.3000488281, 17.60000038147, 0, 0, 356);
- CreateObject(8673, 1549.4123535156, -1627.5999755859, 17.60000038147, 0, 0, 90);
- CreateObject(8572, 1542.63671875, -1616.7047119141, 14.607976913452, 0, 0, 180);
- return 1;
- }
- public GateClose0(playerid)
- {
- MoveObject(lspdgate1, 1539.6418457031, -1630.5640869141, 12, 2);
- MoveObject(lspdgate2, 1539.6505126953, -1625.1252441406, 12, 2);
- SetTimer("GateClose02", 3400, 0);
- return 1;
- }
- public GateClose02(playerid)
- {
- MoveObject(lspdgate3, 1549.2487792969,-1634.4000244141,12.3828125, 2);
- MoveObject(lspdgate4, 1549.2487792969,-1621,12.3828125, 2);
- SetTimer("GateClose03", 3400, 0);
- return 1;
- }
- public GateClose03(playerid)
- {
- MoveObject(lspdgate3,1549.2487792969, -1630.8956298828, 12, 2);
- MoveObject(lspdgate4,1549.2487792969, -1625.4670410156, 12, 2);
- return 1;
- }
- public PDEXIT(playerid)
- {
- MoveObject(lspdgate3,1549.2487792969, -1630.8956298828, 12, 2);
- MoveObject(lspdgate4,1549.2487792969, -1625.4670410156, 12, 2);
- SetTimerEx("PDEXIT2",3400,0,"i",playerid);
- return 1;
- }
- public PDEXIT2(playerid)
- {
- MoveObject(lspdgate1, 1539.6505126953, -1634.3499755859, 12, 2);
- MoveObject(lspdgate2, 1539.6505126953, -1621, 12, 2);
- SetTimer("PDEXIT3", 3400, 0);
- return 1;
- }
- public PDEXIT3()
- {
- MoveObject(lspdgate1, 1539.6418457031, -1630.5640869141, 12, 2);
- MoveObject(lspdgate2, 1539.6505126953, -1625.1252441406, 12, 2);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/gateopen", true))
- {
- if(GetPlayerSkin(playerid) == 265 || 280 || 281 || 282 || 283 || 284 || 288)
- {
- if (IsPlayerInRangeOfPoint(playerid,15,1533.4419,-1627.7628,13.4876))
- {
- MoveObject(lspdgate1, 1539.6418457031, -1634.3499755859, 12, 2);
- MoveObject(lspdgate2, 1539.6418457031, -1621, 12, 2);
- SetTimer("GateClose0", 3400, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid,15,1553.3512,-1628.0248,13.4897))
- {
- MoveObject(lspdgate3, 1549.2487792969,-1634.4000244141,12, 2);
- MoveObject(lspdgate4, 1549.2487792969,-1621,12, 2);
- SetTimer("PDEXIT", 3400, 0);
- }
- }
- else SendClientMessage(playerid, Message,"You are not a Police Officer");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement