Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #pragma tabsize 0
- new PDDOORa;
- new PDDOORb;
- new PDDOORc;
- new PDDOORd;
- new PDWINDOW;
- new CELLDOOR;
- new PDGATE;
- new PDGARAGE;
- new PDELEVATOR;
- new COMPOUNDGATE;
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_DBLUE 0x2641FEAA
- #define COLOR_BLUE 0x33AAFFFF
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_PINK 0xFF69B4FF
- #define COLOR_BGREEN 0x08FD04FF
- #define COLOR_CYAN 0x00FFFFAA
- #define COLOR_RED 0xFF3366FF
- #define COLOR_YELLOW 0xFFCC33FF
- #define COLOR_DGREEN 0x008000FF
- #define COLOR_DRED 0x800000FF
- #define COLOR_DARK 0x000000FF
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #define Filterscript
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" LSPD Gates & Doors by Avenger678");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" LSPD Gates & Doors by Avenger678");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- PDDOORa = CreateObject( 985 , 247.005905 , 72.448440 , 1003.640625 , 0.000000 , 0.000000 , 1260.000000 );
- PDDOORb = CreateObject( 985 , 250.774871 , 60.822799 , 1003.640625 , 0.000000 , 0.000000 , 5130.000000 );
- PDDOORc = CreateObject( 986 , 248.142105 , 78.125961 , 1003.640625 , 0.000000 , 0.000000 , 12690.000000 );
- PDDOORd = CreateObject( 986 , 248.248901 , 87.360313 , 1003.467834 , 0.000000 , 0.000000 , 12690.000000 );
- PDWINDOW = CreateObject( 974 , 250.503234 , 67.772872 , 1006.222045 , 0.000000 , 0.000000 , 7830.000000 );
- CELLDOOR = CreateObject( 989 , 266.238403 , 81.891395 , 1001.039062 , 0.000000 , 0.000000 , 10816.000000 );
- PDGATE = CreateObject( 987 , 1546.113769 , -1621.810913 , 11.709331 , 0.000000 , 0.000000 , 990.000000 );
- PDGARAGE = CreateObject( 987 , 1593.301635 , -1638.118530 , 12.467614 , 0.000000 , 0.000000 , 540.000000 );
- PDELEVATOR = CreateObject( 988 , 1549.049804 , -1697.787109 , 12.551495 , -90.000000 , 0.000000 , 810.000000 );
- COMPOUNDGATE = CreateObject( 986 , 1591.682861 , -1617.880371 , 12.053466 , 0.000000 , 0.000000 , 0.000000 );
- CreateObject(4882 , 1529.906372 , -1645.990844 , 17.192256 , 0.000000 , 0.000000 , 812.000000 );
- CreateObject(8947 , 1550.584350 , -1628.559570 , 24.334913 , 0.000000 , 0.000000 , 0.000000 );
- CreateObject(8947 , 1564.935302 , -1628.527343 , 24.324607 , 0.000000 , 0.000000 , 0.000000 );
- CreateObject(8947 , 1550.579711 , -1628.601928 , 24.300050 , 180.000000 , 0.000000 , 0.000000 );
- CreateObject(8947 , 1564.789306 , -1628.576049 , 24.312379 , 180.000000 , 0.000000 , 0.000000 );
- CreateObject(3749 , 1546.750122 , -1627.783447 , 18.306715 , 0.000000 , 0.000000 , 630.000000 );
- CreateObject(1635 , 1542.953247 , -1627.944946 , 22.180809 , 0.000000 , 0.000000 , 0.000000 );
- CreateObject(9241, 1565.905273, -1698.264893, 28.904495, 0.0000, 0.0000, 270.0000);
- CreateObject(9241, 1566.000244, -1653.266724, 28.779516, 0.0000, 0.0000, 270.0000);
- CreateObject(8550 , 1555.286376 , -1627.094482 , 31.792537 , 0.000000 , 0.000000 , 0.000000 );
- CreateObject( 987 , 1539.853759 , -1617.624633 , 11.450000 , 0.000000 , 0.000000 , 0.000000 );
- CreateObject( 987 , 1539.853759 , -1605.779907 , 11.450000 , 0.000000 , 0.000000 , 270.000000 );
- CreateObject( 987 , 1539.853759 , -1602.585693 , 11.450000 , 0.000000 , 0.000000 , 2070.000000 );
- CreateObject( 987 , 1551.839843 , -1602.689941 , 11.450000 , 0.000000 , 0.000000 , 1260.000000 );
- CreateObject( 987 , 1563.804321 , -1602.689941 , 11.450000 , 0.000000 , 0.000000 , 8100.000000 );
- CreateObject( 987 , 1575.796264 , -1602.689941 , 11.450000 , 0.000000 , 0.000000 , 1260.000000 );
- CreateObject( 987 , 1587.784790 , -1602.689941 , 11.450000 , 0.000000 , 0.000000 , 8100.000000 );
- CreateObject( 987 , 1599.765014 , -1602.689941 , 11.450000 , 0.000000 , 0.000000 , 1260.000000 );
- CreateObject( 987 , 1607.886596 , -1602.689941 , 11.450000 , 0.000000 , 0.000000 , 8100.000000 );
- CreateObject( 987 , 1607.750000 , -1614.606567 , 11.450000 , 0.000000 , 0.000000 , 90.000000 );
- CreateObject( 987 , 1607.750000 , -1626.607299 , 11.450000 , 0.000000 , 0.000000 , 810.000000 );
- CreateObject( 987 , 1607.750000 , -1637.935058 , 11.450000 , 0.000000 , 0.000000 , 810.000000 );
- CreateObject( 987 , 1607.750000 , -1638.097900 , 11.450000 , 0.000000 , 0.000000 , 7022.000000 );
- CreateObject( 987 , 1551.849731 , -1617.624633 , 11.450000 , 0.000000 , 0.000000 , 0.000000 );
- CreateObject( 987 , 1563.764404 , -1617.624633 , 11.450000 , 0.000000 , 0.000000 , 0.000000 );
- CreateObject( 987 , 1575.738769 , -1617.624633 , 11.450000 , 0.000000 , 0.000000 , 0.000000 );
- CreateObject( 987 , 1595.711425 , -1617.624633 , 11.450000 , 0.000000 , 0.000000 , 0.000000 );
- AddStaticVehicle(497,1566.6086,-1699.9132,30.9096,2.0264,0,1);
- AddStaticVehicle(497,1566.7705,-1652.6370,30.7791,183.1091,0,1);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp(cmdtext, "/pd1op", true)==0)
- {
- MoveObject(PDDOORa,247.005905 , 72.448440 , 1003.640625,3.5);//close
- MoveObject(PDDOORa,247.005905 , 72.448440 , 1006.912902,3.5);//open
- SendClientMessage(playerid, COLOR_YELLOW,"Administration Door Open");
- return 1;
- }
- if (strcmp(cmdtext, "/pd1cl", true)==0)
- {
- MoveObject(PDDOORa,247.005905 , 72.448440 , 1006.912902,3.5);//open
- MoveObject(PDDOORa,247.005905 , 72.448440 , 1003.640625,3.5);//close
- SendClientMessage(playerid, COLOR_YELLOW,"Administration Door Close");
- return 1;
- }
- if (strcmp(cmdtext, "/pd2op", true)==0)
- {
- MoveObject(PDDOORb,250.774871 , 60.822799 , 1003.640625,3.5);//close
- MoveObject(PDDOORb,250.774871 , 60.822799 , 1006.862670,3.5);//open
- SendClientMessage(playerid, COLOR_YELLOW,"Desk Door 2 Open");
- return 1;
- }
- if (strcmp(cmdtext, "/pd2cl", true)==0)
- {
- MoveObject(PDDOORb,250.774871 , 60.822799 , 1006.862670,3.5);//open
- MoveObject(PDDOORb,250.774871 , 60.822799 , 1003.640625,3.5);//close
- SendClientMessage(playerid, COLOR_YELLOW,"Desk Door 2 Close");
- return 1;
- }
- if (strcmp(cmdtext, "/pd3op", true)==0)
- {
- MoveObject(PDDOORc,248.142105 , 78.125961 , 1003.640625,3.5);//close
- MoveObject(PDDOORc,248.142105 , 78.125961 , 1007.248718,3.5);//open
- SendClientMessage(playerid, COLOR_YELLOW,"Locker Room Open");
- return 1;
- }
- if (strcmp(cmdtext, "/pd3cl", true)==0)
- {
- MoveObject(PDDOORc,248.142105 , 78.125961 , 1007.248718,3.5);//open
- MoveObject(PDDOORc,248.142105 , 78.125961 , 1003.640625,3.5);//close
- SendClientMessage(playerid, COLOR_YELLOW,"Locker Room Close");
- return 1;
- }
- if (strcmp(cmdtext, "/pd4op", true)==0)
- {
- MoveObject(PDDOORd,248.248901 , 87.360313 , 1003.467834,3.5);//close
- MoveObject(PDDOORd,248.248901 , 87.360313 , 1006.931152,3.5);//open
- SendClientMessage(playerid, COLOR_YELLOW,"Cell Entrance Open");
- return 1;
- }
- if (strcmp(cmdtext, "/pd4cl", true)==0)
- {
- MoveObject(PDDOORd,248.248901 , 87.360313 , 1006.931152,3.5);//open
- MoveObject(PDDOORd,248.248901 , 87.360313 , 1003.467834,3.5);//close
- SendClientMessage(playerid, COLOR_YELLOW,"Cell Entrance Close");
- return 1;
- }
- if (strcmp(cmdtext, "/pdwop", true)==0)
- {
- MoveObject(PDWINDOW,250.503234 , 67.772872 , 1006.222045,3.5);//close
- MoveObject(PDWINDOW,250.503234 , 67.772872 , 1008.109191,3.5);//open
- SendClientMessage(playerid, COLOR_YELLOW,"Window Open");
- return 1;
- }
- if (strcmp(cmdtext, "/pdwcl", true)==0)
- {
- MoveObject(PDWINDOW,250.503234 , 67.772872 , 1008.109191,3.5);//open
- MoveObject(PDWINDOW,250.503234 , 67.772872 , 1006.222045,3.5);//close
- SendClientMessage(playerid, COLOR_YELLOW,"Window Close");
- return 1;
- }
- if (strcmp(cmdtext, "/celop", true)==0)
- {
- MoveObject(CELLDOOR,266.238403 , 81.891395 , 1001.039062,3.5);//close
- MoveObject(CELLDOOR,266.238403 , 81.891395 , 1004.377380,3.5);//open
- SendClientMessage(playerid, COLOR_YELLOW,"Celldoor Open");
- return 1;
- }
- if (strcmp(cmdtext, "/celcl", true)==0)
- {
- MoveObject(CELLDOOR,266.238403 , 81.891395 , 1004.377380,3.5);//open
- MoveObject(CELLDOOR,266.238403 , 81.891395 , 1001.039062,3.5);//close
- SendClientMessage(playerid, COLOR_YELLOW,"Celldoor Close");
- return 1;
- }
- if (strcmp(cmdtext, "/pdgatop", true)==0)
- {
- MoveObject(PDGATE,1546.113769 , -1621.810913 , 11.709331,3.5);//close
- MoveObject(PDGATE,1546.113769 , -1621.810913 , 5.644468,3.5);//open
- SendClientMessage(playerid, COLOR_YELLOW,"Welcome to LSPD, Gate Open");
- return 1;
- }
- if (strcmp(cmdtext, "/pdgatcl", true)==0)
- {
- MoveObject(PDGATE,1546.113769 , -1621.810913 , 5.644468,3.5);//open
- MoveObject(PDGATE,1546.113769 , -1621.810913 , 11.709331,3.5);//close
- SendClientMessage(playerid, COLOR_YELLOW,"Gate Close");
- return 1;
- }
- if (strcmp(cmdtext, "/pdgarop", true)==0)
- {
- MoveObject(PDGARAGE,1593.301635 , -1638.118530 , 12.467614,3.5);//close
- MoveObject(PDGARAGE,1593.301635 , -1638.118530 , 6.142154,3.5);//open
- SendClientMessage(playerid, COLOR_YELLOW,"Garage Open");
- return 1;
- }
- if (strcmp(cmdtext, "/pdgarcl", true)==0)
- {
- MoveObject(PDGARAGE,1593.301635 , -1638.118530 , 6.142154,3.5);//open
- MoveObject(PDGARAGE,1593.301635 , -1638.118530 , 12.467614,3.5);//close
- SendClientMessage(playerid, COLOR_YELLOW,"Garage Close");
- return 1;
- }
- if (strcmp(cmdtext, "/pdelup", true)==0)
- {
- MoveObject(PDELEVATOR,1549.049804 , -1697.787109 , 12.551495,3.5);//down
- MoveObject(PDELEVATOR,1549.049804 , -1697.787109 , 27.134717,3.5);//up
- SendClientMessage(playerid, COLOR_YELLOW,"Garage Open");
- return 1;
- }
- if (strcmp(cmdtext, "/pdeldo", true)==0)
- {
- MoveObject(PDELEVATOR,1549.049804 , -1697.787109 , 27.134717,3.5);//up
- MoveObject(PDELEVATOR,1549.049804 , -1697.787109 , 12.551495,3.5);//down
- SendClientMessage(playerid, COLOR_YELLOW,"Garage Close");
- return 1;
- }
- if (strcmp(cmdtext, "/pdcompop", true)==0)
- {
- MoveObject(COMPOUNDGATE,1591.682861 , -1617.880371 , 12.053466,3.5);//close
- MoveObject(COMPOUNDGATE,1583.598754 , -1617.880371 , 12.053466,3.5);//open
- SendClientMessage(playerid, COLOR_YELLOW,"Compound Open");
- return 1;
- }
- if (strcmp(cmdtext, "/pdcompcl", true)==0)
- {
- MoveObject(COMPOUNDGATE,1583.598754 , -1617.880371 , 12.053466,3.5);//open
- MoveObject(COMPOUNDGATE,1591.682861 , -1617.880371 , 12.053466,3.5);//close
- SendClientMessage(playerid, COLOR_YELLOW,"Compound Close");
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment