Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- */
- /*
- ###################################################################################
- # >>>: California Attack and Defense 1.2 . :<<< #
- # More versions will be posted... #
- # -Added a /heal timer. #
- # #
- # -Dm zones. #
- # #
- # - And more functions and commands. #
- # #
- # Credits: #
- # -[K4L] , [SOD] , [Cali] , [FAT] , [WTF] #
- # #
- #I Give thanks to [Cali]Bluntmaster13 and [Cali]TeoHaze9 and Banks For Helping Me #
- # Me and Blunt Stands as Owner in this GameMode. #
- #__________________________________________ #
- #WARNING: If you compile it and it has these Warnings #
- "Loose Identation" Its okay it still compiles. #
- #Then Your Succesful! #
- # IF YOU HAVE ANY PROBLEMS WITH THE GAMEMODE Dont post on SAMP Forums. #
- # #
- # -Email ME T9BoyRecordz@yahoo.com Add me on xfire: ChrOnicaL_ #
- # I sugges you Use Lux Admin or L admin for this gameMode. #
- #################################################################################*/
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT //- if you Uncomment this . You will have so much errors your compiler will Fail
- /* Blunt i will show you how to understand this script.
- Because you dont know shit wats down there v.v */
- //Blunt you need LuxAdmin or somthing for this. it doesnt save score,etc
- #pragma tabsize 0
- #include <a_samp> // Main Include , If you remove this ur fucked.
- #include <zcmd> // dont remove this we need this include for the commands
- #include <float> //These includes come with your server kit sa-mp.com
- #include <core>// These includes come with your server kit sa-mp.com
- #define WEAPONSHOP 7 // The Dialog of the weapon shop on spawn
- #define COLOR_GREEN 0x55EA15C8 //Colors. dont remove but u can change
- #define COLOR_RED 0xFF1A00C8
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define PocketMoney 1 // Amount player recieves on spawn.
- #define INACTIVE_PLAYER_ID 255
- #define GIVECASH_DELAY 1000 // Time in ms between /givecash command
- #define NUMVALUES 4
- #define CURRENT_MESSAGES 9 /*
- This the the amount of messages you have. This number must be the exact number at ALL times!
- */
- #define MESSAGE_COLOR 0x4169E1FF /*
- This is the color you want your random messages to be
- */
- #define MESSAGE_INTERVAL 70
- #define acolor 0xFF0000C8 // Attackers Color
- #define dcolor 0x3361CCC8 // Defenders Color
- #define msg 0x00AE00FF //Comamnd Color
- //--
- #define attackers 0 //DONT REMOVE VERY IMPORTANT!! This tells the script the teams
- #define defenders 1 // Same thing as above
- /*===================== TextDraw New's =================================*/
- new gTeam[MAX_PLAYERS]; //Dont remove. we need this for the team system
- new Text:side; // Textdraw on upperleft
- new Text:Textdraw1; //Textdraw
- new Text:Textdraw2;
- new Text:Enter; //Textdraw that says "California A/D"
- new RM[CURRENT_MESSAGES][128];
- new HealPlayTimer[MAX_PLAYERS];
- new HealTimer[MAX_PLAYERS];
- //heart Pickups
- new Heart1; //Heart Picups around SA
- new Heart2;
- new Heart3;
- new Heart4;
- new Heart5;
- new Heart6;
- new Heart7;
- new Heart8;
- new Heart9;
- new Heart10;
- new Heart11;
- new Heart12;
- new Heart13;
- new Heart14;
- new Heart15;
- new Heart16;
- new Heart17;
- new Heart18;
- new Heart19;
- new Heart20;
- //--Fowards--
- forward Givecashdelaytimer(playerid);
- forward SetupPlayerForClassSelection(playerid);
- forward SendPlayerFormattedText(playerid, const str[], define);
- forward public SendAllFormattedText(playerid, const str[], define);
- forward SendRandomMessage();
- new Float:Defenders[5][4] = {
- {1766.9980,-1891.8568,13.5611,254.6784},
- {1779.1295,-1884.3757,13.5606,191.3845},
- {1808.7755,-1904.4441,13.5749,355.8860},
- {1807.8085,-1938.4202,13.5469,94.2736},
- {1797.2606,-1939.2367,13.5469,8.1062}
- };
- new Float:Attackers[5][3] = {
- {2529.6211,-1667.6692,15.1689},
- {2538.6860,-1684.5251,19.5291},
- {2512.8345,-1699.3600,13.4202},
- {2459.1331,-1691.3274,13.5504},
- {2479.0669,-1641.0436,13.4420}
- };
- //Now under here are the Random Spawn Points // These are if you want it to be a TDM GameMode and they spawn in random areas.
- /* new Float:RandomSpawns[41][4] = {
- {1808.8184,-1882.7881,13.5823,293.1128},
- {1836.5785,-1888.2633,13.4221,80.6942},
- {1831.9009,-1831.9282,13.5854,38.3938},
- {1810.7362,-1808.8752,13.5430,289.3527},
- {1832.2484,-1759.4850,13.5469,314.7330},
- {1808.8867,-1685.7607,13.5327,268.3826},
- {1835.2510,-1405.5944,13.4297,280.5913},
- {1815.8778,-1415.3014,13.4297,5.8421},
- {2093.5884,-1340.9836,23.9844,83.0370},
- {2059.5654,-1311.0123,23.9844,6.5830},
- {1975.7882,-1157.6440,20.9467,85.5438},
- {1878.1571,-1127.1925,23.9319,79.5904},
- {1654.2014,-1074.7538,23.8984,351.7112},
- {1736.7021,-1097.6525,24.0781,263.8322},
- {1243.5371,-1068.7910,29.1691,266.9654},
- {1260.0127,-1269.2002,13.4812,4.8849},
- {1243.6494,-1527.8185,13.5605,352.8280},
- {1114.9290,-1620.8868,20.4766,78.5372},
- //
- {2419.3469,-2429.8337,13.6230,44.8289},
- {2498.8752,-2419.4092,13.3750,293.4496},
- {2501.9932,-2380.3438,13.3750,353.2968},
- {2553.5671,-2395.9836,13.3750,211.0421},
- {2453.1887,-2013.1144,13.6533,327.1449},
- {2387.8489,-2016.8330,13.6533,50.6373},
- {2289.2324,-2019.4301,13.6533,107.6645},
- {2211.0322,-1967.7113,13.6533,100.7711},
- {1699.9191,-2119.4443,14.6428,96.0711},
- {1660.0823,-2107.0403,14.6428,348.9101},
- {1574.9092,-2074.8279,24.8057,69.4375},
- {1107.8680,-2022.3411,68.3803,11.4703},
- {2198.8467,-1009.4924,64.5018,246.4491},
- {2478.3289,-1040.0984,64.9654,271.5160},
- {2571.9521,-1037.4706,69.1956,323.8431},
- {2715.1011,-1206.3417,67.3125,15.6886},
- {2601.7012,-1724.7435,15.9241,298.6079},
- {2545.7861,-1866.1107,4.5452,65.6541},
- {1394.8319,-1867.5815,13.5158,211.1871},
- {1569.9241,-1717.8478,6.5176,142.7114},
- {1550.8392,-1716.7369,6.5176,84.4308},
- {1534.0493,-1640.2776,6.5176,12.6768},
- {1576.4467,-1634.5928,13.5551,206.6320}
- };*/
- //It's alot i know.
- main()
- {
- print("\n----------------------------------");
- print(" California Los Santos A/D GameMode"); //Dont touch this. you might fuck it up
- print("Loaded 100% | Created By ChrOnic for Blunt"); //Dont touch this. you might fuck it up
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("California A/D"); // This is the name of the gamemode that will be displayed on your SA:MP Client
- UsePlayerPedAnims( 1 ); //If you remove this you will be running like a noob
- AllowAdminTeleport( 1 );
- //These are the teams
- AddPlayerClass(230,1808.8184,-1882.7881,13.5823,293.1128,24,200,27,200,34,200); // Attackers
- AddPlayerClass(231,1836.5785,-1888.2633,13.4221,80.6942,24,200, 27, 200, 34,200); // Defenders
- //THESE ARE THE RANDOM CARS IN LOS SANTOS!!
- #pragma tabsize 0
- AddStaticVehicle(421,264.6072,-1378.2855,52.9918,311.8310,30,1); // RandomVeh
- AddStaticVehicle(477,248.7180,-1356.6697,52.8628,303.4323,121,1); // RandomVeh
- AddStaticVehicle(481,256.0878,-1365.8092,52.6259,13.0796,6,6); // RandomVeh
- AddStaticVehicle(411,433.2665,-1241.5560,50.1149,105.4726,123,1); // RandomVeh
- AddStaticVehicle(405,422.8882,-1265.6318,51.4560,202.4528,40,1); // RandomVeh
- AddStaticVehicle(474,274.6150,-1267.9875,73.7077,127.3287,81,1); // RandomVeh
- AddStaticVehicle(560,1970.3135,-1456.7750,13.1736,274.3495,33,0); // randomcar
- AddStaticVehicle(416,2037.0115,-1431.9143,17.2117,178.4416,1,3); // randomcar
- AddStaticVehicle(481,2031.5826,-1407.2190,16.6960,43.1488,3,3); // randomcar
- AddStaticVehicle(560,1812.4166,-1370.4529,14.7856,268.3976,37,0); // 225Random
- AddStaticVehicle(451,1812.4681,-1366.8209,14.7858,270.3146,125,125); // 225Random
- AddStaticVehicle(411,1812.9199,-1363.4979,14.8083,267.6373,80,1); // 225Random
- AddStaticVehicle(481,1887.7192,-1368.9056,13.0790,184.6400,3,3); // 225Random
- AddStaticVehicle(481,1946.1586,-1367.4564,18.0943,85.7376,3,3); // 225Random
- AddStaticVehicle(481,1909.2948,-1414.8033,13.0872,0.4813,3,3); // 225Random
- AddStaticVehicle(481,1911.0076,-1414.4208,13.0828,1.1679,3,3); // 225Random
- AddStaticVehicle(466,2065.6868,-1739.0707,13.2889,269.7375,68,76); // 225Random
- AddStaticVehicle(567,2100.2546,-1783.2939,13.2648,348.9382,88,64); // 225Random
- AddStaticVehicle(400,2122.3899,-1782.5165,13.4806,355.5139,101,1); // 225Random
- AddStaticVehicle(448,2115.6975,-1790.2036,13.1408,94.8102,3,6); // 225Random
- AddStaticVehicle(448,2111.9597,-1790.5188,13.1369,94.8101,3,6); // 225Random
- AddStaticVehicle(471,2390.1270,-1717.4973,13.0853,179.1038,120,112); // 225Random
- AddStaticVehicle(451,2502.1853,-1953.9910,13.1268,357.2444,36,36); // 225Random
- AddStaticVehicle(599,2492.2969,-1953.6788,13.6139,180.4014,0,1); // 225Random
- AddStaticVehicle(429,2370.6926,-1927.2098,13.0626,358.7554,13,13); // 225Random
- AddStaticVehicle(429,2453.1096,-1992.9871,13.2282,177.9702,13,13); // 225Random
- AddStaticVehicle(401,2472.9326,-1994.1447,13.3267,183.0389,66,66); // 225Random
- AddStaticVehicle(413,2450.3528,-2024.7560,13.6336,357.0517,88,1); // 225Random
- AddStaticVehicle(416,2036.7933,-1439.0411,17.4656,184.8185,1,3); // 225Random
- AddStaticVehicle(416,2016.9316,-1409.9307,17.1414,270.1494,1,3); // 225Random
- AddStaticVehicle(407,1746.1768,-1457.2090,13.7677,270.3261,3,1); // 225Random
- AddStaticVehicle(521,1709.2639,-1491.3538,13.1061,83.9024,87,118); // 225Random
- AddStaticVehicle(521,1709.0372,-1494.7039,13.1020,79.7636,87,118); // 225Random
- AddStaticVehicle(521,1708.6506,-1498.6660,13.1074,81.5410,87,118); // 225Random
- AddStaticVehicle(408,1668.1761,-1888.0295,14.0941,90.8783,26,26); // 225Random
- AddStaticVehicle(521,1633.2709,-1897.1593,13.1061,166.5774,87,118); // 225Random
- AddStaticVehicle(406,1645.7076,-1903.6431,15.0846,13.7848,1,1); // 225Random
- AddStaticVehicle(560,2231.3730,-1753.6697,13.1728,278.4477,33,0); // 225Random
- AddStaticVehicle(579,2318.7014,-1719.4708,13.4729,180.3858,10,10); // 225Random
- AddStaticVehicle(471,2425.6284,-1927.8424,12.9296,166.5763,74,83); // 225Random
- AddStaticVehicle(400,1835.4059,-1274.8721,13.6949,275.8575,123,1); // randomcar
- AddStaticVehicle(401,1836.3602,-1176.5345,23.5017,82.6136,47,47); // randomcar
- AddStaticVehicle(560,2046.6768,-1335.6451,23.6050,265.7650,9,39); // random
- AddStaticVehicle(579,2091.0684,-1379.4265,23.8330,271.6078,42,42); // random
- AddStaticVehicle(579,2215.5518,-1363.1963,23.9161,269.1878,42,42); // random
- AddStaticVehicle(468,2215.6921,-1346.7581,23.6540,269.9586,46,46); // random
- AddStaticVehicle(567,2229.5059,-1352.9380,23.8535,92.5322,88,64); // random
- AddStaticVehicle(402,2500.3135,-1656.3329,13.2364,71.8192,13,13); // random
- AddStaticVehicle(411,2474.2185,-1701.5161,13.2505,352.2166,123,1); // random
- AddStaticVehicle(405,2503.9087,-1753.2493,13.2733,0.1173,24,1); // random
- AddStaticVehicle(468,2464.6143,-1772.0637,13.2261,93.3050,53,53); // random
- AddStaticVehicle(406,1267.6604,-1254.5192,14.8998,187.0718,11,68); // random
- AddStaticVehicle(416,1177.9988,-1340.8267,14.0550,266.2450,47,87); // random
- AddStaticVehicle(416,1177.3755,-1336.8113,14.0164,270.4577,47,87); // random
- AddStaticVehicle(412,1190.6277,-1311.7997,13.3121,0.0225,71,111); // random
- AddStaticVehicle(475,1221.5339,-1240.2534,15.6348,358.2213,77,105); // random
- AddStaticVehicle(489,1194.6244,-1153.9838,23.9169,84.5019,121,50); // random
- AddStaticVehicle(480,1143.4377,-1043.8590,31.5850,87.2436,16,112); // random
- AddStaticVehicle(492,1087.0428,-1068.0110,28.3608,175.0310,24,18); // random
- AddStaticVehicle(492,1066.1934,-1109.0537,24.1651,267.0142,24,18); // random
- AddStaticVehicle(477,1036.0603,-1235.8844,16.0595,0.5401,46,38); // random
- AddStaticVehicle(560,1970.3135,-1456.7750,13.1736,274.3495,33,0); // randomcar
- AddStaticVehicle(416,2037.0115,-1431.9143,17.2117,178.4416,1,3); // randomcar
- AddStaticVehicle(481,2031.5826,-1407.2190,16.6960,43.1488,3,3); // randomcar
- AddStaticVehicle(480,2192.5767,-1294.8546,23.7094,276.3352,12,12); // randomcar
- AddStaticVehicle(480,2295.5193,-1249.9797,23.7836,38.8108,12,12); // randomcar
- AddStaticVehicle(481,2310.4241,-1214.2953,23.5719,38.5057,46,46); // randomcar1
- AddStaticVehicle(481,2310.5620,-1211.0673,23.5884,74.3254,46,46); // randomcar1
- AddStaticVehicle(468,2217.3682,-1157.8646,25.3942,259.6291,46,46); // randomcar1
- AddStaticVehicle(468,2228.8816,-1156.3572,25.4881,81.0696,46,46); // randomcar1
- AddStaticVehicle(475,2195.6467,-1109.4281,24.8048,82.2319,9,39); // randomcar1
- AddStaticVehicle(475,2117.9858,-1103.5577,24.9992,62.5182,9,39); // randomcar1
- AddStaticVehicle(475,2042.7167,-1142.0585,24.0950,95.7062,9,39); // randomcar1
- AddStaticVehicle(517,1945.8110,-1130.9183,25.3951,82.6610,36,36); // randomcar1
- AddStaticVehicle(517,1934.5265,-1117.9117,26.3162,181.4786,36,36); // randomcar1
- AddStaticVehicle(521,1734.6891,-1352.6465,15.3373,359.8745,92,3); // randomcar1
- AddStaticVehicle(521,1736.1323,-1352.5347,15.3376,358.4503,92,3); // randomcar1
- AddStaticVehicle(521,1737.8824,-1352.9015,15.3412,355.6753,92,3); // randomcar1
- AddStaticVehicle(400,1704.3788,-1524.1062,13.4752,100.4439,4,1); // randomcar1
- AddStaticVehicle(462,1707.0503,-1501.7101,13.0615,139.3490,13,13); // randomcar1
- AddStaticVehicle(462,1709.0676,-1495.6334,13.1467,136.9108,13,13); // randomcar1
- AddStaticVehicle(492,1683.7859,-1613.4865,13.2453,181.4882,77,26); // randomcar1
- AddStaticVehicle(492,1722.4238,-1736.5752,13.2012,291.2990,77,26); // randomcar1
- AddStaticVehicle(474,1730.9852,-1748.6805,13.2871,356.4529,81,1); // randomcar1
- AddStaticVehicle(498,1774.9246,-1701.7892,13.5731,8.9225,13,120); // randomcar1
- AddStaticVehicle(498,1782.5962,-1702.5968,13.5789,359.3029,13,120); // randomcar1
- AddStaticVehicle(507,1802.4885,-1909.6531,13.2230,93.3326,42,42); // randomcar1
- AddStaticVehicle(507,1793.2288,-1931.6667,13.2131,357.1037,42,42); // randomcar1
- AddStaticVehicle(562,1770.0602,-1886.4817,13.2145,176.6043,35,1); // randomcar1
- AddStaticVehicle(562,1948.5908,-1887.9059,13.2055,93.2492,35,1); // randomcar1
- AddStaticVehicle(506,1972.8342,-1889.7692,13.2514,87.7500,6,6); // randomcar1
- AddStaticVehicle(434,2030.1285,-1912.9413,13.5059,347.1069,12,12); // randomcar1
- AddStaticVehicle(434,2086.6216,-1851.5275,13.4298,178.8836,12,12); // randomcar1
- AddStaticVehicle(494,2105.8989,-1824.7418,13.4506,283.3487,36,13); // randomcar1
- AddStaticVehicle(567,2101.1833,-1781.9144,13.2634,356.0846,99,81); // randomcar1
- AddStaticVehicle(448,2111.3220,-1787.9279,13.1581,259.4117,3,6); // randomcar1
- AddStaticVehicle(448,2122.8137,-1790.0756,13.1505,259.4118,3,6); // randomcar1
- AddStaticVehicle(471,2173.0408,-1668.0398,14.5674,219.5833,120,114); // randomcar1
- AddStaticVehicle(471,2169.4963,-1670.8383,14.5660,235.9074,120,114); // randomcar1
- AddStaticVehicle(471,2218.3264,-1644.4830,14.8810,145.9254,120,114); // randomcar1
- AddStaticVehicle(447,2616.7756,-1721.2317,23.2850,346.8567,75,2); // randomcar1
- AddStaticVehicle(567,2516.6248,-1672.2633,13.8170,243.3591,97,96); // randomcar1
- AddStaticVehicle(481,2530.9290,-1665.0559,14.6843,89.4652,26,1); // randomcar1
- AddStaticVehicle(466,2488.8308,-1683.8654,13.2028,274.5519,2,76); // randomcar1
- AddStaticVehicle(451,2507.4512,-1696.1692,13.2605,0.4078,16,16); // randomcar1
- AddStaticVehicle(431,1801.5470,-1859.9056,13.5924,270.1553,75,59); // randomcar1
- AddStaticVehicle(431,1730.9409,-1859.5150,13.5919,268.4056,75,59); // randomcar1
- AddStaticVehicle(481,1736.1141,-1797.4325,13.0303,173.1860,3,3); // randomcar1
- AddStaticVehicle(596,1730.0732,-1821.1807,13.2263,294.0952,0,1); // randomcar1
- AddStaticVehicle(596,1535.8956,-1677.2822,13.1012,357.9339,0,1); // randomcar1
- AddStaticVehicle(596,1535.9307,-1665.5228,13.1043,359.7242,0,1); // randomcar1
- AddStaticVehicle(490,1565.9264,-1709.4758,6.0168,1.5342,0,0); // randomcar1
- AddStaticVehicle(490,1562.7375,-1712.0101,6.0178,5.8535,0,0); // randomcar1
- AddStaticVehicle(490,1530.9646,-1688.5284,6.0214,85.1528,0,0); // randomcar1
- AddStaticVehicle(523,1544.1219,-1680.9518,5.4619,93.9404,0,0); // randomcar1
- AddStaticVehicle(523,1527.3182,-1637.3138,5.7852,4.9313,0,0); // randomcar1
- AddStaticVehicle(523,1530.5022,-1637.1833,5.7842,353.7144,0,0); // randomcar1
- AddStaticVehicle(523,1533.9999,-1637.6293,5.7888,355.2842,0,0); // randomcar1
- AddStaticVehicle(412,1596.4240,-1484.1556,13.4183,186.7886,10,8); // VoodooRANDOM
- AddStaticVehicle(567,1346.4165,-1460.5565,13.3499,237.6438,93,64); // VoodooRANDOM
- AddStaticVehicle(521,1321.7725,-1462.5181,13.1135,188.4888,74,74); // VoodooRANDOM
- AddStaticVehicle(400,1286.3042,-1475.1884,10.1391,271.0824,40,1); // VoodooRANDOM
- AddStaticVehicle(560,1216.2311,-1543.1189,13.2524,203.8903,37,0); // VoodooRANDOM
- AddStaticVehicle(560,1212.5684,-1561.9292,13.2518,120.9573,37,0); // VoodooRANDOM
- AddStaticVehicle(481,1162.9063,-1635.6737,13.5175,180.0132,1,1); // VoodooRANDOM
- AddStaticVehicle(481,1165.8063,-1635.3782,13.4934,190.2844,1,1); // VoodooRANDOM
- AddStaticVehicle(579,1099.0751,-1754.7942,13.2885,271.6516,53,53); // VoodooRANDOM
- AddStaticVehicle(416,1062.2000,-1740.7598,13.6285,92.5706,1,3); // VoodooRANDOM
- AddStaticVehicle(492,1088.7184,-1800.6427,13.3864,356.4325,71,107); // VoodooRANDOM
- AddStaticVehicle(492,935.5148,-1739.6309,13.3287,288.8378,71,107); // VoodooRANDOM
- AddStaticVehicle(461,933.7229,-1627.7219,13.1301,72.9316,37,1); // VoodooRANDOM
- AddStaticVehicle(461,911.5280,-1624.3489,13.1155,313.4930,37,1); // VoodooRANDOM
- AddStaticVehicle(411,751.8388,-1579.6703,13.6532,76.2970,106,1); // VoodooRANDOM
- AddStaticVehicle(411,677.2415,-1600.3490,12.9617,180.6135,106,1); // VoodooRANDOM
- AddStaticVehicle(461,600.8544,-1505.7145,14.6112,103.0600,53,1); // VoodooRANDOM
- AddStaticVehicle(461,598.4308,-1515.4065,14.6565,267.6634,53,1); // VoodooRANDOM
- AddStaticVehicle(408,608.8957,-1509.5103,15.4786,25.5207,26,26); // VoodooRANDOM
- AddStaticVehicle(408,494.7170,-1570.8064,18.3705,151.5372,26,26); // VoodooRANDOM
- AddStaticVehicle(579,479.7920,-1510.1719,20.4000,351.1806,6,6); // VoodooRANDOM
- AddStaticVehicle(411,480.2924,-1487.8425,19.7837,0.6922,6,6); // VoodooRANDOM
- AddStaticVehicle(480,489.5254,-1494.4470,20.0239,173.7755,6,6); // VoodooRANDOM
- AddStaticVehicle(480,257.5963,-1546.8915,32.5911,329.1994,6,6); // VoodooRANDOM
- AddStaticVehicle(560,342.5453,-1443.1919,34.1403,274.2883,41,29); // VoodooRANDOM
- AddStaticVehicle(560,615.8173,-1300.8176,14.6743,158.2610,41,29); // VoodooRANDOM
- AddStaticVehicle(521,695.1287,-1180.8324,15.0285,246.7587,75,13); // VoodooRANDOM
- AddStaticVehicle(521,802.0692,-1006.0460,29.1358,62.7831,75,13); // VoodooRANDOM
- AddStaticVehicle(521,711.8851,-819.7153,40.5458,274.5590,75,13); // VoodooRANDOM
- AddStaticVehicle(521,795.3513,-841.3265,60.1985,21.0989,75,13); // VoodooRANDOM
- AddStaticVehicle(567,1242.9006,-804.7308,84.0046,181.1416,0,0); // VoodooRANDOM
- AddStaticVehicle(411,1248.2283,-804.4443,83.8677,177.5631,0,0); // VoodooRANDOM
- AddStaticVehicle(451,1254.0018,-804.6456,83.8472,179.2645,0,0); // VoodooRANDOM
- AddStaticVehicle(487,2533.0151,-1677.8239,20.1067,87.1021,3,3); // AttackersHelicopter
- AddStaticVehicle(411,1776.7756,-1933.8250,13.1127,268.0663,169,169); // DefendersCar
- AddStaticVehicle(560,1776.9460,-1926.2177,13.0923,270.2867,169,169); // DefendersCar
- AddStaticVehicle(451,1777.1689,-1921.7804,13.0931,273.6814,16,16); // DefendersCar
- AddStaticVehicle(562,1776.5083,-1917.4114,13.0463,275.8819,169,81); // DefendersCar
- AddStaticVehicle(506,1804.4371,-1917.3187,13.0984,90.5702,169,169); // DefendersCar
- AddStaticVehicle(579,1804.7604,-1921.4863,13.2815,88.0001,169,169); // DefendersCar
- AddStaticVehicle(412,1804.6195,-1925.0085,13.2264,85.1013,169,169); // DefendersCar
- AddStaticVehicle(402,1765.4457,-1904.7266,13.3990,270.1042,169,169); // DefendersCar
- AddStaticVehicle(411,1786.8135,-1884.9928,13.2041,270.7458,169,169); // DefendersCar
- AddStaticVehicle(521,1751.5342,-1898.5939,13.1243,0.6872,169,169); // DefendersCar
- AddStaticVehicle(461,1751.5277,-1907.3651,13.1388,0.0782,169,169); // DefendersCar
- AddStaticVehicle(521,2509.3474,-1652.4792,13.2907,149.1340,3,3); // AttackersFCR1
- AddStaticVehicle(521,2511.6184,-1654.1947,13.3565,136.6088,3,3); // AttackersFCR2
- AddStaticVehicle(521,2514.1272,-1680.8390,13.0023,45.4121,3,3); // AttackersFCR3
- AddStaticVehicle(498,2558.0652,-1715.3855,1.7092,178.9127,3,3); // AttackersBoxville
- AddStaticVehicle(560,2483.9873,-1653.1343,13.1392,225.4599,3,3); // AttackersSultan
- AddStaticVehicle(498,1714.7660,-1965.1818,14.1845,86.3373,169,169); // DefendersBoxville
- AddStaticVehicle(412,1713.8467,-1978.3010,13.9550,270.9541,169,169); // DefendersVoodoo
- AddStaticVehicle(520,1547.1715,-1355.0485,330.1935,267.6404,90,55); // Hydra
- AddStaticVehicle(560,2403.5764,-1644.6361,13.2523,179.8964,3,3); // UpdateAttackers
- AddStaticVehicle(519,1557.2832,-2453.1499,14.4763,185.0358,41,74); // Random
- AddStaticVehicle(519,1643.3871,-2459.7290,14.4738,182.4754,41,74); // Random
- AddStaticVehicle(485,1926.6898,-2266.5393,13.2020,96.8304,125,73); // Random
- AddStaticVehicle(485,1931.3506,-2281.1675,13.2060,120.2008,125,73); // Random
- AddStaticVehicle(485,1929.8711,-2310.0940,13.2058,125.7862,125,73); // Random
- AddStaticVehicle(487,1706.2952,-2463.8284,13.8082,171.5582,3,3); // Random
- AddStaticVehicle(487,1737.5739,-2457.5571,13.7944,190.2065,169,169); // Random
- AddStaticVehicle(487,1785.4495,-2456.8838,13.8497,196.1091,3,3); // Random
- AddStaticVehicle(487,1833.4270,-2467.0852,13.8813,186.4737,169,169); // Random
- //If you have some vehicles, objects paste them under here.
- AddRandomMessage("Your random ASS MESSAGE");
- AddRandomMessage("Your random ASS MESSAGE");
- AddRandomMessage("Your random ASS MESSAGE");
- AddRandomMessage("Your random ASS MESSAGE");
- AddRandomMessage("Your random ASS MESSAGE");
- AddRandomMessage("Your random ASS MESSAGE");
- AddRandomMessage("Your random ASS MESSAGE");
- AddRandomMessage("Your random ASS MESSAGE");
- AddRandomMessage("Your random ASS MESSAGE");
- SetTimer("SendRandomMessage", MESSAGE_INTERVAL * 1000, 1);
- // The Heart Pickups
- Heart1 = CreatePickup(1240, 19 ,1976.7396, -1546.6586, 13.3490,-1);
- Heart2 = CreatePickup(1240, 19 , 2112.9375,-1498.9619,10.4294,-1);
- Heart3 = CreatePickup(1240, 19 ,2120.8677 ,-1591.1355 ,13.1144 ,-1);
- Heart4 = CreatePickup(1240, 19 ,2626.7759, -1489.0272 ,16.4295,-1);
- Heart5 = CreatePickup(1240, 19 ,431.3342, -1747.8964 ,9.1956,-1);
- Heart6 = CreatePickup(1240, 19 ,2181.7749, -1261.9252, 24.2770,-1);
- Heart7 = CreatePickup(1240, 19 ,1636.7003, -1463.5439, 13.5469,-1);
- Heart8 = CreatePickup(1240, 19 ,2154.9019, -1920.7823 ,12.6241,-1);
- Heart9 = CreatePickup(1240, 19 ,2253.2888, -1698.9725 ,13.7534,-1);
- Heart10 = CreatePickup(1240,19 ,2539.8081,-1922.3840,13.5469,1);
- Heart11 = CreatePickup(1240,19 ,2300.0754,-1691.1921,13.5469,1);
- Heart12 = CreatePickup(1240,19 ,1982.5979,-1701.8917,15.9688,1);
- Heart13 = CreatePickup(1240,19 ,1700.6897,-1800.9387,13.5716,1);
- Heart14 = CreatePickup(1240, 19 ,1378.0306,-1817.3898,13.5469,1);
- Heart15 = CreatePickup(1240, 19,1529.6206,-1702.2958,6.2252,1);
- Heart16 = CreatePickup(1240, 19,1643.9694,-1692.8895,20.4633,1);
- Heart17 = CreatePickup(1240, 19, 2055.5908,-2300.9314,13.5469,1);
- Heart18 = CreatePickup(1240, 19, 1898.2147,-2691.7661,13.5532,1);
- Heart19 = CreatePickup(1240, 19, 1911.1473,-1777.7311,13.3828,1);
- Heart20 = CreatePickup(1240, 19, 2351.0508,-1634.3433,16.2954,1);
- //End of heart Pickups
- //--3D Text Labels--//
- Create3DTextLabel("Attackers Home", 0xFF0000C8, 2514.2524, -1665.3617, 13.5748, 70.0, 0, 1);
- Create3DTextLabel("Defenders Home", dcolor, 1779.5554, -1900.8676, 13.3890,50.0,0,1);
- //Text Drawsssssssssssssssssssssssss
- // In OnGameModeInit
- Textdraw1 = TextDrawCreate(106.5 ,173 , "Attackers"); // Attackers textdraw
- TextDrawFont(Textdraw1 , 3);
- TextDrawLetterSize(Textdraw1 , 0.5, 3.5);
- TextDrawColor(Textdraw1 , 0xff0000FF);
- TextDrawSetOutline(Textdraw1 , false);
- TextDrawSetProportional(Textdraw1 , true);
- TextDrawSetShadow(Textdraw1 , 1);
- Textdraw2 = TextDrawCreate(106.5 ,173 , "Defenders"); // Attackers textdraw
- TextDrawFont(Textdraw2 , 3);
- TextDrawLetterSize(Textdraw2 , 0.5, 3.5);
- TextDrawColor(Textdraw2 , 0x2247DDC8);
- TextDrawSetOutline(Textdraw2 , false);
- TextDrawSetProportional(Textdraw2 , true);
- TextDrawSetShadow(Textdraw2 , 1);
- Enter = TextDrawCreate(490.5 ,-1 , "California A/D");
- TextDrawFont(Enter , 3);
- TextDrawLetterSize(Enter , 0.5, 3.5);
- TextDrawColor(Enter , 0x000000FF);
- TextDrawSetOutline(Enter , false);
- TextDrawSetProportional(Enter , true);
- TextDrawSetShadow(Enter , 1);
- side = TextDrawCreate(499.5 ,113 , "Los Santos TDM");
- TextDrawFont(side , 3);
- TextDrawLetterSize(side , 0.4, 2.8000000000000003);
- TextDrawColor(side , 0xff0000FF);
- TextDrawSetOutline(side , false);
- TextDrawSetProportional(side , true);
- TextDrawSetShadow(side , 1);
- return 1;
- }
- public OnGameModeExit() //Dont fuck with this, i mean it
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- //This is when they connect they come to rwquest class
- switch(classid)
- {
- case 0:
- {
- gTeam[playerid] = attackers;
- TextDrawShowForPlayer(playerid,Textdraw1);
- SetPlayerPos(playerid, 2498.8560,-1670.1626,13.3452);
- SetPlayerCameraPos(playerid, 2490.7717,-1670.5093,13.3359);
- SetPlayerCameraLookAt(playerid, 2494.5115,-1670.5302,13.3359);
- SetPlayerFacingAngle(playerid,86.8002);
- TextDrawHideForPlayer(playerid,Textdraw2);
- }
- case 1:
- {
- gTeam[playerid] = defenders;
- TextDrawHideForPlayer(playerid,Textdraw1);
- SetPlayerPos(playerid, 2113.9109,-1781.5278,13.3887);
- SetPlayerFacingAngle(playerid,8298);
- SetPlayerCameraPos(playerid,2113.6770,-1769.2032,13.3947);
- SetPlayerCameraLookAt(playerid,2113.7173,-1773.7124,13.3925);
- TextDrawShowForPlayer(playerid,Textdraw2);
- }
- }
- {
- }
- /*TextDrawShowForPlayer(playerid,side);
- TextDrawShowForPlayer(playerid,connect);
- SetPlayerPos(playerid, 2498.8560,-1670.1626,13.3452);
- SetPlayerCameraPos(playerid, 2490.7717,-1670.5093,13.3359);
- SetPlayerCameraLookAt(playerid, 2494.5115,-1670.5302,13.3359);
- SetPlayerFacingAngle(playerid,86.8002);*/
- return 1;
- }
- //This is where you change the team colors
- SetPlayerToTeamColour(playerid)
- {
- if(gTeam[playerid] == attackers)
- {
- SetPlayerColor(playerid,acolor); //Attackers color
- }
- else if(gTeam[playerid] == defenders)
- {
- SetPlayerColor(playerid,dcolor); //Defenders Color
- }
- }
- #pragma tabsize 0
- public OnPlayerConnect(playerid)
- {
- //Connect messages
- TextDrawShowForPlayer(playerid,Enter);
- SetPlayerTime(playerid,12,0); //noon
- SetPlayerTime(playerid,12);
- SendClientMessage(playerid,msg,"Welcome to the Californian A/D Server");
- SendClientMessage(playerid,msg,"Type /help for more info");
- //SetPlayerColor(playerid,0xFE0101FF);
- new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "{E3D3D9}%s has joined the [Cali] A/D server.", name);
- SendClientMessageToAll(0xC4C4C4FF, string);
- TextDrawShowForPlayer(playerid,Textdraw1);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "{E3D3D9}%s has left the server.", name);
- SendClientMessageToAll(0xC4C4C4FF, string);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(gTeam[playerid] == defenders) // Replace gTeam with the variable that holds the player's team.
- {
- new x = random(sizeof Defenders); // Create a variable with a random number.
- SetPlayerPos(playerid, Defenders[x][0], Defenders[x][1], Defenders[x][2]); // Set the player's position to the co-ords corresponding with the random number.
- }
- if(gTeam[playerid] == attackers) // Replace gTeam with the variable that holds the player's team.
- {
- new x = random(sizeof Attackers); // Create a variable with a random number.
- SetPlayerPos(playerid, Attackers[x][0], Attackers[x][1], Attackers[x][2]);
- }
- /*new Random = random(sizeof(RandomSpawns));
- SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpa
- //This is the dialog when they spawn v.vwns[Random][1], RandomSpawns[Random][2]);
- SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);*/ //Uncomment this for Basic TDM
- ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{249E43}Pistols\n{249E43}Sub-Machine Gun\n{249E43}Shotguns\n{249E43}Armours\n{249E43}SMG\n{249E43}Assault", "Select", "Cancel");
- SetPlayerToTeamColour(playerid); // calls the custom function
- TextDrawHideForPlayer(playerid,Textdraw1);
- GivePlayerWeapon(playerid,31,2500);
- TextDrawHideForPlayer(playerid,Textdraw2);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
- SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
- GameTextForPlayer(playerid, "~w~Wasted", 3000, 0);
- GivePlayerMoney(killerid,2000); //Dont remove. this rewards the player when they kill someone
- SendClientMessage(killerid,0x00AE00FF,"Excellent Kill +2000$ and +1 Score");
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- ///__________________________ My Anti - Ask for Admin. all owners hate when players ask for admin right?
- if(text[strfind(text,"i want admin", true)]) {
- SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
- return 0; //Don't send to chat
- }
- if(text[strfind(text,"i want my admin", true)]) {
- SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
- return 0; //Don't send to chat
- }
- if(text[strfind(text,"can i be admin", true)]) {
- SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
- return 0; //Don't send to chat
- }
- if(text[strfind(text,"give me my admin", true)]) {
- SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
- return 0; //Don't send to chat
- }
- if(text[strfind(text,"i want to admin", true)]) {
- SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
- return 0; //Don't send to chat
- }
- if(text[strfind(text,"i want to be admin", true)]) {
- SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
- return 0; //Don't send to chat
- }
- if(text[strfind(text,"give me admin", true)]) {
- SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
- return 0; //Don't send to chat
- }
- if(text[strfind(text,"give me minigun admin", true)]) {
- SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
- return 0; //Don't send to chat
- }
- if(text[strfind(text,"Fuck this server", true)]) {
- SendClientMessage(playerid, 0xFFFFFFC8, "Fuck you to why dont you leave");
- return 0; //Don't send to chat
- }
- if(text[strfind(text,"i need admin", true)]) {
- SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
- return 0; //Don't send to chat
- }
- if(text[strfind(text,"i want admin now", true)]) {
- SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
- return 0; //Don't send to chat
- }
- if(text[strfind(text,"admin make me admin", true)]) {
- SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
- return 0; //Don't send to chat
- }
- if(text[strfind(text,"give me admin", true)]) {
- SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
- return 0; //Don't send to chat
- }
- if(text[0] == '!')
- {
- new string[128];
- GetPlayerName(playerid, string, sizeof(string));
- format(string, sizeof(string), "[TeamChat] %s (%d): %s", string, playerid, text[1]);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, GetPlayerColor(playerid), string);
- }
- return 0;
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new string[256];
- new playermoney;
- new sendername[MAX_PLAYER_NAME];
- new giveplayer[MAX_PLAYER_NAME];
- new cmd[256];
- new giveplayerid, moneys, idx;
- cmd = strtok(cmdtext, idx);
- if(strcmp(cmd, "/gc", true) == 0) {
- new tmp[256];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gc [playerid] [amount]");
- return 1;
- }
- giveplayerid = strval(tmp);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gc [playerid] [amount]");
- return 1;
- }
- moneys = strval(tmp);
- //printf("givecash_command: %d %d",giveplayerid,moneys);
- if (IsPlayerConnected(giveplayerid)) {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- playermoney = GetPlayerMoney(playerid);
- if (moneys > 0 && playermoney >= moneys) {
- GivePlayerMoney(playerid, (0 - moneys));
- GivePlayerMoney(giveplayerid, moneys);
- format(string, sizeof(string), "You have sent %s $%d.", giveplayer, moneys);
- SendClientMessage(playerid,0x6CE11EC8 , string);
- format(string, sizeof(string), "You have recieved $%d from %s(player: %d).", moneys, sendername, playerid);
- SendClientMessage(giveplayerid, msg, string);
- printf("%s(playerid:%d) has transfered %d to %s(playerid:%d)",sendername, playerid, moneys, giveplayer, giveplayerid);
- }
- else {
- SendClientMessage(playerid, COLOR_RED, "Not Enough Cash!.");
- }
- }
- else {
- format(string, sizeof(string), "%d is not an active player.", giveplayerid);
- SendClientMessage(playerid, COLOR_RED, string);
- }
- return 1;
- }
- return 0;
- }
- strtok(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' '))
- {
- index++;
- }
- new offset = index;
- new result[20];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
- {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == Heart1)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart2)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart3)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart4)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart5)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart6)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart7)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart8)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart9)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart10)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart11)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart12)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart13)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart14)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart15)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart16)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart17)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart18)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart19)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- if(pickupid == Heart20)
- {
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
- return 1;
- }
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- #pragma tabsize 0
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == WEAPONSHOP)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, WEAPONSHOP+1, DIALOG_STYLE_LIST, "Pistols", "9mm\t\t\t$2000\nSilenced 9mm\t\t$6000\nDesert Eagle\t\t$1200", "Select", "Cancel");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, WEAPONSHOP+2, DIALOG_STYLE_LIST, "Sub-Machine Gun", "Tec9\t\t\t$3000\nMicro SMG\t\t$5000", "Select", "Cancel");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, WEAPONSHOP+3, DIALOG_STYLE_LIST, "Shotguns", "Shotgun\t\t\t$6000\nSawnoff Shotgun\t\t$8000\nCombat Shotgun\t\t$1000", "Select", "Cancel");
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, WEAPONSHOP+4, DIALOG_STYLE_LIST, "Armours", "Armour\t\t\t$2000", "Select", "Cancel");
- }
- if(listitem == 4)
- {
- ShowPlayerDialog(playerid, WEAPONSHOP+5, DIALOG_STYLE_LIST, "SMG", "MP5\t\t\t$2000", "Select", "Cancel");
- }
- if(listitem == 5)
- {
- ShowPlayerDialog(playerid, WEAPONSHOP+6, DIALOG_STYLE_LIST, "Assault", "AK47\t\t$3500\nM4\t\t$4500", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == WEAPONSHOP+1)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) <200)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -2000);
- GivePlayerWeapon(playerid,22,30);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a 9mm! ($2000)");
- ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{249E43}Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid) <600)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -6000);
- GivePlayerWeapon(playerid,23,30);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Silenced 9mm! ($600)");
- ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{249E43}Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- if(listitem == 2)
- {
- if(GetPlayerMoney(playerid) <1200)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -1200);
- GivePlayerWeapon(playerid,24,30);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Desert Eagle! ($1200)");
- ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == WEAPONSHOP+2)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) <300)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -3000);
- GivePlayerWeapon(playerid,32,30);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Tec9! ($3000)");
- ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid) <500)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -5000);
- GivePlayerWeapon(playerid,28,30);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Micro SMG! ($5000)");
- ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == WEAPONSHOP+3)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) <600)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -6000);
- GivePlayerWeapon(playerid,25,15);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Shotgun! ($6000)");
- ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid) <800)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -8000);
- GivePlayerWeapon(playerid,26,15);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Sawnoff Shotgun (8000$)");
- ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
- }
- if(listitem == 2)
- {
- if(GetPlayerMoney(playerid) <1000)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -1000);
- GivePlayerWeapon(playerid,27,15);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Combat Shotgun (1000$)");
- ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == WEAPONSHOP+4)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) <200)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -1200);
- SetPlayerArmour(playerid, 100);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Armour! ($1200)");
- ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == WEAPONSHOP+5)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) <2000)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -2000);
- GivePlayerWeapon(playerid,29,30);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a MP5 (2000$)");
- ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == WEAPONSHOP+6)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) <3500)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -3500);
- GivePlayerWeapon(playerid,30,120);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a AK47 (3500$)");
- ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid) <4500)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -4500);
- GivePlayerWeapon(playerid,31,120);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a M4 (4500$)");
- ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
- }
- }
- return 1;
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- //These are the dm's
- CMD:dm1(playerid,params[])
- {
- new string[256], pname[MAX_PLAYER_NAME];
- SetPlayerInterior(playerid, 0);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- SetPlayerPos(playerid,879.2659,-1247.3887,15.6097);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 24, 1337);
- GivePlayerWeapon(playerid, 27, 1337);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerPlaySound(playerid, 1039, 0, 0, 0);
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), " %s has went to DeatMach 1 [/Dm1] (Deagle,Spaz Combo)", pname);
- SendClientMessageToAll(0xF79709C8, string);
- return 1;
- }
- //NEW HERE 0xF79709C8
- //0x1555EAC8
- CMD:dm2(playerid,params[])
- {
- new string[256], pname[MAX_PLAYER_NAME];
- SetPlayerInterior(playerid, 0);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- SetPlayerPos(playerid,1012.0277,-2172.6189,12.9878);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 24, 1337);
- GivePlayerWeapon(playerid, 34, 1337);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerPlaySound(playerid, 1039, 0, 0, 0);
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), " %s has went to DeatMach 2 [/Dm2] (Deagle,Sniper Combo)", pname);
- SendClientMessageToAll(0xF79709C8, string);
- return 1;
- }
- CMD:dm3(playerid,params[])
- {
- new string[256], pname[MAX_PLAYER_NAME];
- SetPlayerInterior(playerid, 0);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- SetPlayerPos(playerid,1584.4813,-1717.9739,6.2188);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 31, 1337);
- GivePlayerWeapon(playerid, 29, 1337);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerPlaySound(playerid, 1039, 0, 0, 0);
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), " %s has went to DeatMach 3 [/Dm3] (M4,MP5 Combo)", pname);
- SendClientMessageToAll(0xF79709C8, string);
- return 1;
- }
- CMD:dm4(playerid,params[])
- {
- new string[256], pname[MAX_PLAYER_NAME];
- SetPlayerInterior(playerid, 0);
- SetPlayerHealth(playerid, 100);
- SetPlayerInterior(playerid, 16);
- SetPlayerArmour(playerid, 100);
- SetPlayerPos(playerid,1600.9838,1581.1826,10.8203);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 34, 1337);
- GivePlayerWeapon(playerid, 25, 1337);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerPlaySound(playerid, 1039, 0, 0, 0);
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), " %s has went to DeatMach 3 [/Dm3] (Shotgun,Sniper Combo)", pname);
- SendClientMessageToAll(0xF79709C8, string);
- return 1;
- }
- CMD:dm5(playerid,params[])
- {
- new string[256], pname[MAX_PLAYER_NAME];
- SetPlayerInterior(playerid, 0);
- SetPlayerHealth(playerid, 100);
- SetPlayerInterior(playerid, 16);
- SetPlayerArmour(playerid, 100);
- SetPlayerPos(playerid,-1396.54, 1276.64, 1039.86);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 30, 1337);
- GivePlayerWeapon(playerid, 24, 1337);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, 16);
- PlayerPlaySound(playerid, 1039, 0, 0, 0);
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), " %s has went to DeatMach 3 [/Dm5] (Deagle,AK-47 Combo)", pname);
- SendClientMessageToAll(0xF79709C8, string);
- return 1;
- }
- CMD:dm6(playerid,params[])
- {
- new string[256], pname[MAX_PLAYER_NAME];
- SetPlayerInterior(playerid, 0);
- SetPlayerHealth(playerid, 100);
- SetPlayerInterior(playerid, 16);
- SetPlayerArmour(playerid, 100);
- SetPlayerPos(playerid,1389.0695,2120.5022,11.0234);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 26, 1337);
- GivePlayerWeapon(playerid, 32, 1337);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, 16);
- PlayerPlaySound(playerid, 1039, 0, 0, 0);
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), " %s has went to DeatMach 3 [/Dm6] (Tec9,Sawn-Off Combo)", pname);
- SendClientMessageToAll(0xF79709C8, string);
- return 1;
- }
- CMD:help(playerid,params[])
- {
- SendClientMessage(playerid,msg,"This is a A/D TDM Server");
- SendClientMessage(playerid,msg,"You can Kill people in this server for Cash");
- SendClientMessage(playerid,msg,"Train your A/D Skills and become the Best");
- SendClientMessage(playerid,msg,"You Spawn At your Team Base In Los Santos");
- SendClientMessage(playerid,msg,"With Spaz,Dealge,Sniper and M4. Enjoy and Have fun");
- return 1;
- }
- CMD:credits(playerid,params[])
- {
- SendClientMessage(playerid,msg,"This GameMode Was Created by ChronicaL_");
- SendClientMessage(playerid,msg,"Special Thanks: Blunt,LST Community and K4L");
- return 1;
- }
- CMD:dmlist(playerid,params[])
- {
- SendClientMessage(playerid,msg,"To go to a Deathmatch arena here are the commands");
- SendClientMessage(playerid,msg,"/Dm1-6 ");
- return 1;
- }
- CMD:serverhelp(playerid,params[])
- {
- SendClientMessage(playerid,0x42CC33C8,"California A/D | ServerHelp");
- SendClientMessage(playerid,0x4066BFC8,"To TeamChat Type ! Before a Message");
- SendClientMessage(playerid,0x4066BFC8,"/Heal to Heal yourself.");
- return 1;
- }
- CMD:rules(playerid,params[])
- {
- SendClientMessage(playerid,msg,"California A/D | Rules");
- SendClientMessage(playerid,msg,"1.No teamkilling");
- SendClientMessage(playerid,msg,"2.No Hacking/Cheating");
- SendClientMessage(playerid,msg,"3.Dont use hack Mods suck as SuperMan,etc Weapon mods allowed see more /mods");
- SendClientMessage(playerid,msg,"4.Dont Advertise your server, You can advertise your clan and your clan website");
- return 1;
- }
- CMD:q(playerid,params[])
- {
- SendClientMessage(playerid,msg,"Why you Leave? Rage Quit?");
- return 1;
- }
- CMD:cmds(playerid,params[])
- {
- SendClientMessage(playerid,msg,"California A/D | Commands");
- SendClientMessage(playerid,msg,"/Rules /dm1-6 /credits /heal /forum");
- return 1;
- }
- CMD:forum(playerid,params[])
- {
- SendClientMessage(playerid,msg,"Right your forum name here");
- return 1;
- }
- CMD:heal(playerid,params[])
- {
- if(HealTimer[playerid] == 1)
- return SendClientMessage(playerid, acolor, "You can use this command once every 5 minutes!");
- SetPlayerHealth(playerid,100);
- HealTimer[playerid] = 1;
- HealPlayTimer[playerid]= SetTimerEx("HealReal", 300000, false, "d", playerid);
- return 1;
- }
- forward HealReal(playerid);
- public HealReal(playerid)
- {
- HealTimer[playerid] = 0; // here he's able to use /search again.
- SendClientMessage(playerid,0x42CC33C8, "Now you can use the command /heal again.");
- return 1;
- }
- //See how it says "msg" because thats a defined color i placed at the top of the script.
- /* Okay Blunt if you want to Make a command.
- Do the following steps below.
- Just write this
- CMD:yourcmd(playerid,params[])
- {
- //Function goes here. like setplayerpos, setplayerhealth , SendClientmessage
- return 1; // This tells the script to end the command. if not it will have major errors
- } // dont ever remove this
- */
- /* GameMode was Made By chronic On Saturday , August 11th , 2012 */
- //---Random Message System ---//
- public SendRandomMessage()
- {
- static lastmessage = 0;
- new rand = random(CURRENT_MESSAGES);
- while(rand == lastmessage && CURRENT_MESSAGES != 1) { rand = random(CURRENT_MESSAGES); }
- lastmessage = rand;
- SendClientMessageToAll(MESSAGE_COLOR, RM[lastmessage]);
- }
- stock AddRandomMessage(text[])
- {
- for(new m; m < CURRENT_MESSAGES; m++)
- {
- if(!strlen(RM[m]))
- {
- strmid(RM[m], text, 0, 127);
- return 1;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement