Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- //--------------------------------------------\\
- // Car service script \\
- // By Scoots \\
- //--------------------------------------------\\
- new gates[100];
- new mainigais14;
- new servis;
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Car Service by Scoots");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Car Service by Scoots");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- CreateObject(5153, -1729.7943, 120.4920, 3.1279, 0.0000, 7.3172, 90.1369);
- CreateObject(5153, -1733.7448, 120.4920, 3.1279, 0.0000, 7.3172, 90.1369);
- CreateObject(931, -1729.9257, 123.4396, 2.5166, 0.0000, 0.0000, 0.0000);
- CreateObject(931, -1733.6521, 123.4396, 2.5166, 0.0000, 0.0000, 0.0000);
- CreateObject(931, -1733.6521, 132.9393, 2.5166, 0.0000, 0.0000, 0.0000);
- CreateObject(931, -1729.8005, 132.9146, 2.5166, 0.0000, 0.0000, 0.0000);
- CreateObject(931, -1729.8256, 128.0147, 2.7666, 0.0000, 0.0000, 359.1406);
- CreateObject(931, -1733.6771, 128.0645, 2.7916, 0.0000, 0.0000, 358.2811);
- CreateObject(8947, -1737.7142, 94.5269, 5.6075, 0.0000, 0.0000, 227.9783);
- CreateObject(3627, -1729.0521, 128.1118, 6.3692, 0.0000, 0.0000, 0.0000);
- CreateObject(2048, -1739.1853, 86.5796, 7.4498, 0.0000, 0.0000, 139.1247);
- CreateObject(2714, -1743.0940, 106.9275, 4.5427, 0.0000, 0.0000, 227.7514);
- CreateObject(10281, -1747.4453, 103.3479, 7.4939, 359.1406, 345.3896, 228.5061);
- CreateObject(2041, -1749.5804, 97.7148, 2.7596, 0.0000, 0.0000, 0.0000);
- CreateObject(2042, -1749.0029, 97.0802, 2.6347, 0.0000, 0.0000, 0.0000);
- CreateObject(2043, -1748.6304, 98.3446, 2.6587, 0.0000, 0.0000, 257.7270);
- CreateObject(2358, -1749.9338, 97.0423, 2.6712, 0.0000, 0.0000, 318.7470);
- CreateObject(2567, -1734.7246, 84.4022, 4.4823, 0.0000, 0.0000, 317.8876);
- CreateObject(2694, -1749.0278, 97.7575, 2.6632, 0.0000, 0.0000, 0.0000);
- CreateObject(3632, -1725.3789, 91.6778, 3.0295, 0.0000, 0.0000, 0.0000);
- CreateObject(3761, -1734.8925, 100.1665, 4.5287, 0.0000, 0.0000, 48.1285);
- CreateObject(930, -1737.6969, 86.3375, 3.0306, 0.0000, 0.0000, 0.0000);
- CreateObject(919, -1727.5463, 88.8519, 3.0124, 0.0000, 0.0000, 47.2690);
- CreateObject(927, -1743.5664, 90.4464, 2.6552, 0.0000, 0.0000, 317.8876);
- CreateObject(958, -1731.6144, 97.0303, 3.4315, 0.0000, 0.0000, 136.6504);
- CreateObject(1689, -1745.4757, 101.4604, 9.8719, 0.0000, 0.0000, 47.2690);
- /////////////////////////////////////
- CreateObject(1673, -1737.997925, 92.161110, 3.701880, 0.0000, 180.3775, 316.1687);
- CreateObject(1673, -1741.000854, 88.910912, 3.701880, 0.0000, 180.3775, 316.1687);
- CreateObject(1673, -1738.373291, 86.535767, 3.701880, 0.0000, 180.3775, 316.1687);
- CreateObject(1673, -1735.395386, 89.810966, 3.701880, 0.0000, 180.3775, 316.1687);
- CreateObject(1673, -1726.440918, 81.703072, 3.676881, 0.0000, 180.3775, 314.4499);
- CreateObject(1673, -1724.013550, 84.253227, 3.676881, 0.0000, 180.3775, 314.4499);
- CreateObject(1673, -1730.469849, 85.253288, 3.676881, 0.0000, 180.3775, 314.4499);
- CreateObject(1673, -1728.037598, 87.853279, 3.676881, 0.0000, 180.3775, 314.4499);
- gates[1] = CreateObject(5153, -1736.337769, 93.242935, 2.502866, 0.0000, 203.5825, 226.7873);
- gates[2] = CreateObject(5153, -1732.784302, 89.992737, 2.502866, 0.0000, 203.5825, 226.7873);
- gates[3] = CreateObject(2678, -1743.697144, 96.076836, 2.563910, 90.2409, 0.0000, 317.8876);
- gates[4] = CreateObject(2678, -1745.423828, 94.151718, 2.563913, 90.2409, 0.0000, 317.8876);
- gates[5] = CreateObject(2678, -1746.273682, 98.426918, 2.563913, 90.2409, 0.0000, 317.8876);
- gates[6] = CreateObject(2678, -1748.000366, 96.501801, 2.563913, 90.2409, 0.0000, 317.8876);
- gates[7] = CreateObject(5153, -1733.789795, 124.930420, 3.752870, 0.0000, 23.5162, 89.2776);
- gates[8] = CreateObject(5153, -1733.739746, 131.105270, 3.752870, 0.0000, 23.5162, 89.2776);
- gates[9] = CreateObject(5153, -1729.763550, 124.905418, 3.752870, 0.0000, 23.5162, 89.2776);
- gates[10] = CreateObject(5153, -1729.713501, 131.055511, 3.752870, 0.0000, 23.5162, 89.2776);
- //auto=serviss------------------------------------------------------------------
- servis= CreateObject(9093, -1746.541260, 102.497986, 4.325224, 0.0000, 0.0000, 318.7470);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerPrivmsg(playerid, recieverid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- //auto-servis
- if(strcmp("/carsrv", cmdtext, true, 6) == 0) {
- if(mainigais14 == 0) {
- SendClientMessage(playerid, 0x33AA33AA,"Durvis atveras");
- MoveObject(servis, -1746.541260, 102.497986, 6.875228, 5); //vala
- mainigais14 = 1;
- } else if(mainigais14 == 1) {
- SendClientMessage(playerid, 0xAA3333AA,"Durvis aizveras");
- MoveObject(servis, -1746.541260, 102.497986, 4.325224, 5); //ciet
- mainigais14 = 0;
- }
- return 1;
- }
- /////////////////////
- if (strcmp(cmdtext, "/cslift2d", true) == 0){
- MoveObject(gates[3], -1743.697144, 96.076836, 2.563910, 1);
- MoveObject(gates[4], -1745.423828, 94.151718, 2.563913, 1);
- MoveObject(gates[5], -1746.273682, 98.426918, 2.563913, 1);
- MoveObject(gates[6], -1748.000366, 96.501801, 2.563913, 1);
- return 1;
- }
- if (strcmp(cmdtext, "/cslift2u", true) == 0){
- MoveObject(gates[3], -1743.697144, 96.076836, 5.638916, 1);
- MoveObject(gates[4], -1745.423828, 94.151718, 5.638915, 1);
- MoveObject(gates[5], -1746.273682, 98.426918, 5.613915, 1);
- MoveObject(gates[6], -1748.000366, 96.501801, 5.613915, 1);
- return 1;
- }
- //////////////////////////////////////////////////////////////
- if (strcmp(cmdtext, "/csliftd", true) == 0){
- MoveObject(gates[1], -1736.337769, 93.242935, 2.502866, 1);
- MoveObject(gates[2], -1732.784302, 89.992737, 2.502866, 1);
- return 1;
- }
- if (strcmp(cmdtext, "/csliftu", true) == 0){
- MoveObject(gates[1], -1736.337769, 93.242935, 5.652872, 1);
- MoveObject(gates[2], -1732.784302, 89.992737, 5.677872, 1);
- return 1;
- }
- ///////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////
- if (strcmp(cmdtext, "/indliftd", true) == 0){
- MoveObject(gates[7], -1733.789795, 124.930420, 3.752870, 1);
- MoveObject(gates[8], -1733.739746, 131.105270, 3.752870, 1);
- MoveObject(gates[9], -1729.763550, 124.905418, 3.752870, 1);
- MoveObject(gates[10], -1729.713501, 131.055511, 3.752870, 1);
- return 1;
- }
- if (strcmp(cmdtext, "/indliftu", true) == 0){
- MoveObject(gates[7], -1733.789795, 124.930420, 5.402873, 1);
- MoveObject(gates[8], -1733.739746, 131.105270, 5.452871, 1);
- MoveObject(gates[9], -1729.763550, 124.905418, 5.452871, 1);
- MoveObject(gates[10], -1729.713501, 131.055511, 5.477872, 1);
- return 1;}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement