Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Version 1.5 of Secret Admin base made by Juriaan (henkiee on sa-mp forums) Check for updates now and then
- //Don't copy it!
- #include <a_samp>
- #include <a_npc>
- #include <G_ObjectsRot>
- #define COLOR_BLUE 0x2641FEAA
- #define COLOR_RED 0xFF0000FF
- #define COLOR_WHITE 0xFFFFFFFF
- new pickup1;
- new pickup2;
- new pickup3;
- new pickup4;
- new api;
- new gb1;
- new gb2;
- new ship1;
- new ship2;
- new ship3;
- new androm1;
- new androm2;
- new gate1;
- new gate2;
- new lift1;
- new gg;
- new plane;
- new plane2;
- public OnFilterScriptInit()
- {
- lift1 = CreateObject(3115, 582.30975341797, -3295.5485839844, 45.200000762939, 0, 0, 347);
- gg = CreateVehicle(457, 0.0, 0.0, 5.0, 0.0, 1, 0, 1);
- plane2 = CreateObject(1681, 631.84991455078, -3080.4885253906, 3.4, 0, 0, 0);
- pickup1 = CreatePickup(1273, 2, 834.64935302734, -3117.259765625, 5.419695854187, -1);
- pickup2 = CreatePickup(1272, 2, 2335.3425292969, -1142.3587646484, 1054.296875, -1);
- pickup3 = CreatePickup(1273, 2, 830.83898925781, -3117.6218261719, 5.419695854187, -1);
- pickup4 = CreatePickup(1272, 2, 2313.4379882813, -1135.451171875, 1054.3046875, -1);
- ship1 = CreateObject(10771, 836, -2178, -10.10000038147, 0, 0, 270);
- ship2 = CreateObject(10770, 828.4697265625, -2181.2197265625, 20.10000038147, 0, 0, 270);
- ship3 = CreateObject(3115, 836.02001953125, -2079, 1.3999999761581, 0, 0, 270);
- gb1 = CreateObject(968, 830.13214111328, -3030.1999511719, 2.3499999046326, 0, 89.5, 0);
- gb2 = CreateObject(968, 844.03741455078, -3017.4499511719, 2.3499999046326, 0, 270, 0);
- androm1 = CreateObject(14553, 2067.2434082031, -2496.7824707031, 17, 13, 0, 290);
- androm2 = CreateObject(14548, 2069, -2496.8000488281, 17.6, 13, 0, 290);
- gate1 = CreateObject(970, 834.59997558594, -3030.189453125, 1.7000000476837, 0, 0, 0);
- gate2 = CreateObject(970, 839.72424316406, -3017.4499511719, 1.7000000476837, 0, 0, 0);
- CreateObject(5296, 837.10998535156, -2960, 7.0799999237061, 0, 0, 270);
- CreateObject(18483, 837.2763671875, -3045.3999023438, 1.4500000476837, 0, 0, 90);
- CreateObject(5837, 844.1728515625, -3022.341796875, 3.2409324645996, 0, 0, 90);
- CreateObject(5837, 830.060546875, -3022.341796875, 3.2409324645996, 0, 0, 270);
- CreateObject(966, 844.1083984375, -3017.4609375, 1.5234370231628, 0, 0, 0);
- CreateObject(966, 830.220703125, -3030.189453125, 1.2999999523163, 0, 0, 179.99450683594);
- CreateObject(3265, 831.96307373047, -3016.1901855469, 1.5234375, 0, 0, 180);
- CreateObject(1320, 831.94140625, -2962.234375, 9.9089860916138, 0, 0, 90);
- CreateObject(2985, 829.68414306641, -3012.8073730469, 1.4574785232544, 0, 0, 70);
- CreateObject(2985, 844, -3012.8073730469, 1.4820003509521, 0, 0, 130);
- CreateObject(2921, 842.14111328125, -3020.4377441406, 4.9340243339539, 0, 0, 0);
- CreateObject(3396, 844.90002441406, -3022.9936523438, 1.8112449645996, 0, 0, 0);
- CreateObject(8557, 837.34997558594, -3082.6999511719, -0.30000001192093, 0, 0, 0);
- CreateObject(11490, 832.4697265625, -3112.2099609375, -0.28342914581299, 0, 0, 90);
- CreateObject(11490, 810.365234375, -3119.2880859375, -0.28342914581299, 0, 0, 319.99877929688);
- CreateObject(11490, 847.3994140625, -3112.2392578125, -0.28999999165535, 0, 0, 270);
- CreateObject(8557, 855, -3101, -0.31000000238419, 0, 0, 90);
- CreateObject(1949, 779.75390625, -3118.6142578125, -52.584903717041, 0, 0, 0);
- CreateObject(1446, 830.20001220703, -3108.4499511719, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 830.20001220703, -3109.8742675781, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 830.20001220703, -3111.3537597656, 4.3400001525879, 270, 0, 0);
- CreateObject(3399, 837.5, -3108.6999511719, 2.1600000858307, 0, 0, 180);
- CreateObject(1446, 830.19921875, -3112.8349609375, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 830.20001220703, -3114.2900390625, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 830.20001220703, -3115.7573242188, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 830.20001220703, -3117.1999511719, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 834.74633789063, -3117.1999511719, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 837.85162353516, -3117.1999511719, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 842.3994140625, -3117.19921875, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 847.15972900391, -3117.1999511719, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 849.5, -3117.1999511719, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 834.86999511719, -3111.3537597656, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 738.51721191406, -3134.7739257813, -83.225723266602, 0, 0, 0);
- CreateObject(1446, 839.53002929688, -3109.8742675781, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 839.53002929688, -3108.4499511719, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 839.5, -3111.3537597656, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 834.86999511719, -3110.3601074219, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 844.15997314453, -3108.4499511719, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 844.15997314453, -3109.8742675781, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 844.15997314453, -3111.3537597656, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 834.86999511719, -3112.8349609375, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 834.86999511719, -3114.2900390625, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 834.86999511719, -3115.7573242188, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 839.5, -3112.8349609375, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 839.5, -3114.2900390625, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 839.5, -3115.7573242188, 4.3400001525879, 270, 0, 0);
- CreateObject(3525, 841.13427734375, -3112.1499023438, 6.8193006515503, 0, 0, 90);
- CreateObject(3525, 838.7353515625, -3112.1494140625, 6.8193006515503, 0, 0, 270);
- CreateObject(3525, 832.64099121094, -3106.6999511719, 5.663284778595, 0, 0, 0);
- CreateObject(3525, 832.57580566406, -3117.9799804688, 5.663284778595, 0, 0, 180);
- CreateObject(1446, 844.15997314453, -3112.8349609375, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 844.15997314453, -3114.2900390625, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 844.15997314453, -3115.7573242188, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 847.15972900391, -3115.7573242188, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 847.15972900391, -3114.2900390625, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 847.15972900391, -3112.8349609375, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 847.15002441406, -3111.3537597656, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 842.55682373047, -3109.8020019531, -1.8477849960327, 0, 0, 0);
- CreateObject(1446, 847.15002441406, -3109.8742675781, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 847.15002441406, -3108.4499511719, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 849.5, -3114.2900390625, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 849.5, -3115.7573242188, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 849.5, -3112.8349609375, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 849.5, -3111.3537597656, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 849.5, -3109.8742675781, 4.3400001525879, 270, 0, 0);
- CreateObject(1446, 849.5, -3108.4499511719, 4.3400001525879, 270, 0, 0);
- CreateObject(3525, 847.24481201172, -3117.8000488281, 5.663284778595, 0, 0, 180);
- CreateObject(3525, 847.42138671875, -3106.5, 5.663284778595, 0, 0, 0);
- CreateObject(3497, 828.5, -3112.1494140625, 6.2428307533264, 0, 0, 270);
- CreateObject(3031, 848.2998046875, -3097.1640625, 8, 0, 0, 39.995727539063);
- CreateObject(2290, 835.599609375, -3113.3720703125, 1.224383354187, 0, 0, 90);
- CreateObject(1786, 839.169921875, -3112.177734375, 2.4574747085571, 0, 0, 270);
- CreateObject(1790, 838.8994140625, -3112.267578125, 2.393651008606, 0, 0, 270);
- CreateObject(14865, 664.087890625, -3422.5166015625, 24.891767501831, 0, 0, 0);
- CreateObject(2091, 667.88897705078, -3421.6418457031, 22.891767501831, 0, 0, 270);
- CreateObject(14866, 664.17840576172, -3420.5078125, 23.494476318359, 0, 0, 0);
- CreateObject(14867, 664.15496826172, -3426.0791015625, 24.428800582886, 0, 0, 0);
- CreateObject(3525, 838.5, -3111.5, 0.20000000298023, 0, 0, 0);
- CreateObject(3525, 838.650390625, -3112.2663574219, 0.30000001192093, 0, 0, 0);
- CreateObject(3525, 838.59997558594, -3113.1049804688, 0.30000001192093, 0, 0, 0);
- CreateObject(3525, 838.53967285156, -3112.3452148438, 0.40000000596046, 0, 0, 0);
- CreateObject(1463, 839, -3112.2263183594, 1.2000000476837, 0, 0, 0);
- CreateObject(3886, 2332.3999023438, -1142, 1070, 0, 0, 0);
- CreateObject(3886, 2316.5, -1138.6999511719, 1077.1999511719, 0, 0, 0);
- CreateObject(1649, 821.79998779297, -3112.6000976563, 0.46203571557999, 90, 0, 0);
- CreateObject(1649, 826.1025390625, -3112.5, 0.46203571557999, 90, 0, 0);
- CreateObject(1649, 817.40002441406, -3112.5986328125, 0.46203571557999, 90, 0, 0);
- CreateObject(1649, 815.40002441406, -3113.5, 0.5, 90, 0, 50);
- CreateObject(970, 824.68402099609, -3111.1040039063, 1.0339212417603, 0, 0, 0);
- CreateObject(970, 824.68402099609, -3113.3046875, 1.013516664505, 0, 0, 0);
- CreateObject(970, 820.55108642578, -3111.1071777344, 1.0339212417603, 0, 0, 0);
- CreateObject(970, 817.48406982422, -3111.1071777344, 1.0339212417603, 0, 0, 0);
- CreateObject(970, 820.56604003906, -3113.3046875, 1.0339212417603, 0, 0, 0);
- CreateObject(970, 815.92260742188, -3115, 1.0514802932739, 0, 0, 50);
- CreateObject(970, 819.48101806641, -3113.3000488281, 1.013516664505, 0, 0, 0);
- CreateObject(970, 814.09527587891, -3112.6638183594, 1.013516664505, 0, 0, 50);
- CreateObject(970, 837.09997558594, -3019.6499023438, 1.9186685085297, 0, 0, 90);
- CreateObject(970, 837.09808349609, -3023.8000488281, 1.9186685085297, 0, 0, 90);
- CreateObject(970, 837.07751464844, -3028, 1.9186685085297, 0, 0, 90);
- CreateObject(970, 830.25378417969, -3028.1999511719, 1.8999999761581, 0, 0, 90);
- CreateObject(2571, 850.42999267578, -3107.8000488281, 1.217812538147, 0, 0, 270);
- CreateObject(3525, 851.59997558594, -3109.3000488281, 2.2000000476837, 0, 0, 270);
- CreateObject(2964, 845.10516357422, -3112.140625, 4.4080233573914, 0, 0, 0);
- CreateObject(2748, 850.90002441406, -3113.9580078125, 1.8155572414398, 0, 0, 0);
- CreateObject(2748, 850.90002441406, -3116.3864746094, 1.8155572414398, 0, 0, 180);
- CreateObject(2748, 849.37280273438, -3113.9580078125, 1.8155572414398, 0, 0, 0);
- CreateObject(2748, 849.37280273438, -3116.3864746094, 1.8155572414398, 0, 0, 180);
- CreateObject(2747, 850.82000732422, -3115.12109375, 1.630365729332, 0, 0, 0);
- CreateObject(2747, 849.23614501953, -3115.1220703125, 1.630365729332, 0, 0, 0);
- CreateObject(2861, 850.93475341797, -3115.0832519531, 2.0522797107697, 0, 0, 0);
- CreateObject(2867, 849.2607421875, -3115.0029296875, 2.0522797107697, 0, 0, 0);
- CreateObject(2628, 841.94635009766, -3112.1499023438, 1.217812538147, 0, 0, 90);
- CreateObject(2700, 851.65002441406, -3115, 3.2033393383026, 0, 15, 180);
- CreateObject(2813, 849.26770019531, -3114.189453125, 1.7108863592148, 0, 0, 0);
- CreateObject(2820, 848.73504638672, -3115.0412597656, 2.0522797107697, 0, 0, 0);
- CreateObject(2831, 850.02172851563, -3115.1433105469, 2.0522797107697, 0, 0, 0);
- CreateObject(2836, 850.48193359375, -3112.708984375, 1.217812538147, 0, 0, 0);
- CreateObject(1463, 805.5, -3125.3000488281, 1.5463237762451, 0, 0, 50);
- CreateObject(3525, 805.998046875, -3125, 0.5, 0, 0, 0);
- CreateObject(3525, 805.36669921875, -3124.53515625, 0.5, 0, 0, 0);
- CreateObject(2627, 806.73999023438, -3126.6108398438, 1.2169373035431, 0, 0, 140);
- CreateObject(2627, 807.50274658203, -3127.2626953125, 1.2169370651245, 0, 0, 140);
- CreateObject(2627, 808.27233886719, -3127.8920898438, 1.2169373035431, 0, 0, 140);
- CreateObject(2630, 805.22210693359, -3119.6372070313, 1.224383354187, 0, 0, 50);
- CreateObject(2357, 808.29315185547, -3122.1052246094, 1.6195456981659, 0, 0, 50);
- CreateObject(2120, 808.04711914063, -3123.4536132813, 1.8621411323547, 0, 0, 325);
- CreateObject(2120, 808.71270751953, -3122.7456054688, 1.8621411323547, 0, 0, 314);
- CreateObject(2120, 809.43804931641, -3122.0190429688, 1.8621411323547, 0, 0, 340);
- CreateObject(2120, 808.20635986328, -3120.9953613281, 1.8621411323547, 0, 0, 150);
- CreateObject(2120, 807.43530273438, -3121.8544921875, 1.8621411323547, 0, 0, 120);
- CreateObject(2120, 806.72723388672, -3122.5695800781, 1.8621411323547, 0, 0, 159);
- CreateObject(2812, 807.41857910156, -3123.140625, 2.0298252105713, 0, 0, 0);
- CreateObject(2848, 808.98602294922, -3121.2482910156, 2.0298252105713, 0, 0, 0);
- CreateObject(2851, 808.3876953125, -3122.0810546875, 2.0298252105713, 0, 0, 0);
- CreateObject(2153, 828.45556640625, -3116.2700195313, 1.224383354187, 0, 0, 90);
- CreateObject(2154, 828.45556640625, -3114.1848144531, 1.224383354187, 0, 0, 90);
- CreateObject(2151, 828.45556640625, -3115.5600585938, 1.224383354187, 0, 0, 90);
- CreateObject(2153, 828.45556640625, -3107.9299316406, 1.224383354187, 0, 0, 90);
- CreateObject(2151, 828.45556640625, -3109.3100585938, 1.2243832349777, 0, 0, 90);
- CreateObject(2155, 828.45556640625, -3110.1201171875, 1.224383354187, 0, 0, 90);
- CreateObject(2851, 828.59283447266, -3114.9084472656, 2.2776396274567, 0, 0, 0);
- CreateObject(2863, 828.64129638672, -3110.2028808594, 2.2776396274567, 0, 0, 0);
- CreateObject(2862, 828.80126953125, -3109.0715332031, 2.428053855896, 0, 0, 90);
- CreateObject(1337, 924.203125, -2031.93359375, -3.7957611083984, 0, 0, 0);
- CreateObject(17327, 814, -3095, 8.5, 0, 0, 131.99523925781);
- CreateObject(17269, 625.7421875, -3243.6999511719, 33.569999694824, 0, 0, 270);
- CreateObject(9254, 562.31665039063, -3317.7954101563, 45.891723632813, 0, 0, 347);
- CreateObject(8557, 808.04412841797, -3040.8823242188, -0.090000003576279, 0, 0, 0);
- CreateObject(8557, 767.65002441406, -3040.8823242188, -0.090000003576279, 0, 0, 0);
- CreateObject(8557, 727.29998779297, -3040.8823242188, -0.090000003576279, 0, 0, 0);
- CreateObject(8557, 686.90002441406, -3040.8823242188, -0.090000003576279, 0, 0, 0);
- CreateObject(8609, 639.20001220703, -3037.5134277344, 1.4099999666214, 0, 0, 180);
- CreateObject(8609, 646.20001220703, -3037.6000976563, 1.3999999761581, 0, 0, 0);
- CreateObject(8609, 646.20001220703, -2838, 1.3999999761581, 0, 0, 0);
- CreateObject(8609, 639.20001220703, -2837.8000488281, 1.4099999666214, 0, 0, 180);
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/island", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,847.15002441406, -3108.4499511719, 6);
- return 1;
- }
- if (strcmp("/plane", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid, 2070, -2490.8000488281, 13);
- return 1;
- }
- if( !strcmp(cmdtext,"/opengb1",true ))
- {
- MoveObject(gate1, 834.59997558594, -3030.189453125, 0.5, 1);
- RotateObject(gb1, 0, 0, 0, 40);
- SetTimer("Resetgate1",7500,0);
- return 1;
- }
- if( !strcmp(cmdtext,"/closegb1",true ))
- {
- MoveObject(gate1, 834.59997558594, -3030.189453125, 1.7, 1);
- RotateObject(gb1, 0, 89.5, 0, 40);
- return 1;
- }
- if( !strcmp(cmdtext,"/opengb2",true ))
- {
- MoveObject(gate2, 839.72424316406, -3017.4499511719, 0.5, 1);
- RotateObject(gb2, 0, 0, 0, 40);
- SetTimer("Resetgate2",7500,0);
- return 1;
- }
- if( !strcmp(cmdtext,"/closegb2",true ))
- {
- MoveObject(gate2, 839.72424316406, -3017.4499511719, 1.7, 1);
- RotateObject(gb2, 0, 270, 0, 40);
- return 1;
- }
- if(strcmp(cmdtext, "/fly", true) == 0)
- {
- MoveObject(androm1, 604.75311279297, -3075.5239257813, 135.80725097656, 20);
- MoveObject(androm2, 607.53997802734, -3075.5239257813, 135.3, 20);
- SendClientMessage(playerid, COLOR_BLUE, "You're flying with the Andromada now");
- SendClientMessage(playerid, COLOR_BLUE, "Jump out at the right moment otherwise you'll be pushed out!");
- return 1;
- }
- if (strcmp("/boat", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid, 837, -2078.8000488281, 13);
- return 1;
- }
- if (strcmp("/ip", cmdtext, true, 10) == 0)
- {
- MoveObject(ship1, 836, -2178, -10.10000038147, 5);
- MoveObject(ship2, 828.4697265625, -2181.2197265625, 20.10000038147, 5);
- MoveObject(ship3, 836.02001953125, -2079, 1.3999999761581, 5);
- return 1;
- }
- if (strcmp("/pi", cmdtext, true, 10) == 0)
- {
- MoveObject(ship1, 836.81744384766, -2797, -10.10000038147, 5);
- MoveObject(ship2, 829.28002929688, -2800.2299804688, 20.10000038147, 5);
- MoveObject(ship3, 836.79998779297, -2698, 1.32, 5);
- return 1;
- }
- if (strcmp("/raise1", cmdtext, true, 10) == 0)
- {
- MoveObject(ship1, 836, -2178, 0.3, 5);
- MoveObject(ship2, 828.4697265625, -2181.2197265625, 30.3, 5);
- MoveObject(ship3, 836.02001953125, -2079, 11.7, 5);
- return 1;
- }
- if (strcmp("/raise2", cmdtext, true, 10) == 0)
- {
- MoveObject(ship1, 836.81744384766, -2797, 0, 5);
- MoveObject(ship2, 829.28002929688, -2800.2299804688, 30, 5);
- MoveObject(ship3, 836.79998779297, -2698, 11.5, 5);
- return 1;
- }
- if (strcmp("/lower1", cmdtext, true, 10) == 0)
- {
- MoveObject(ship1, 836, -2178, -10.10000038147, 5);
- MoveObject(ship2, 828.4697265625, -2181.2197265625, 20.10000038147, 5);
- MoveObject(ship3, 836.02001953125, -2079, 1.3999999761581, 5);
- return 1;
- }
- if (strcmp("/lower2", cmdtext, true, 10) == 0)
- {
- MoveObject(ship1, 836.81744384766, -2797, -10.10000038147, 5);
- MoveObject(ship2, 829.28002929688, -2800.2299804688, 20.10000038147, 5);
- MoveObject(ship3, 836.79998779297, -2698, 1.32, 5);
- return 1;
- }
- if (strcmp("/lower", cmdtext, true, 10) == 0)
- {
- MoveObject(lift1, 806.59997558594, -3083, 0.89999997615814, 20);
- RotateObject(lift1, 0, 0, 0, 1);
- return 1;
- }
- if (strcmp("/raise", cmdtext, true, 10) == 0)
- {
- MoveObject(lift1, 582.30975341797, -3295.5485839844, 45.200000762939, 20);
- RotateObject(lift1, 0, 0, 347, 1);
- return 1;
- }
- if (strcmp("/planetest", cmdtext, true, 10) == 0)
- {
- plane = CreateObject(1683, 659.45733642578, -2800.443359375, 35, 0, 356, 270);
- MoveObject(plane, 652.84991455078, -2950.4885253906, 7.1876263618469, 20);
- MoveObject(plane2, 631.84991455078, -2920.4885253906, 3.4, 30);
- return 1;
- }
- if (strcmp("/clearfield", cmdtext, true, 10) == 0)
- {
- DestroyObject(plane);
- DestroyObject(plane2);
- plane2 = CreateObject(1681, 631.84991455078, -3080.4885253906, 3.4, 0, 0, 0);
- return 1;
- }
- return 0;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == pickup1)
- {
- SetPlayerPos(playerid, 2335.27, -1138.87, 1054.30);
- SetPlayerInterior(playerid, 12);
- }
- if(pickupid == pickup2)
- {
- SetPlayerPos(playerid, 832.52105712891, -3117.3464355469, 5.419695854187);
- SetPlayerInterior(playerid, 0);
- }
- if(pickupid == pickup3)
- {
- SetPlayerPos(playerid, 2313.44, -1138.89, 1054.30 );
- SetPlayerInterior(playerid, 12);
- }
- if(pickupid == pickup4)
- {
- SetPlayerPos(playerid, 832.52105712891, -3117.3464355469, 5.419695854187);
- SetPlayerInterior(playerid, 0);
- }
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- if((objectid) == androm1)
- {
- DestroyObject(androm1);
- DestroyObject(androm2);
- androm1 = CreateObject(14553, 2067.2434082031, -2496.7824707031, 17, 13, 0, 290);
- androm2 = CreateObject(14548, 2070.2, -2496.8000488281, 17.6, 13, 0, 290);
- }
- if((objectid) == plane)
- {
- RotateObject(plane, 0, 358, 270, 10);
- RotateObject(plane, 0, 358, 270, 5);
- RotateObject(plane, 0, 360, 270, 5);
- MoveObject(plane, 652.84991455078, -3057.4885253906, 7.1876263618469, 15);
- }
- if((objectid) == plane2)
- {
- MoveObject(plane2, 631.84991455078, -2500.4885253906, 35, 30);
- }
- }
- public OnObjectRotated(objectid)
- {
- return 1;
- }
- public OnObjectStopRotate(objectid)
- {
- return 1;
- }
- public OnObjectStopBucle(objectid)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(IsPlayerNPC(playerid))
- {
- new npcname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, npcname, sizeof(npcname));
- if(!strcmp(npcname, "[BOT]Guard", true))
- {
- SetPlayerSkin(playerid, 164);
- return 1;
- }
- if(!strcmp(npcname, "[BOT]Golfcaddy_Guard", true))
- {
- PutPlayerInVehicle(playerid, gg, 0);
- return 1;
- }
- return 1;
- }
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if (strfind(text, "Patrol Silent!") != -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Mitchell: Yes sir");
- GivePlayerWeapon(playerid, 347, 999999);
- }
- if (strfind(text, "What are you doing, Mitchell?") != -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "~w~Mitchell: Uuuhm? What i'm supposed to do..*turns computer screen off*");
- ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
- }
- if (strfind(text, "Park my car") != -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Valet: Ofcourse, Sir");
- }
- if (strfind(text, "You made a scratch on my ride!") != -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Valet: I'm sorry sir, Here is money for a repair");
- GivePlayerMoney(playerid, 900);
- }
- if (strfind(text, "Hello Norman") != -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Norman: Hello sir.");
- }
- if (strfind(text, "Hello Charlie") != -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Charlie: Hello Mr.");
- }
- if (strfind(text, "Hello guys") != -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Bots: Hello");
- }
- if (strfind(text, "Hello Guard") != -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Guard: Hello....");
- }
- if (strfind(text, "Bye Norman") != -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Norman: Goodbye!");
- }
- if (strfind(text, "Bye Charlie") != -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Charlie: Bye Bye!");
- }
- if (strfind(text, "Bye Guard") != -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Guard: Bye...");
- }
- return 1;
- }
- public Resetgate1()
- {
- MoveObject(gate1, 834.59997558594, -3030.189453125, 1.7, 1);
- RotateObject(gb1, 0, 89.5, 0, 40);
- }
- public Resetgate2()
- {
- MoveObject(gate2, 839.72424316406, -3017.4499511719, 1.7, 1);
- RotateObject(gb2, 0, 270, 0, 40);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement