Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=====================Included======================
- #include <a_samp>
- #include <core>
- #include <float>
- #include <a_players>
- //=====================Defines=======================
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_BLUE 0x0000BBAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_TRANS 0xFFFFFF00
- #define RED 0xE60000FF
- //================News====================
- new bus;
- new gatestats;
- //=================Main==================
- main()
- {
- print("\n----------------------------------");
- print(" Grove Street");
- print(" Coded By");
- print(" Diti");
- print("----------------------------------\n");
- }
- //======================OnGameModeInit=======================
- public OnGameModeInit()
- {
- //===[Timers]=======================
- //===[Gates]==================================
- bus = CreateObject(980, 2432.5, -1657.9000244141, 15.199999809265, 0, 0, 272);// Gate
- //objects
- CreateObject(987, 2433.1000976563, -1636, 12.39999961853, 0, 0, 271.5);
- CreateObject(3475, 2433.3999023438, -1633.1999511719, 14.800000190735, 0, 0, 1.25);
- CreateObject(3578, 2480.3000488281, -1653.1999511719, 13.199999809265, 0, 0, 0);
- CreateObject(3578, 2488.1999511719, -1653.3000488281, 13.199999809265, 0, 0, 0);
- CreateObject(987, 2435.3999023438, -1628.1999511719, 12.89999961853, 0, 0, 0);
- CreateObject(987, 2447.5, -1628.4000244141, 13.60000038147, 0, 0, 0);
- CreateObject(987, 2459.5, -1628.6999511719, 14.5, 0, 0, 0);
- CreateObject(987, 2471.1999511719, -1629, 14.89999961853, 0, 0, 0);
- CreateObject(987, 2482.3999023438, -1628.9000244141, 15.39999961853, 0, 0, 0);
- CreateObject(987, 2494.3000488281, -1628.5999755859, 16, 0, 0, 2);
- CreateObject(987, 2506.1999511719, -1628.3000488281, 16.5, 0, 0, 1.99951171875); CreateObject(987, 2518, -1628.0999755859, 16.799999237061, 0, 0, 1.99951171875);
- CreateObject(987, 2529.8000488281, -1628.0999755859, 16.799999237061, 0, 0, 1.99951171875);
- CreateObject(987, 2465.3999023438, -1722.5999755859, 12.5, 0, 0, 2);
- CreateObject(987, 2453.3999023438, -1722.9000244141, 12.699999809265, 0, 0, 1.99951171875);
- CreateObject(987, 2441.1999511719, -1722.6999511719, 12.800000190735, 0, 0, 1.99951171875);
- CreateObject(975, 2480.1999511719, -1722.1999511719, 14.199999809265, 0, 0, 0);
- CreateObject(8656, 2540.6999511719, -1705.0999755859, 13.60000038147, 0, 0, 0);
- CreateObject(8656, 2520.3999023438, -1722, 13.699999809265, 0, 0, 270);
- CreateObject(8656, 2520.3999023438, -1722, 16, 0, 0, 270);
- CreateObject(991, 2540.8999023438, -1717.5, 16, 0, 0, 270);
- CreateObject(991, 2541, -1713.1999511719, 16, 0, 0, 270);
- CreateObject(991, 2537.6999511719, -1721.6999511719, 16, 0, 0, 196.5);
- CreateObject(1271, 2507.3000488281, -1659.0999755859, 12.89999961853, 0, 0, 0);
- CreateObject(1271, 2507.3000488281, -1659.9000244141, 12.89999961853, 0, 0, 2);
- CreateObject(1337, 2507.3000488281, -1658.8000488281, 13.5, 0, 0, 276);
- CreateObject(1271, 2508.1000976563, -1659.8000488281, 12.89999961853, 0, 0, 1.99951171875);
- CreateObject(1271, 2508, -1659.0999755859, 12.89999961853, 0, 0, 1.99951171875);
- CreateObject(1337, 2507.8000488281, -1660.0999755859, 13.5, 0, 0, 0);
- CreateObject(1337, 2508.3999023438, -1659.4000244141, 13.5, 0, 0, 0);
- AddStaticVehicleEx(470,2476.5000000,-1656.0999756,13.3999996,0.0000000,3,3,15); //Patriot
- AddStaticVehicleEx(470,2480.3999023,-1656.0999756,13.3999996,0.0000000,3,3,15); //Patriot
- AddStaticVehicleEx(470,2484.1999512,-1656.0999756,13.3999996,0.0000000,3,3,15); //Patriot
- AddStaticVehicleEx(470,2488.1000977,-1656.0000000,13.5000000,0.0000000,3,3,15); //Patriot
- AddStaticVehicleEx(470,2491.3000488,-1655.8000488,13.5000000,0.0000000,3,3,15); //Patriot
- AddStaticVehicleEx(492,2509.8000488,-1667.1999512,13.5000000,10.0000000,-1,3,15); //Greenwood
- AddStaticVehicleEx(492,2509.6999512,-1673.8000488,13.3000002,340.0000000,2,-1,15); //Greenwood
- AddStaticVehicleEx(492,2505.8999023,-1679.8000488,13.3999996,313.9975586,16,-1,15); //Greenwood
- AddStaticVehicleEx(560,2491.1000977,-1682.0999756,13.1000004,0.0000000,3,-1,15); //Sultan
- AddStaticVehicleEx(560,2487.3999023,-1681.5999756,13.1000004,0.0000000,-1,29,15); //Sultan
- AddStaticVehicleEx(560,2483.3000488,-1681.8000488,13.1000004,0.0000000,-1,-1,15); //Sultan
- AddStaticVehicleEx(487,2525.3000488,-1677.3000488,20.2000008,0.0000000,3,-1,15); //Maverick
- AddStaticVehicleEx(487,2535.0000000,-1678.0000000,20.2000008,0.0000000,-1,3,15); //Maverick
- CreateObject(987, 2431.3000488281, -1668.9000244141, 12.699999809265, 0, 0, 272);
- CreateObject(3475, 2431.6000976563, -1667.3000488281, 14.89999961853, 0, 0, 0);
- CreateObject(3749, 2432.6000976563, -1657.9000244141, 18.200000762939, 0, 0, 272);
- CreateObject(17062, 2398.3999023438, -1570.5999755859, 218, 11, 0, 19);
- CreateObject(17062, 2471.8000488281, -1741.6999511719, 192.10000610352, 10.997314453125, 0, 18.494873046875);
- CreateObject(10780, 2328.1000976563, -1428.8000488281, 231.80000305176, 0, 0, 198);
- CreateObject(972, 2291.5, -1422.9000244141, 228.19999694824, 0, 0, 16);
- CreateObject(972, 2319.3999023438, -1373.6999511719, 228.19999694824, 0, 0, 287.99609375);
- CreateObject(17062, 2553.19921875, -1931.099609375, 164.60000610352, 10.997314453125, 0, 18.484497070313);
- CreateObject(17062, 2702.5, -2168.1000976563, 137.5, 10.997314453125, 0, 32.481079101563);
- CreateObject(1633, 2600.1999511719, -2030.8000488281, 146.89999389648, 0, 0, 220);
- CreateObject(8355, 2836.1000976563, -2318.6999511719, 89.900001525879, 0, 0, 46);
- CreateObject(8355, 2919, -2402, 90, 0, 0, 45.999755859375);
- CreateObject(8354, 3024.3999023438, -2471.1999511719, 90.099998474121, 0, 0, 136);
- CreateObject(8355, 2939.3000488281, -2565.1999511719, 90.199996948242, 0, 0, 319.99975585938);
- CreateObject(8355, 2858.6000976563, -2660.6999511719, 89.199996948242, 0, 0, 319.99877929688);
- CreateObject(8343, 2774.3999023438, -2713.6999511719, 80.199996948242, 0, 0, 140);
- CreateObject(8355, 2699.6999511719, -2693.3999023438, 80.199996948242, 0, 0, 53.998779296875);
- CreateObject(8355, 2589.1000976563, -2613.5, 80.199996948242, 0, 0, 53.997802734375);
- CreateObject(8355, 2505.5, -2552.6000976563, 80, 0, 0, 53.997802734375);
- CreateObject(8344, 2408.6999511719, -2510.8000488281, 78, 0, 0, 234);
- CreateObject(8355, 2297.8999023438, -2496.8999023438, 78, 0, 0, 91.997802734375);
- //finish
- return 1;
- }
- //======================OnPlayerSpawn=======================
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- //==================OnPlayerConnect==================
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- //==================OnPlayerDisconnect==================
- public OnPlayerDisconnect(playerid)
- {
- }
- //===================OnPlayerCommandText==========================
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext, "/gate", true) == 0)
- {
- if(gatestats == 0)// if the gate is closed
- {
- MoveObject(bus,2433.1000976563, -1636, 12.39999961853,2.0);
- gatestats = 1; // gate is opened
- }
- else// else, if the gate is open
- {
- MoveObject(bus,2432.5, -1657.9000244141, 15.199999809265,2.0);
- gatestats = 0; // gate is closed
- }
- return 1;
- }
- return 0;
- }
- //===[OnPlayerEnterVehicle]==========================================
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- //======================OnPlayerDeath=======================
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- //======================OnPlayerRequestClass=======================
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- //=============================On Enter Checkpoint==============================
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- //===[OnPlayerLeaveCheckpoint]==========================================
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement