Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Copyright RcLuton 2014!!!
- #include <a_samp>
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- //COLORS//COLORS/////////////
- //Shades of red
- #define COLOR_INDIANRED 0xCD5C5CFF
- #define COLOR_LIGHTCORAL 0xF08080FF
- #define COLOR_SALMON 0xFA8072FF
- #define COLOR_DARKSALMON 0xE9967AFF
- #define COLOR_LIGHTSALMON 0xFFA07AFF
- #define COLOR_CRIMSON 0xDC143CFF
- #define COLOR_RED 0xFF0000FF
- #define COLOR_FIREBRICK B22222FF
- #define COLOR_DARKRED 0x8B0000FF
- //Shades of pink
- #define COLOR_PINK 0xFFC0CBFF
- #define COLOR_LIGHTPINK 0xFFB6C1FF
- #define COLOR_HOTPINK 0xFF69B4FF
- #define COLOR_DEEPPINK 0xFF1493FF
- #define COLOR_MEDIUMVIOLETRED 0xC71585FF
- #define COLOR_PALEVIOLETRED 0xDB7093FF
- //Shades of Orange
- #define COLOR_CORAL 0xFF7F50FF
- #define COLOR_TOMATO 0xFF6347FF
- #define COLOR_ORANGERED 0xFF4500FF
- #define COLOR_DARKORANGE 0xFF8C00FF
- #define COLOR_ORANGE 0xFFA500FF
- //Shades of Yellow
- #define COLOR_GOLD 0xFFD700FF
- #define COLOR_YELLOW 0xFFFF00FF
- #define COLOR_LIGHTYELLOW 0xFFFFE0FF
- #define COLOR_LEMONCHIFFON 0xFFFACDFF
- #define COLOR_LIGHTGOLDENRODYELLOW 0xFAFAD2FF
- #define COLOR_PAPAYAWHIP 0xFFEFD5FF
- #define COLOR_MOCCASIN 0xFFE4B5FF
- #define COLOR_PEACHPUFF 0xFFDAB9FF
- #define COLOR_PALEGOLDENROD 0xEEE8AAFF
- #define COLOR_KHAKI 0xF0E68CFF
- #define COLOR_DARKKHAKI 0xBDB76BFF
- //Shades of Purple
- #define COLOR_LAVENDER 0xE6E6FAFF
- #define COLOR_THISTLE 0xD8BFD8FF
- #define COLOR_PLUM 0xDDA0DDFF
- #define COLOR_VIOLET 0xEE82EEFF
- #define COLOR_ORCHID 0xDA70D6FF
- #define COLOR_FUCHSIA 0xFF00FFFF
- #define COLOR_MAGENTA 0xFF00FFFF
- #define COLOR_MEDIUMORCHID 0xBA55D3FF
- #define COLOR_MEDIUMPURPLE 0x9370DBFF
- #define COLOR_AMETHYST 0x9966CCFF
- #define COLOR_BLUEVIOLET 0x8A2BE2FF
- #define COLOR_DARKVIOLET 0x9400D3FF
- #define COLOR_DARKORCHID 0x9932CCFF
- #define COLOR_DARKMAGENTA 0x8B008BFF
- #define COLOR_PURPLE 0x800080FF
- #define COLOR_INDIGO 0x4B0082FF
- #define COLOR_SLATEBLUE 0x6A5ACDFF
- #define COLOR_DARKSLATEBLUE 0x483D8BFF
- #define COLOR_MEDIUMSLATEBLUE 0x7B68EEFF
- //Shades of Green
- #define COLOR_GREENYELLOW 0xADFF2FFF
- #define COLOR_CHARTREUSE 0x7FFF00FF
- #define COLOR_LAWNGREEN 0x7CFC00FF
- #define COLOR_LIME 0x00FF00FF
- #define COLOR_LIMEGREEN 0x32CD32FF
- #define COLOR_PALEGREEN 0x98FB98FF
- #define COLOR_LIGHTGREEN 0x90EE90FF
- #define COLOR_MEDIUMSPRINGGREEN 0x00FA9AFF
- #define COLOR_SPRINGGREEN 0x00FF7FFF
- #define COLOR_MEDIUMSEAGREEN 0x3CB371FF
- #define COLOR_SEAGREEN 0x2E8B57FF
- #define COLOR_FORESTGREEN 0x228B22FF
- #define COLOR_GREEN 0x008000FF
- #define COLOR_DARKGREEN 0x006400FF
- #define COLOR_YELLOWGREEN 0x9ACD32FF
- #define COLOR_OLIVEDRAB 0x6B8E23FF
- #define COLOR_OLIVE 0x808000FF
- #define COLOR_DARKOLIVEGREEN 0x556B2FFF
- #define COLOR_MEDIUMAQUAMARINE 0x66CDAAFF
- #define COLOR_DARKSEAGREEN 0x8FBC8FFF
- #define COLOR_LIGHTSEAGREEN 0x20B2AAFF
- #define COLOR_DARKCYAN 0x008B8BFF
- #define COLOR_TEAL 0x008080FF
- //Shades of Blue/Cyan
- #define COLOR_AQUA 0x00FFFFFF
- #define COLOR_CYAN 0x00FFFFFF
- #define COLOR_LIGHTCYAN 0xE0FFFFFF
- #define COLOR_PALETURQUOISE 0xAFEEEEFF
- #define COLOR_AQUAMARINE 0x7FFFD4FF
- #define COLOR_TURQUOISE 0x40E0D0FF
- #define COLOR_MEDIUMTURQUOISE 0x48D1CC
- #define COLOR_DARKTURQUOISE 0x00CED1FF
- #define COLOR_CADETBLUE 0x5F9EA0FF
- #define COLOR_STEELBLUE 0x4682B4FF
- #define COLOR_LIGHTSTEELBLUE 0xB0C4DEFF
- #define COLOR_POWDERBLUE 0xB0E0E6FF
- #define COLOR_LIGHTBLUE 0xADD8E6FF
- #define COLOR_SKYBLUE 0x87CEEBFF
- #define COLOR_LIGHTSKYBLUE 0x87CEFAFF
- #define COLOR_DEEPSKYBLUE 0x00BFFFFF
- #define COLOR_DODGERBLUE 0x1E90FFFF
- #define COLOR_CORNFLOWERBLUE 0x6495EDFF
- #define COLOR_MEDIUMSLATEBLUE 0x7B68EEFF
- #define COLOR_ROYALBLUE 0x4169E1FF
- #define COLOR_BLUE 0x0000FFFF
- #define COLOR_MEDIUMBLUE 0x0000CDFF
- #define DARKBLUE 0x00008BFF
- #define COLOR_NAVY 0x000080FF
- #define COLOR_MIDNIGHTBLUE 0x191970FF
- //Shades of Brown
- #define COLOR_CORNSILK 0xFFF8DCFF
- #define COLOR_BLANCHEDALMOND 0xFFEBCDFF
- #define COLOR_BISQUE 0xFFE4C4FF
- #define COLOR_NAVAJOWHITE 0xFFDEADFF
- #define COLOR_WHEAT 0xF5DEB3FF
- #define COLOR_BURLYWOOD 0xDEB887FF
- #define COLOR_TAN 0xD2B48CFF
- #define COLOR_ROSYBROWN 0xBC8F8FFF
- #define COLOR_SANDYBROWN 0xF4A460FF
- #define COLOR_DARKGOLDENROD 0xB8860BFF
- #define COLOR_PERU 0xCD853FFF
- #define COLOR_SADDLEBROWN 0x8B4513FF
- #define COLOR_SIENNA 0xA0522DFF
- #define COLOR_BROWN 0xA52A2AFF
- #define COLOR_MAROON 0x800000FF
- //Shades of Grey
- #define COLOR_WHITE 0xFFFFFFFF
- #define COLOR_GAINSBORO 0xDCDCDCFF
- #define COLOR_LIGHTGREY 0xD3D3D3FF
- #define COLOR_SILVER 0xC0C0C0FF
- #define COLOR_DARKGRAY 0xA9A9A9FF
- #define COLOR_GRAY 0x808080FF
- #define COLOR_DIMGRAY 0x696969FF
- #define COLOR_LIGHTSLATEGRAY 0x778899FF
- #define COLOR_SLATEGRAY 0x708090FF
- #define COLOR_DARKSLATEGRAY 0x2F4F4FFF
- #define COLOR_BLACK 0x000000FF
- //COLORS//COLORS//COLORS//COLORS
- ///Mount Chilliard Airport Base!!!
- // It's a part of an AirportsMaps
- CreateObject(8357, -2307.14722, -1551.99878, 483.27771, 0.00000, 0.00000, 0.00000);
- CreateObject(8357, -2307.14722, -1763.41711, 483.27771, 0.00000, 0.00000, 180.00000);
- CreateObject(19340, -2330.82544, -1650.35522, 479.49261, 0.00000, 0.00000, 180.00000);
- CreateObject(19340, -2330.96997, -1786.30164, 479.49261, 0.00000, 0.00000, 0.00000);
- CreateObject(19340, -2330.96997, -1786.30164, 479.49261, 180.00000, 0.00000, 0.00000);
- CreateObject(19340, -2330.96997, -1786.30164, 479.49261, 180.00000, 0.00000, 180.00000);
- CreateObject(19340, -2330.96997, -1786.30164, 479.49261, 0.00000, 0.00000, 180.00000);
- CreateObject(19340, -2324.45386, -1532.18958, 479.49261, 0.00000, 0.00000, 0.00000);
- CreateObject(19340, -2324.45386, -1532.18958, 479.49261, 180.00000, 0.00000, 0.00000);
- CreateObject(19340, -2324.45386, -1532.18958, 479.49261, 180.00000, 0.00000, 180.00000);
- CreateObject(19340, -2324.45386, -1532.18958, 479.49261, 0.00000, 0.00000, 180.00000);
- CreateObject(2774, -3118.87305, -1954.14490, 22.55961, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -3118.87305, -1954.14490, -0.11749, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2355.97290, -1546.12781, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2316.20874, -1550.66089, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2293.74927, -1563.65051, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2281.25635, -1578.67700, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2303.36914, -1556.22913, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2285.96509, -1569.40955, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2337.23169, -1547.02100, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2367.21338, -1546.70129, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2346.65527, -1546.66650, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2372.08545, -1767.79712, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2340.82373, -1789.28467, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2291.77051, -1744.95898, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2352.34253, -1782.33777, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2299.69678, -1755.35559, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2311.20776, -1769.72424, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2324.07227, -1784.20020, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(2774, -2324.07227, -1784.20020, 468.54233, 0.00000, 0.00000, 0.00000);
- CreateObject(9241, -2353.55151, -1678.50635, 484.82880, 0.00000, 0.00000, 0.00000);
- CreateObject(9241, -2353.35522, -1707.94373, 484.82880, 0.00000, 0.00000, 0.00000);
- CreateObject(16098, -2346.00537, -1487.02820, 488.06516, 0.00000, 0.00000, 0.00000);
- CreateObject(8038, -2351.49731, -1815.19922, 503.30771, 0.00000, 0.00000, 0.00000);
- CreateObject(7981, -2352.06055, -1760.85498, 487.80447, 0.00000, 0.00000, 0.00000);
- CreateObject(1682, -2345.54761, -1761.05750, 499.10861, 0.00000, 0.00000, 245.00000);
- ///////NEW/////////
- new Text:E_TenSecToStart;
- new Text:R_GetIntoPlanes;
- new Text:R_PrepareForTakeOf;
- new Text:R_StartOneByOne;
- new Text:E_NoCrashToTeam;
- new Text:E_TenMinLeft;
- new Text:R_TakeEnemyDown;
- new Text:E_NoReconnect;
- new Text:E_FiveMinLeft;
- new Text:R_MisionComplete;
- new Text:E_TwoMinEjectPlease;
- forward T_TenSecToStart();
- forward T_GetIntoPlanes();
- forward T_PrepareForTakeOf();
- forward T_StartOneByOne();
- forward T_NoCrashToTeam();
- forward T_TenMinLeft();
- forward T_TakeEnemyDown();
- forward T_NoReconnect();
- forward T_FiveMinLeft();
- forward T_MisionComplete();
- forward T_TwoMinEjectPlease();
- forward T_DelAllVehicles();
- //////NEW/////////
- public OnFilterScriptInit()
- {
- ////////TextDraw///////// (You can remake the text(using in textdraws))
- E_TenSecToStart = TextDrawCreate(149 ,370,"[EVENT]10 seconds to start AirportWars!GET OUT OF VEHICLES!");
- TextDrawLetterSize(E_TenSecToStart , 0.4, 1.0);
- R_GetIntoPlanes = TextDrawCreate(149 ,370,"[Radio]Get into planes!");
- TextDrawLetterSize(R_GetIntoPlanes , 0.4, 1.0);
- R_PrepareForTakeOf = TextDrawCreate(149 ,370,"[Radio]Prepare For TakeOff 10sec left!");
- TextDrawLetterSize(R_PrepareForTakeOf , 0.4, 1.0);
- R_StartOneByOne = TextDrawCreate(149 ,424,"[Radio]Start!One by one TakOFF!");
- TextDrawLetterSize(R_StartOneByOne , 0.4, 1.0);
- E_NoCrashToTeam = TextDrawCreate(149 ,449,"[EVENT]No Crashing to teammate!");
- TextDrawLetterSize(E_NoCrashToTeam , 0.4, 1.0);
- E_TenMinLeft = TextDrawCreate(149 ,370,"[EVENT]10 Mins Left");
- TextDrawLetterSize(E_TenMinLeft , 0.4, 1.0);
- E_FiveMinLeft = TextDrawCreate(149 ,370,"[EVENT]5 Mins Left");
- TextDrawLetterSize(E_FiveMinLeft , 0.4, 1.0);
- R_TakeEnemyDown = TextDrawCreate(149 ,370,"[Radio]Take enemy down by shooting or crashing!");
- TextDrawLetterSize(R_TakeEnemyDown , 0.4, 1.0);
- E_NoReconnect = TextDrawCreate(149 ,370,"[EVENT]No reconnecting to fight!");
- TextDrawLetterSize(E_NoReconnect , 0.4, 1.0);
- R_MisionComplete = TextDrawCreate(149 ,370,"[EVENT]Mission Complete... Let's land on nearest airport!");
- TextDrawLetterSize(R_MisionComplete , 0.4, 1.0);
- E_TwoMinEjectPlease = TextDrawCreate(149 ,370,"[EVENT]You have 2 min to land... Wehicles will be destroyed!");
- TextDrawLetterSize(E_TwoMinEjectPlease , 0.4, 1.0);
- ///////TextDraw/////////////
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, COLOR_RED, "[AirportWars] This Server Is using Airport Wars Mod made by RC_Luton!!");
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/awars", cmdtext, true, 10) == 0) //command to start mod
- {
- SendClientMessage(playerid, COLOR_RED, "Mod Started Succesfully");
- TextDrawShowForAll(E_TenSecToStart);
- SetTimer("T_TenSecToStart", 10000, false);
- return 1;
- }
- return 0;
- }
- ///////////////////////////////TIMER///////////////////////////////////
- public T_TenSecToStart() //current timer
- {
- TextDrawHideForAll(E_TenSecToStart);
- //RED_PLAYERS
- SetPlayerPos(0, 2016.1212,-2625.3450,13.5469); //1
- SetPlayerPos(2, 2011.1008,-2624.5168,13.5469); //2
- SetPlayerPos(4, 2005.8405,-2623.8135,13.5469); //3
- SetPlayerPos(6, 1999.5184,-2623.1338,13.5469); //4
- SetPlayerPos(8, 1993.3531,-2623.7563,13.5469); //5
- SetPlayerPos(10, 1986.4323,-2623.4226,13.5469); //6
- SetPlayerPos(12, 1981.1073,-2624.0623,13.5469); //7
- SetPlayerPos(14, 1975.2656,-2623.5510,13.5469); //8
- SetPlayerPos(16, 1969.5159,-2623.3574,13.5469); //9
- SetPlayerPos(18, 1964.6799,-2622.8376,13.5469); //10
- //BLUE_PLAYERS
- SetPlayerPos(1, -2332.6902,-1823.0282,484.242); //1
- SetPlayerPos(3, -2332.2905,-1819.4619,484.2426); //2
- SetPlayerPos(4, -2331.8879,-1815.4247,484.2426); //3
- SetPlayerPos(7, -2331.4233,-1811.8801,484.2426); //4
- SetPlayerPos(9, -2330.9319,-1809.2404,484.2426); //5
- SetPlayerPos(11, -2330.4497,-1807.1182,484.2426); //6
- SetPlayerPos(13, -2329.9631,-1804.6053,484.2426); //7
- SetPlayerPos(15, -2329.8396,-1801.8020,484.2426); //8
- SetPlayerPos(17, -2329.4341,-1798.2567,484.2426); //9
- SetPlayerPos(19, -2328.9480,-1794.5732,484.2426); //10
- //RED_RUSTLERS
- CreateVehicle(476, 1760.6018,-2593.3472,13.5469, 89.3852, 3, 3, -1); //1
- CreateVehicle(476, 1780.5809,-2593.6743,13.5469, 89.3852, 3, 3, -1); //2
- CreateVehicle(476, 1805.0050,-2593.4233,13.5469, 89.3852, 3, 3, -1); //3
- CreateVehicle(476, 1838.9233,-2594.2192,13.5469, 89.3852, 3, 3, -1); //4
- CreateVehicle(476, 1865.1741,-2593.1868,13.5469, 89.3852, 3, 3, -1); //5
- CreateVehicle(476, 1881.6252,-2592.7444,13.5469, 89.3852, 3, 3, -1); //6
- CreateVehicle(476, 1898.6128,-2593.4534,13.5469, 89.3852, 3, 3, -1); //7
- CreateVehicle(476, 1917.2668,-2592.8936,13.5469, 89.3852, 3, 3, -1); //8
- CreateVehicle(476, 1938.2861,-2594.0083,13.5469, 89.3852, 3, 3, -1); //9
- CreateVehicle(476, 1964.3821,-2592.8254,13.5469, 89.3852, 3, 3, -1); //10
- //BLUE_RUSTLERS
- CreateVehicle(476, -2307.3662,-1751.0397,484.2621, 359.8505, 2, 2, -1); //1
- CreateVehicle(476, -2307.3887,-1760.5782,484.2621, 359.8505, 2, 2, -1); //2
- CreateVehicle(476, -2307.1177,-1765.9125,484.2621, 359.8505, 2, 2, -1); //3
- CreateVehicle(476, -2307.4685,-1769.5769,484.2621, 359.8505, 2, 2, -1); //4
- CreateVehicle(476, -2307.4409,-1776.8506,484.2621, 359.8505, 2, 2, -1); //5
- CreateVehicle(476, -2307.5291,-1782.2936,484.2621, 359.8505, 2, 2, -1); //6
- CreateVehicle(476, -2307.2109,-1791.1349,484.2621, 359.8505, 2, 2, -1); //7
- CreateVehicle(476, -2307.0320,-1802.0167,484.2621, 359.8505, 2, 2, -1); //8
- CreateVehicle(476, -2307.1721,-1812.1504,484.2621, 359.8505, 2, 2, -1); //9
- CreateVehicle(476, -2306.9485,-1821.0416,484.2621, 359.8505, 2, 2, -1); //10
- SetTimer("T_GetIntoPlanes", 10000, false); //next timer
- }
- public T_GetIntoPlanes() //current timer
- {
- TextDrawShowForAll(R_GetIntoPlanes); //current textdraw
- SetTimer("T_PrepareForTakeOf", 20000, false); //next timer
- }
- public T_PrepareForTakeOf() //current timer
- {
- TextDrawHideForAll(R_GetIntoPlanes); //del prev textdraw
- TextDrawShowForAll(R_PrepareForTakeOf); //current textdraw
- SetTimer("T_StartOneByOne", 1000, false); //next timer
- }
- public T_StartOneByOne() //current timer
- {
- TextDrawHideForAll(R_PrepareForTakeOf); //del prev textdraw
- TextDrawShowForAll(R_StartOneByOne); //current textdraw
- SetTimer("T_NoCrashToTeam", 3000, false); //next timer
- }
- public T_NoCrashToTeam() //current timer
- {
- TextDrawHideForAll(R_StartOneByOne); //del prev textdraw
- TextDrawShowForAll(E_NoCrashToTeam); //current textdraw
- SetTimer("T_TenMinLeft", 300000, false); //next timer
- }
- public T_TenMinLeft() //current timer
- {
- TextDrawHideForAll(E_NoCrashToTeam); //del prev textdraw
- TextDrawShowForAll(E_TenMinLeft); //current textdraw
- SetTimer("T_MisionComplete", 300000, false); //next timer
- }
- public T_MisionComplete() //current timer
- {
- TextDrawHideForAll(E_TenMinLeft); //del prev textdraw
- TextDrawShowForAll(R_MisionComplete); //current textdraw
- SetTimer("T_TwoMinEjectPlease", 300000, false); //next timer
- }
- public T_TwoMinEjectPlease() //current timer
- {
- TextDrawHideForAll(R_MisionComplete); //del prev textdraw
- TextDrawShowForAll(E_TwoMinEjectPlease); //current textdraw
- SetTimer("T_DelAllVehicles", 300000, false); //next timer
- }
- public T_DelAllVehicles()
- {
- DestroyVehicle(476);
- SendClientMessageToAll(COLOR_GREEN, "The Airport Wars winner will be promoted by Admin.");
- SendClientMessageToAll(COLOR_GREEN, "If you have a problem with event, please tell Admin");
- SendClientMessageToAll(COLOR_YELLOW, "See you in next event :D");
- }
Advertisement
Add Comment
Please, Sign In to add comment