15.08.2011, 11:05
Hey I put my airstrike on filterscript i load it
But when i load it, it works fine except when i click the AirCluster it just disappear nothing happens
is this a bug from my gamemode? or a bug or i need new include?
I'm using 0.3c R2 to make Server
Heres The Whole Code of my Gamemode if you need to fix it, fix it!
Please Help Me Fast
But when i load it, it works fine except when i click the AirCluster it just disappear nothing happens
is this a bug from my gamemode? or a bug or i need new include?
I'm using 0.3c R2 to make Server
Heres The Whole Code of my Gamemode if you need to fix it, fix it!
Код:
//Do Not Edit All Credits Here It Belongs To Me //Do Not Remove The Credits! //Gamemode Made April - September 2011 //Have Fun With The Gamemode! :D // // | | // | Xtreme-Kakashi's Gamemode | // | Credits To Kakashi | // | Copyright 2011@ | // | | // //Command Scripter Kakashi //Gamemode Creator Kakashi //Check the /credits command it will tell you all creator and staff of this gamemode //For More info Read Readme.txt //===TOP OF SCRIPT===// #include <a_samp> #include "gl_common" #include <ipcheck> #pragma tabsize 0 #define DIALOGID 6969 #define NEON 1337 new tempName[ MAX_PLAYERS ][ 24 ], oldName[ MAX_PLAYERS ][ 24 ] ; new bool:showRulesState[MAX_PLAYERS]; new RKGate; new bool:InSpawn[MAX_PLAYERS]; forward Speedboost(); forward InfiniteNitro(); //Defines #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) #define IsPlayerNotInVehicle(%0) (!IsPlayerInAnyVehicle(%0)) #define red "{FF002B}" #define pink "{FF00D9}" #define purple "{DFA7F2}" #define blue "{A1C2FF}" #define green "{3DE3B1}" #define yellow "{FAF623}" #define black "{69670C}" #define orange "{F2C80C}" #define ice "{03F2FF}" #define lime "{00FF40}" #define ARMEDBODY_USE_HEAVY_WEAPON (false) static armedbody_pTick[MAX_PLAYERS]; new Posaved[MAX_PLAYERS]; #define RANDOM_MESSAGE_TIMER 70000 new messagenumber = 0; new messages[][] = { "[SERVER]:Dont Know All Commands?,Try /cmds", "[SERVER]:Want to change your name color?,Try our new /changemycolour", "[SERVER]:Want to Be Admin?, Apply On Forum At www.stunt-planet.co.nr", "[SERVER]:Want to Be Xtreme Stunting Member? Remember Just Put [XS] To Your Name or After You Name", "[SERVER]:[WP] Clan is The Secondary Clan of XS its not free clan to join the clan you must apply on forum", "[SERVER]:Want To Make your own clan? You must sign in/sign up to our permit on forum before making clan.", "[SERVER]:Dont Know All Teleport Commands?,Try /tele (/teleports)", "[SERVER]:Didnt read rules yet?,Try /rules", "[SERVER]:Clan Making Needs A Permit if you make a clan without permit your clan will be banned", "[SERVER]:Gamemode Credits To Mr.Kakashi" }; new Text:Textdraw0; new Text:Textdraw1; new Text:Textdraw2; new Text:Textdraw3; //DEFINE COLLECTION PART (DONT REMOVE IT)// #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_RED 0xFF0000FF #define COLOR_GREY 0xAFAFAFAA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_PINK 0xFF66FFAA #define COLOR_BLUE 0x0000BBAA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_DARKRED 0x660000AA #define COLOR_ORANGE 0xFF9900AA #define COLOR_BRIGHTRED 0xFF0000AA #define COLOR_INDIGO 0x4B00B0AA #define COLOR_VIOLET 0x9955DEEE #define COLOR_LIGHTRED 0xFF99AADD #define COLOR_SEAGREEN 0x00EEADDF #define COLOR_GRAYWHITE 0xEEEEFFC4 #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66 #define COLOR_GREENISHGOLD 0xCCFFDD56 #define COLOR_LIGHTBLUEGREEN 0x0FFDD349 #define COLOR_NEUTRALBLUE 0xABCDEF01 #define COLOR_LIGHTCYAN 0xAAFFCC33 #define COLOR_LEMON 0xDDDD2357 #define COLOR_MEDIUMBLUE 0x63AFF00A #define COLOR_NEUTRAL 0xABCDEF97 #define COLOR_BLACK 0x00000000 #define COLOR_NEUTRALGREEN 0x81CFAB00 #define COLOR_DARKGREEN 0x12900BBF #define COLOR_LIGHTGREEN 0x24FF0AB9 #define COLOR_DARKBLUE 0x300FFAAB #define COLOR_BLUEGREEN 0x46BBAA00 #define COLOR_PINK 0xFF66FFAA #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_DARKRED 0x660000AA #define COLOR_ORANGE 0xFF9900AA #define COLOR_PURPLE 0x800080AA #define COLOR_GRAD1 0xB4B5B7FF #define COLOR_GRAD2 0xBFC0C2FF #define COLOR_RED1 0xFF0000AA #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_BROWN 0x993300AA #define COLOR_CYAN 0x99FFFFAA #define COLOR_TAN 0xFFFFCCAA #define COLOR_PINK 0xFF66FFAA #define COLOR_KHAKI 0x999900AA #define COLOR_LIME 0x99FF00AA #define COLOR_SYSTEM 0xEFEFF7AA #define COLOR_GRAD2 0xBFC0C2FF #define COLOR_GRAD4 0xD8D8D8FF #define COLOR_GRAD6 0xF0F0F0FF #define COLOR_GRAD2 0xBFC0C2FF #define COLOR_GRAD3 0xCBCCCEFF #define COLOR_GRAD5 0xE3E3E3FF #define COLOR_GRAD1 0xB4B5B7FF #if defined FILTERSCRIPT //===FUCTIONS(IMPORTANT)===// public OnFilterScriptInit() { print("\n--------------------------------------"); print(" MrKakashi's Filterscript Loaded!"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" New Updated Gamemode Scripted!"); print(" Xtreme Stunt Version 1.2"); print(" SAMP 0.3c R3"); print(" ALL BUGS FIXED! "); print(" Bugs Fixed By"); print(" Mr.Kakashi"); print("----------------------------------\n"); } #endif public OnGameModeInit() { //Timer SetTimer("Speedboost",200,1); SetTimer("InfiniteNitro",2000,1); SetTimer("Add1Points", 60000, true); SetTimer("SendMessages", RANDOM_MESSAGE_TIMER, true); //Textdraw Textdraw0 = TextDrawCreate(463.000000,100.000000,"Xtreme Stunting [FUN!]"); Textdraw1 = TextDrawCreate(487.000000,8.000000," /cmds"); Textdraw2 = TextDrawCreate(441.000000,432.000000,"Server Owner : MrKakashi"); Textdraw3 = TextDrawCreate(1.000000,420.000000," /cmds /commands /credits /stafflist"); TextDrawAlignment(Textdraw0,0); TextDrawAlignment(Textdraw1,0); TextDrawAlignment(Textdraw2,0); TextDrawAlignment(Textdraw3,0); TextDrawBackgroundColor(Textdraw0,0x0000ffff); TextDrawBackgroundColor(Textdraw1,0xff0000ff); TextDrawBackgroundColor(Textdraw2,0x000000ff); TextDrawBackgroundColor(Textdraw3,0x0000ffff); TextDrawFont(Textdraw0,3); TextDrawLetterSize(Textdraw0,0.399999,1.500000); TextDrawFont(Textdraw1,2); TextDrawLetterSize(Textdraw1,0.899999,1.200000); TextDrawFont(Textdraw2,3); TextDrawLetterSize(Textdraw2,0.399999,1.200000); TextDrawFont(Textdraw3,3); TextDrawLetterSize(Textdraw3,0.899999,1.000000); TextDrawColor(Textdraw0,0xff0000ff); TextDrawColor(Textdraw1,0x0000ffff); TextDrawColor(Textdraw2,0x00ffffff); TextDrawColor(Textdraw3,0xffff00ff); TextDrawSetOutline(Textdraw0,1); TextDrawSetOutline(Textdraw1,1); TextDrawSetOutline(Textdraw2,1); TextDrawSetOutline(Textdraw3,1); TextDrawSetProportional(Textdraw0,1); TextDrawSetProportional(Textdraw1,1); TextDrawSetProportional(Textdraw2,1); TextDrawSetProportional(Textdraw3,1); TextDrawSetShadow(Textdraw0,1); TextDrawSetShadow(Textdraw1,1); TextDrawSetShadow(Textdraw2,1); TextDrawSetShadow(Textdraw3,1); //CJ Ped Animation Code UsePlayerPedAnims(); //Map Name Changer SendRconCommand("mapname STUNT WORLD!"); //Gamemode Text Code SetGameModeText("Xtreme Kakashi V.2"); //Objects + Cars AddStaticVehicleEx(522,-677.26727295,946.15380859,11.79319000,0.00000000,-1,-1,15); //NRG-500 AddStaticVehicleEx(522,-683.45605469,946.77343750,11.79319000,0.00000000,-1,-1,15); //NRG-500 AddStaticVehicleEx(522,-682.51562500,946.62011719,11.79319000,0.00000000,-1,-1,15); //NRG-500 AddStaticVehicleEx(522,-681.50195312,946.51855469,11.79319000,0.00000000,-1,-1,15); //NRG-500 AddStaticVehicleEx(522,-680.43554688,946.45703125,11.79319000,0.00000000,-1,-1,15); //NRG-500 AddStaticVehicleEx(522,-679.31640625,946.25097656,11.79319000,0.00000000,-1,-1,15); //NRG-500 AddStaticVehicleEx(522,-678.24511719,946.21582031,11.79319000,0.00000000,-1,-1,15); //NRG-500 AddStaticVehicleEx(522,-676.10723877,946.15905762,11.79319000,0.00000000,-1,-1,15); //NRG-500 AddStaticVehicleEx(477,-703.07965088,947.52331543,12.23487377,0.00000000,-1,-1,15); //ZR-350 AddStaticVehicleEx(477,-693.71777344,947.26171875,11.95125675,0.00000000,-1,-1,15); //ZR-350 AddStaticVehicleEx(477,-696.63183594,947.45117188,12.13462067,0.00000000,-1,-1,15); //ZR-350 AddStaticVehicleEx(451,-675.69873047,964.20397949,11.89718437,88.25000000,-1,-1,15); //Turismo AddStaticVehicleEx(451,-682.09277344,963.24511719,11.83281326,88.24768066,-1,-1,15); //Turismo AddStaticVehicleEx(451,-681.96386719,965.53125000,11.89718437,88.24768066,-1,-1,15); //Turismo AddStaticVehicleEx(451,-681.73925781,967.90136719,11.89718437,88.24768066,-1,-1,15); //Turismo AddStaticVehicleEx(451,-675.52734375,966.60644531,11.89718437,88.24768066,-1,-1,15); //Turismo AddStaticVehicleEx(451,-687.56567383,965.72131348,11.90792179,88.24768066,-1,-1,15); //Turismo AddStaticVehicleEx(425,-709.32141113,967.94677734,13.09082794,320.00000000,-1,-1,15); //Hunter AddStaticVehicleEx(488,-732.27923584,964.64648438,12.63138676,0.00000000,-1,-1,15); //News Chopper AddStaticVehicleEx(488,-736.04168701,970.70544434,12.71177292,0.00000000,-1,-1,15); //News Chopper AddStaticVehicle(477,-700.1840,947.5282,12.0937,3.4306,121,1); // Car CreateObject(1491,-685.05242920,931.72595215,12.50781441,0.00000000,0.00000000,0.00000000); //object(gen_doorint01) (2) CreateObject(1491,-688.89550781,943.66503906,12.58281326,0.00000000,0.00000000,0.00000000); //object(gen_doorint01) (3) CreateObject(1491,-685.12225342,931.74420166,12.53281403,0.00000000,0.00000000,180.00000000); //object(gen_doorint01) (4) CreateObject(1491,-691.03100586,931.70996094,12.55781364,0.00000000,0.00000000,179.99450684); //object(gen_doorint01) (5) CreateObject(1491,-690.98577881,931.73492432,12.53281403,0.00000000,0.00000000,357.99450684); //object(gen_doorint01) (6) CreateObject(13666,-739.70489502,710.10467529,21.98631859,4.00000000,0.00000000,76.00000000); //object(loopwee) (1) CreateObject(13666,-745.54797363,707.84545898,22.08210564,3.99902344,0.00000000,77.24792480); //object(loopwee) (2) CreateObject(974,-670.21856689,967.20996094,13.68555641,0.00000000,0.00000000,269.50000000); //object(tall_fence) (1) CreateObject(971,2595.58911133,2302.68847656,12.51057625,0.00000000,0.00000000,0.00000000); //object(subwaygate) (1) CreateObject(971,2593.28002930,2302.59057617,12.57126141,0.00000000,0.00000000,0.00000000); //object(subwaygate) (2) CreateObject(971,2615.33447266,2302.72973633,12.71523285,0.00000000,0.00000000,0.00000000); //object(subwaygate) (3) CreateObject(3749,2606.25244141,2305.35351562,15.64470768,0.00000000,0.00000000,0.00000000); //object(clubgate01_lax) (1) AddStaticVehicleEx(507,1831.78271484,-1854.37329102,13.52812481,0.00000000,-1,-1,15); //Elegant AddStaticVehicleEx(507,1828.33691406,-1854.07031250,13.52812481,0.00000000,-1,-1,15); //Elegant AddStaticVehicleEx(507,1828.36523438,-1861.43945312,13.34659576,0.00000000,-1,-1,15); //Elegant AddStaticVehicleEx(507,1831.76269531,-1861.53515625,13.33281231,0.00000000,-1,-1,15); //Elegant AddStaticVehicleEx(534,1841.40979004,-1861.56958008,13.20568943,177.49981689,-1,-1,15); //Remington AddStaticVehicleEx(534,1838.85253906,-1861.26171875,13.13280869,177.49511719,-1,-1,15); //Remington AddStaticVehicleEx(534,1836.37109375,-1861.24023438,13.20568943,177.49511719,-1,-1,15); //Remington AddStaticVehicleEx(419,-345.73941040,1515.33984375,75.28937531,0.00000000,-1,-1,15); //Esperanto AddStaticVehicleEx(419,-339.64062500,1515.24414062,75.13938141,0.00000000,-1,-1,15); //Esperanto AddStaticVehicleEx(419,-342.92675781,1515.18847656,75.13938141,0.00000000,-1,-1,15); //Esperanto AddStaticVehicleEx(541,-336.53515625,1514.97436523,74.95941162,0.00000000,-1,-1,15); //Bullet AddStaticVehicleEx(541,-333.32354736,1515.02062988,75.05937195,0.00000000,-1,-1,15); //Bullet AddStaticVehicleEx(541,-330.38912964,1515.00781250,75.05937195,0.00000000,-1,-1,15); //Bullet AddStaticVehicleEx(411,-327.19720459,1515.16186523,75.15937805,0.00000000,-1,-1,15); //Infernus AddStaticVehicleEx(411,-324.05917358,1515.15441895,75.15937805,0.00000000,-1,-1,15); //Infernus AddStaticVehicleEx(411,-320.81689453,1515.16442871,75.15937805,0.00000000,-1,-1,15); //Infernus AddStaticVehicleEx(560,-263.61172485,1540.22717285,75.16435242,134.00000000,-1,-1,15); //Sultan AddStaticVehicleEx(560,-314.92990112,1515.11047363,75.16193390,0.00000000,-1,-1,15); //Sultan AddStaticVehicleEx(560,-317.90429688,1515.19824219,75.08200073,0.00000000,-1,-1,15); //Sultan AddStaticVehicleEx(560,-265.59216309,1542.21350098,75.16435242,133.99475098,-1,-1,15); //Sultan AddStaticVehicleEx(560,-267.96392822,1544.61621094,75.16435242,133.99475098,-1,-1,15); //Sultan AddStaticVehicleEx(559,-270.17990112,1547.44226074,75.11344147,133.00000000,-1,-1,15); //Jester AddStaticVehicleEx(559,-272.51092529,1550.13598633,75.11344147,132.99493408,-1,-1,15); //Jester AddStaticVehicleEx(559,-274.87738037,1552.59851074,75.11344147,132.99493408,-1,-1,15); //Jester AddStaticVehicleEx(601,-383.39376831,1536.21655273,75.00691986,260.00000000,-1,-1,15); //S.W.A.T. Van AddStaticVehicleEx(601,-382.43969727,1539.16528320,75.28958130,259.99694824,-1,-1,15); //S.W.A.T. Van AddStaticVehicleEx(601,-374.83761597,1534.58728027,75.28958130,259.99694824,-1,-1,15); //S.W.A.T. Van AddStaticVehicleEx(601,-374.06784058,1537.71435547,75.28958130,259.99694824,-1,-1,15); //S.W.A.T. Van AddStaticVehicleEx(577,-231.10588074,1476.31115723,75.55033875,0.00000000,-1,-1,15); //AT-400 AddStaticVehicleEx(451,-287.38122559,1564.91589355,75.12374878,134.00000000,-1,-1,15); //Turismo AddStaticVehicleEx(451,-277.42968750,1555.01855469,75.12374878,133.99475098,-1,-1,15); //Turismo AddStaticVehicleEx(451,-280.10156250,1557.67187500,75.12374878,133.99475098,-1,-1,15); //Turismo AddStaticVehicleEx(407,-310.44683838,1574.10339355,75.83437347,222.25000000,-1,-1,15); //Firetruck AddStaticVehicleEx(407,-312.78839111,1572.14831543,75.72937775,222.24792480,-1,-1,15); //Firetruck AddStaticVehicleEx(451,-282.61035156,1560.15917969,75.12374878,133.99475098,-1,-1,15); //Turismo AddStaticVehicleEx(451,-285.01464844,1562.50097656,75.12374878,133.99475098,-1,-1,15); //Turismo AddStaticVehicleEx(451,-292.17630005,1570.13720703,75.12374878,133.99475098,-1,-1,15); //Turismo AddStaticVehicleEx(451,-289.64007568,1567.60278320,75.12374878,133.99475098,-1,-1,15); //Turismo AddStaticVehicleEx(451,-294.97674561,1572.46667480,75.12374878,133.99475098,-1,-1,15); //Turismo AddStaticVehicleEx(451,-297.60067749,1574.72924805,75.12374878,133.99475098,-1,-1,15); //Turismo AddStaticVehicleEx(451,-300.17681885,1577.15686035,75.12374878,133.99475098,-1,-1,15); //Turismo CreateObject(3749,-431.22198486,1444.22412109,38.79743958,0.00000000,0.00000000,109.99993896); //object(clubgate01_lax) (1) CreateObject(3749,-302.56250000,1507.76464844,80.04282379,0.00000000,0.00000000,3.99902344); //object(clubgate01_lax) (2) CreateObject(10244,-404.73242188,1502.63281250,72.99826813,0.00000000,0.00000000,179.99450684); //object(vicjump_sfe) (1) CreateObject(971,-408.98339844,1497.02441406,76.56594849,90.00000000,0.00000000,0.00000000); //object(subwaygate) (1) CreateObject(971,-409.01464844,1489.82714844,76.49420166,90.00000000,0.00000000,0.00000000); //object(subwaygate) (2) CreateObject(971,-409.00683594,1482.64160156,76.54233551,90.00000000,0.00000000,0.00000000); //object(subwaygate) (3) CreateObject(1721,-405.52151489,1498.36096191,76.74932098,0.00000000,0.00000000,90.00000000); //object(est_chair1) (1) CreateObject(1721,-405.54202271,1497.56604004,76.74932098,0.00000000,0.00000000,90.00000000); //object(est_chair1) (2) CreateObject(1721,-405.52606201,1496.79943848,76.74932098,0.00000000,0.00000000,90.00000000); //object(est_chair1) (3) CreateObject(1721,-405.46911621,1496.00451660,76.74932098,0.00000000,0.00000000,90.00000000); //object(est_chair1) (4) CreateObject(1721,-405.43457031,1495.16894531,76.74932098,0.00000000,0.00000000,90.00000000); //object(est_chair1) (5) CreateObject(1721,-405.39401245,1494.42272949,76.74932098,0.00000000,0.00000000,90.00000000); //object(est_chair1) (6) CreateObject(1721,-405.39624023,1493.56347656,76.74932098,0.00000000,0.00000000,90.00000000); //object(est_chair1) (7) CreateObject(1721,-405.36853027,1492.72509766,76.74932098,0.00000000,0.00000000,90.00000000); //object(est_chair1) (8) CreateObject(1721,-405.37338257,1491.86877441,76.67757416,0.00000000,0.00000000,90.00000000); //object(est_chair1) (9) CreateObject(1721,-405.46109009,1490.14062500,76.67757416,0.00000000,0.00000000,90.00000000); //object(est_chair1) (10) CreateObject(1721,-405.40966797,1491.04492188,76.67757416,0.00000000,0.00000000,90.00000000); //object(est_chair1) (11) CreateObject(1721,-405.44671631,1489.09912109,76.67757416,0.00000000,0.00000000,90.00000000); //object(est_chair1) (12) CreateObject(1721,-405.44174194,1488.16625977,76.67757416,0.00000000,0.00000000,90.00000000); //object(est_chair1) (13) CreateObject(1723,-405.51303101,1481.78857422,76.72570801,0.00000000,0.00000000,270.00000000); //object(mrk_seating1) (1) CreateObject(1723,-412.76968384,1480.75036621,76.72570801,0.00000000,0.00000000,88.75000000); //object(mrk_seating1) (2) CreateObject(2346,-410.82318115,1499.34082031,76.74932098,0.00000000,0.00000000,0.00000000); //object(cj_hifi_table) (1) CreateObject(1721,-410.29907227,1498.17456055,76.74932098,0.00000000,0.00000000,0.00000000); //object(est_chair1) (14) CreateObject(2181,-412.68066406,1499.31933594,76.74932098,0.00000000,0.00000000,0.00000000); //object(med_office5_desk_2) (1) CreateObject(2174,-412.46231079,1497.41406250,76.72431946,0.00000000,0.00000000,88.25000000); //object(med_office4_desk_2) (1) CreateObject(2346,-409.58087158,1497.08178711,76.74932098,0.00000000,0.00000000,178.00000000); //object(cj_hifi_table) (2) CreateObject(2346,-410.92773438,1497.11230469,76.74932098,0.00000000,0.00000000,177.99499512); //object(cj_hifi_table) (3) CreateObject(2346,-409.06509399,1497.73681641,76.74932098,0.00000000,0.00000000,267.99499512); //object(cj_hifi_table) (4) CreateObject(1721,-405.41174316,1487.29541016,76.67757416,0.00000000,0.00000000,90.00000000); //object(est_chair1) (15) CreateObject(1721,-405.30862427,1486.44555664,76.72570801,0.00000000,0.00000000,90.00000000); //object(est_chair1) (16) CreateObject(1721,-405.29077148,1485.61242676,76.72570801,0.00000000,0.00000000,90.00000000); //object(est_chair1) (17) CreateObject(1721,-405.29492188,1484.81140137,76.72570801,0.00000000,0.00000000,90.00000000); //object(est_chair1) (18) CreateObject(1721,-405.27868652,1484.17712402,76.72570801,0.00000000,0.00000000,90.00000000); //object(est_chair1) (19) CreateObject(1721,-405.30566406,1483.50683594,76.72570801,0.00000000,0.00000000,90.00000000); //object(est_chair1) (20) CreateObject(1721,-405.36361694,1482.78967285,76.72570801,0.00000000,0.00000000,90.00000000); //object(est_chair1) (21) CreateObject(984,-413.17767334,1492.67810059,77.38600159,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (1) CreateObject(1723,-412.74932861,1483.75402832,76.72570801,0.00000000,0.00000000,90.25000000); //object(mrk_seating1) (1) CreateObject(1723,-412.66592407,1486.57434082,76.72570801,0.00000000,0.00000000,90.24719238); //object(mrk_seating1) (1) CreateObject(1723,-412.62838745,1489.59704590,76.67757416,0.00000000,0.00000000,90.24719238); //object(mrk_seating1) (1) CreateObject(703,-408.41192627,1510.91699219,72.54885101,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree7_big) (1) CreateObject(1721,-412.22677612,1479.61621094,76.72570801,0.00000000,0.00000000,90.00000000); //object(est_chair1) (20) CreateObject(1721,-409.21533203,1480.02478027,76.72570801,0.00000000,0.00000000,179.50000000); //object(est_chair1) (20) CreateObject(18750,-791.86883545,693.01544189,44.37995529,90.00000000,0.00000000,148.00000000); //SAMP Big Logo CreateObject(18846,-751.29949951,722.96588135,22.23642921,0.00000000,0.00000000,330.00000000); //Cesar Big CreateObject(18846,-765.51586914,732.11309814,22.27311707,0.00000000,0.00000000,329.99633789); //Cesar Big (2) CreateObject(16121,982.75115967,891.86572266,9.82031250,0.00000000,0.00000000,344.00000000); //object(des_rockgp2_09) (1) CreateObject(16121,1055.04589844,845.50585938,9.96513557,0.00000000,0.00000000,309.99572754); //object(des_rockgp2_09) (2) CreateObject(16121,1023.15063477,825.70886230,10.38455391,0.00000000,0.00000000,309.99572754); //object(des_rockgp2_09) (3) CreateObject(16121,1006.50372314,826.81176758,8.02339745,0.00000000,0.00000000,215.99572754); //object(des_rockgp2_09) (4) CreateObject(16121,1086.25781250,878.95019531,9.82793236,0.00000000,0.00000000,309.99572754); //object(des_rockgp2_09) (5) CreateObject(16121,1077.95996094,912.08105469,10.35647202,0.00000000,0.00000000,195.99609375); //object(des_rockgp2_09) (6) CreateObject(16121,1064.56640625,938.31152344,9.78282356,0.00000000,0.00000000,195.99609375); //object(des_rockgp2_09) (7) CreateObject(16121,986.20703125,855.23535156,9.82031631,0.00000000,0.00000000,343.99841309); //object(des_rockgp2_09) (8) CreateObject(16121,968.57708740,939.37023926,9.82031250,0.00000000,0.00000000,3.99841309); //object(des_rockgp2_09) (9) CreateObject(16121,937.22619629,1052.41955566,7.50711441,0.00000000,0.00000000,303.99353027); //object(des_rockgp2_09) (10) CreateObject(16121,949.12402344,980.27539062,10.33688354,0.00000000,0.00000000,3.99353027); //object(des_rockgp2_09) (11) CreateObject(16121,933.23535156,1023.35839844,10.14636230,0.00000000,0.00000000,3.99353027); //object(des_rockgp2_09) (12) CreateObject(16121,958.32226562,1059.38085938,10.93568420,0.00000000,0.00000000,243.98986816); //object(des_rockgp2_09) (13) CreateObject(16121,991.22363281,816.61035156,9.82031250,0.00000000,0.00000000,309.99572754); //object(des_rockgp2_09) (14) CreateObject(18750,1019.12341309,983.53002930,65.84147644,90.00000000,0.00000000,350.00000000); //object SAMP Big Logo (2) CreateObject(5259,1041.48657227,924.90393066,11.91244793,0.00000000,0.00000000,0.00000000); //object(las2dkwar01) (1) CreateObject(5259,1033.27258301,924.74530029,11.93573761,0.00000000,0.00000000,0.00000000); //object(las2dkwar01) (2) CreateObject(5259,1033.29589844,916.67486572,11.93569756,0.00000000,0.00000000,0.00000000); //object(las2dkwar01) (3) CreateObject(5259,1041.50170898,916.70959473,11.94518089,0.00000000,0.00000000,0.00000000); //object(las2dkwar01) (4) CreateObject(5259,1020.31390381,916.28540039,12.36727524,0.00000000,0.00000000,0.00000000); //object(las2dkwar01) (5) CreateObject(5259,1020.31103516,924.38696289,12.23091221,0.00000000,0.00000000,0.00000000); //object(las2dkwar01) (6) CreateObject(5259,1011.95489502,924.44360352,12.22920418,0.00000000,0.00000000,0.00000000); //object(las2dkwar01) (7) CreateObject(5259,1011.95098877,916.28778076,12.37373924,0.00000000,0.00000000,0.00000000); //object(las2dkwar01) (8) CreateObject(971,1000.72222900,911.09008789,11.89023018,0.00000000,0.00000000,280.00000000); //object(subwaygate) (1) CreateObject(971,993.55926514,936.27917480,11.89024925,0.00000000,0.00000000,321.99755859); //object(subwaygate) (2) CreateObject(971,999.26269531,919.94628906,11.82565784,0.00000000,0.00000000,279.99755859); //object(subwaygate) (3) CreateObject(971,997.71093750,928.84472656,11.75881100,0.00000000,0.00000000,279.99755859); //object(subwaygate) (4) CreateObject(5259,1062.46887207,883.91259766,10.42792320,0.00000000,0.00000000,0.00000000); //object(las2dkwar01) (9) CreateObject(5259,1037.16528320,855.86590576,12.69486618,0.00000000,0.00000000,0.00000000); //object(las2dkwar01) (10) CreateObject(3798,1026.72924805,905.91613770,12.91785431,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (1) CreateObject(3798,1026.66296387,930.88244629,11.45907402,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (2) CreateObject(5259,1054.00292969,883.90625000,10.33238029,0.00000000,0.00000000,0.00000000); //object(las2dkwar01) (11) CreateObject(5259,1022.55609131,856.28948975,12.32801819,0.00000000,0.00000000,0.00000000); //object(las2dkwar01) (12) CreateObject(3798,1046.86022949,907.28833008,11.49680424,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (3) CreateObject(3798,1044.65917969,911.43261719,11.61310959,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (4) CreateObject(3798,1044.77050781,909.36328125,11.70012093,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (5) CreateObject(3798,1044.87402344,907.27441406,11.78927898,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (6) CreateObject(3798,1048.84472656,907.34350586,11.18912601,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (7) CreateObject(3798,1050.83288574,907.33178711,11.07907391,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (8) CreateObject(3798,1046.89599609,911.71234131,11.27374077,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (9) CreateObject(3798,1048.90319824,911.79302979,11.05590820,0.00000000,0.00000000,0.00000000); //object(acbox3_sfs) (10) CreateObject(5259,1022.88958740,874.95379639,13.20686722,0.00000000,0.00000000,0.00000000); //object(las2dkwar01) (13) CreateObject(2991,1030.22399902,863.50494385,12.69269180,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (1) RKGate = CreateObject(976,2601.40527344,2303.63891602,9.94531059,0.00000000,0.00000000,359.00000000); SetVehiclePlates(); for(new i = 0; i < 299; i++) { if(IsValidSkin(i)) { AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1); } } return 1; } IsValidSkin(skinid) { #define MAX_BAD_SKINS 23 new badSkins[MAX_BAD_SKINS] = { 2, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 268, 273, 289, 165}; if (skinid < 0 || skinid > 299) return false; for (new i = 0; i < MAX_BAD_SKINS; i++) { if (skinid == badSkins[i]) return false; } #undef MAX_BAD_SKINS return 1; } forward IncreaseTime(playerid); forward Add1Points(); public Add1Points() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { SetPlayerScore(i, GetPlayerScore(i)+1); } } return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { if(!showRulesState[playerid]) { ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX, "Rules:", "1.)Do Not Hack/Cheat/Mods\n2.)Respect Admins And Players\n3.)Do Not Ask To Be Admin We Choosing Admins\n4.)Do Not Use Admin Account And Try To Use It\n5.)No Insulting, Flamming The Admins\n6.)Dont Kill Player To Much (Spawn Killing)\nIf you break those rules you may Punishment by Our Server Administrators", "Accept", "Ignore"); showRulesState[playerid] = true; } InSpawn[playerid] = true; SetPVarInt(playerid, "Muted", 1); SetPlayerPos(playerid, 2582.445556, 2330.637207, 42.199985); SetPlayerFacingAngle(playerid, 180.313415); SetPlayerCameraLookAt(playerid, 2582.445556, 2330.637207, 42.199985); SetPlayerCameraPos(playerid, 2582.445556 + (10 * floatsin(-180.313415, degrees)), 2330.637207 + (10 * floatcos(-180.313415, degrees)), 42.199985); PlayerPlaySound(playerid, 1185,-119.9460,23.1096,12.2238); ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); return 1; } public OnPlayerConnect(playerid) { ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); showRulesState[playerid] = false; SetPlayerColor(playerid,COLOR_RED); Posaved[playerid] = 0; TextDrawShowForAll(Textdraw0); TextDrawShowForAll(Textdraw2); SendClientMessage(playerid, COLOR_YELLOW, "Welcome To Xtreme Stunting [FUN]! Server"); SendClientMessage(playerid, COLOR_YELLOW, "Type /cmds or /commands for available commands"); SendClientMessage(playerid, COLOR_RED, "Server Country : Philippines - Asia"); SendClientMessage(playerid, COLOR_RED, "Server Owner : Mr.Kakashi (Justine)"); SendClientMessage(playerid, COLOR_RED, "Co-Owner : [WP]G4MER"); return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public Speedboost() { for(new i; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && !IsPlayerNPC(i)) { new Keys,up,down; GetPlayerKeys(i,Keys,up,down); if(Keys &= 1024) { if(GetPlayerState(i) == PLAYER_STATE_ONFOOT) { new Float:x,Float:y,Float:z; GetPlayerVelocity(i,x,y,z); SetPlayerVelocity(i,x+(x / 4),y+(y / 4),z+(z / 4)); } } GetPlayerKeys(i,Keys,up,down); if(Keys &= 4) { if(GetPlayerState(i) == PLAYER_STATE_DRIVER) { new Float:x,Float:y,Float:z; GetVehicleVelocity(GetPlayerVehicleID(i),x,y,z); SetVehicleVelocity(GetPlayerVehicleID(i),x+(x / 4),y+(y / 4),z+(z / 4)); } } } } return 1; } forward SendMessages(); public SendMessages() { if(messagenumber == sizeof(messages)) messagenumber = 0; SendClientMessageToAll(COLOR_RED, messages[messagenumber]); messagenumber ++; return 1; } public OnPlayerSpawn(playerid) { InSpawn[playerid] = false; SetPVarInt(playerid, "Muted", 0); PlayerPlaySound(playerid, 1186,-119.9460,23.1096,12.2238); TextDrawShowForAll(Textdraw0); TextDrawShowForAll(Textdraw1); TextDrawShowForAll(Textdraw2); TextDrawShowForAll(Textdraw3); SetPlayerPos(playerid,-687.8727,938.8134,13.6328); PlayerPlaySound(playerid, 1063,0,0.0,0.0); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); GivePlayerWeapon(playerid, 31,5000); GivePlayerWeapon(playerid, 22,5000); GivePlayerWeapon(playerid, 29,5000); SetPlayerMapIcon(playerid, 1, -687.8727,938.8134,13.6328,32,1,MAPICON_GLOBAL);//Home Spawn SetPlayerMapIcon(playerid, 2, 2580.479248,2313.195068,17.822208,40,1,MAPICON_GLOBAL);//Rock Hotel SetPlayerMapIcon(playerid, 3, 1831.2816,-1842.5409,13.5781,52,1,MAPICON_GLOBAL);//Market 24/7 SetPlayerMapIcon(playerid, 4, -302.3531,1529.5060,75.3594,55,1,MAPICON_GLOBAL);//Drift Icon SetPlayerMapIcon(playerid, 5, 1026.8826,922.3848,13.1043,18,1,MAPICON_GLOBAL);//DM1 Icon return 1; } public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); GivePlayerMoney(killerid, 5000); SendClientMessage(killerid,COLOR_GREEN, "Nice Shot, You Kill A Player But Dont Kill To Much"); GameTextForPlayer(playerid,"~w~WASTED",3040,2); return 1; } public OnVehicleSpawn(vehicleid) { SetVehiclePlates(); return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } stock SetVehiclePlates() { for(new i=0;i<MAX_VEHICLES;i++) { SetVehicleNumberPlate(i, "X-[FUN!]"); } return 1; } public OnPlayerText(playerid, text[]) { SetPlayerChatBubble(playerid, text, COLOR_WHITE, 100.0, 10000); if(!strcmp(text ,"This is My Gamemode", true)) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(!strcmp(name, "[SP]Mr.Kakashi[WP]", true)) { SendClientMessage(playerid,COLOR_GREEN,"Yes, This is Your Gamemode"); } else { SendClientMessage(playerid,COLOR_RED,"This is not your gamemode!"); SetPlayerHealth(playerid, 0); } return 1; } if(IsIp(text)) { SendClientMessage(playerid, COLOR_RED, "Server Advertisement is Not Allowed!"); SendClientMessage(playerid, COLOR_RED, "You Have Been Banned Reason: Server Advertisement"); BanEx(playerid, "Server Advertisement"); return 0; } if(GetPVarInt(playerid, "Muted") == 1) { SendClientMessage(playerid,COLOR_RED, "You cant Talk While on Class Selection"); return 0; } else if(GetPVarInt(playerid, "Muted") == 0) { new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); GetPlayerColor(playerid); format(text, 1024, "%s : {FFFFFF}[%d] {FFFFFF}%s", PlayerName, playerid, text); SendClientMessageToAll(GetPlayerColor(playerid), text); } return 0; } public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[256]; new tmp[256]; new Message[256]; new gMessage[256]; new Playername[MAX_PLAYERS]; new iName[MAX_PLAYERS]; new idx; cmd = strtok(cmdtext, idx); if(strcmp("/pm", cmd, true) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); tmp = strtok(cmdtext,idx); if(!strlen(tmp) || strlen(tmp) > 5) { SendClientMessage(playerid,COLOR_RED,"USAGE: /pm [playerid] [message]"); return 1; } new id = strval(tmp); gMessage = strrest(cmdtext,idx); if(!strlen(gMessage)) { SendClientMessage(playerid,COLOR_RED,"USAGE: /pm [playerid] [message]"); return 1; } if(!IsPlayerConnected(id)) { SendClientMessage(playerid,COLOR_RED,"Player is not connect!"); return 1; } if(playerid != id) { GetPlayerName(id,iName,sizeof(iName)); GetPlayerName(playerid,Playername,sizeof(Playername)); format(Message,sizeof(Message),"PM Sent to %s (ID: %d): %s",iName,id,gMessage); SendClientMessage(playerid,COLOR_YELLOW,Message); format(Message,sizeof(Message),"PM From %s (ID: %d): %s",Playername,playerid,gMessage); SendClientMessage(id,COLOR_YELLOW,Message); PlayerPlaySound(id,1085,0.0,0.0,0.0); } else { SendClientMessage(playerid,COLOR_RED,"ERROR: You cant PM Yourself!"); } return 1; } if(!strcmp(cmdtext, "/changeskin", true)) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { ForceClassSelection(playerid); SetPlayerHealth(playerid,0); SendClientMessage(playerid, COLOR_RED, "You will be on Class Selection Again"); } return 1; } if(strcmp("/leavedm", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 0) return SendClientMessage(playerid,COLOR_RED, "You are not in the DM area"); SetPlayerSkin(playerid, GetPVarInt(playerid,"skin")); SetPVarInt(playerid, "InDm", 0); SetPlayerPos(playerid,-687.8727,938.8134,13.6328); SetPlayerFacingAngle(playerid, 13.6328); SendClientMessage(playerid, COLOR_RED, "You left The Deathmatch Area"); return 1; } if(strcmp("/dm1", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You are already in DM Area"); SetPVarInt(playerid, "skin", GetPlayerSkin(playerid)); SetPVarInt(playerid, "InDm", 1); new pName[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string, sizeof(string), "{FFFFFF}[SERVER]:{FF002B}%s has teleported to {FFFFFF}Deathmatch Area 1 - DM Area 1 (/dm1)",pName); SendClientMessageToAll(COLOR_RED, string); SendClientMessage(playerid, COLOR_GREEN,"Welcome To DM Area"); GameTextForPlayer(playerid,"~w~Welcome To ~r~Death ~g~Match ~y~Area 1",3000,3); SetPlayerPos(playerid,1050.6841,938.1620,18.5841); SetPlayerFacingAngle(playerid,143); SetPlayerSkin(playerid,165); return 1; } if(strcmp("/drift1", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { new pName[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string, sizeof(string), "{FFFFFF}[SERVER]:{FF002B}%s has teleported to {FFFFFF}Drift Area 1 - Xtreme Stunting Drift Area 1 (/drift1)",pName); SendClientMessageToAll(COLOR_RED, string); SendClientMessage(playerid, COLOR_GREEN,"Welcome To Drift Area"); GameTextForPlayer(playerid,"~w~Welcome To ~r~Drift ~g~Area ~y~1",3000,3); if (IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid),-332.6057,1526.3823,74.9185); SetVehicleZAngle(GetPlayerVehicleID(playerid),268); } else { SetPlayerPos(playerid,-299.2990,1533.0402,75.3594); SetPlayerFacingAngle(playerid,118); } } return 1; } if(strcmp("/market", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { new pName[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string, sizeof(string), "{FFFFFF}[SERVER]:{FF002B}%s has teleported to {FFFFFF}Market 24/7 - Xtreme Stunting Market (/market)",pName); SendClientMessageToAll(COLOR_RED, string); SendClientMessage(playerid, COLOR_GREEN,"Welcome To Market"); GameTextForPlayer(playerid,"~w~Welcome ~y~To ~r~Market",3000,3); if (IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid),1826.4629,-1841.3582,12.9772); SetVehicleZAngle(GetPlayerVehicleID(playerid),182); } else { SetPlayerPos(playerid,1832.3445,-1837.3976,13.5781); SetPlayerFacingAngle(playerid,91); } } return 1; } if(strcmp("/shop", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { if(!IsPlayerInRangeOfPoint(playerid,4.0,-28.0168,-89.9490,1003.5469)) return SendClientMessage(playerid,COLOR_RED,"You Have To Be In Market 24/7"); else { SendClientMessage(playerid, COLOR_RED, "Welcome To Market 24/7"); ShowPlayerDialog(playerid,7,DIALOG_STYLE_LIST,"Market 24/7 Menu","Sprunk (Coast $50)\nBeer (Coast $100)\nWine (Coast $100)\nCigarette (Coast $50)","Buy","Cancel"); } } return 1; } if(strcmp("/rkshop", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { if(!IsPlayerInRangeOfPoint(playerid,3.0,2589.8174,2371.0757,17.8203)) return SendClientMessage(playerid,COLOR_RED,"You Have To Be In Rock Hotel Shop 24/7"); else { SendClientMessage(playerid, COLOR_RED, "Welcome To Rock Hotel Shop 24/7"); ShowPlayerDialog(playerid,6,DIALOG_STYLE_LIST,"Rock Hotel Shop 24/7","Sprunk (Coast $50)\nBeer (Coast $100)\nWine (Coast $100)\nCigarette (Coast $50)","Buy","Cancel"); } } return 1; } if(strcmp("/parachute", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { GivePlayerWeapon(playerid, 46,100); SendClientMessage(playerid,COLOR_GREEN,"Enjoy with Your Parachute!"); } return 1; } if(strcmp("/para", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { GivePlayerWeapon(playerid, 46,100); SendClientMessage(playerid,COLOR_GREEN,"Enjoy with Your Parachute!"); } return 1; } if(strcmp("/lol", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { new vehicleid = GetPlayerVehicleID(playerid); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"ERROR: You have to be in a vehicle"); { RemovePlayerFromVehicle(playerid); SetVehicleHealth(vehicleid, 4.0); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); SendClientMessage(playerid, COLOR_RED, "OWNED!, Your Vehicle Has Been Destroy, You Have Been LOL Pranked"); } } return 1; } if(strcmp("/rkopengate", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { MoveObject(RKGate, 2590.25244141,2303.60498047,9.94531059, 2.0); SendClientMessage(playerid,COLOR_GREEN,"The Gate is Now Open To Close it, Type /rkclosegate"); GameTextForPlayer(playerid,"~g~Gate Opening...",3000,3); } return 1; } if(strcmp("/rkclosegate", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { MoveObject(RKGate,2601.40527344,2303.63891602,9.94531059, 2.0); SendClientMessage(playerid,COLOR_RED,"The Gate is Now Close To Open it, Type /rkopengate"); GameTextForPlayer(playerid,"~r~Gate Closing...",3000,3); } return 1; } if(strcmp("/getjetpack", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { SendClientMessage(playerid,COLOR_GREEN,"Enjoy With Your Jetpack!"); SetPlayerSpecialAction(playerid,2); } return 1; } if(strcmp(cmdtext, "/flip", true) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { if(IsPlayerInAnyVehicle(playerid)) { new currentveh; new Float:angle; currentveh = GetPlayerVehicleID(playerid); GetVehicleZAngle(currentveh, angle); SetVehicleZAngle(currentveh, angle); SendClientMessage(playerid, COLOR_GREEN, "Your Vehicle has been Flip!"); return 1; } else { SendClientMessage(playerid, COLOR_RED, "ERROR: You Are Not In A Vehicle"); } return 1; } } if(strcmp("/GateHelp", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { SendClientMessage(playerid, COLOR_WHITE, "Xtreme Stunting [FUN!] Gate Help:"); SendClientMessage(playerid, COLOR_YELLOW, "/rkopengate, /rkclosegate"); } return 1; } if(strcmp("/teleports", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, "Teleports:", "/home /rockhotel /market /drift[1-2] /dm /leavedm", "Ok", "Cancel"); } return 1; } if(strcmp("/tele", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, "Teleports:", "/home /rockhotel /market /drift[1-2] /dm /leavedm", "Ok", "Cancel"); } return 1; } if(strcmp("/rockhotel", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { new pName[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string, sizeof(string), "{FFFFFF}[SERVER]:{FF002B}%s has teleported to {FFFFFF}Rock Hotel - Kakashi And SunShine Hotel (/rockhotel)",pName); SendClientMessageToAll(COLOR_RED, string); SendClientMessage(playerid, COLOR_GREEN,"Welcome To Kakashi And SunShine's Hotel"); GameTextForPlayer(playerid,"~w~Welcome To ~r~Kakashi ~w~And ~b~SunShine's ~w~Hotel",3000,3); if (IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid),2612.6147,2296.0132,10.5908); SetVehicleZAngle(GetPlayerVehicleID(playerid),89); } else { SetPlayerPos(playerid,2588.1042,2303.2532,17.8222); SetPlayerFacingAngle(playerid, 87); } } return 1; } if(strcmp("/home", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { new pName[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string, sizeof(string), "{FFFFFF}[SERVER]:{FF002B}%s has teleported to {FFFFFF}Home Spawnpoint (/home)",pName); SendClientMessageToAll(COLOR_RED, string); SendClientMessage(playerid, COLOR_GREEN,"Welcome To Home Spawnpoint"); GameTextForPlayer(playerid,"~w~Welcome To ~r~Home ~b~Spawnpoint",3000,3); if (IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid),-696.5185,966.1083,11.8512); SetVehicleZAngle(GetPlayerVehicleID(playerid),177); } else { SetPlayerPos(playerid,-687.8727,938.8134,13.6328); SetPlayerFacingAngle(playerid, 13.6328); } } return 1; } if(!strcmp("/SavePos", cmdtext, true)) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); SetPVarFloat(playerid,"X",x); SetPVarFloat(playerid,"Y",y); SetPVarFloat(playerid,"Z",z); SendClientMessage(playerid,COLOR_GREEN, "[SAVEPOS]:You Save Your Position, If You Want To Load Your Position, Use {FFFF00}/LoadPos"); if(Posaved[playerid] == 0) { Posaved[playerid] = 1; } } return 1; } if(!strcmp("/LoadPos", cmdtext, true)) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { if(Posaved[playerid] == 1) { SetPlayerPos(playerid, GetPVarFloat(playerid,"X"), GetPVarFloat(playerid,"Y"), GetPVarFloat(playerid,"Z")); SendClientMessage(playerid,COLOR_GREEN, "[LOADPOS]:You Load Your Position"); } else SendClientMessage(playerid,COLOR_RED, "[ERROR]:You Dont Have Load Position Yet, Try {33CCCC}/SavePos"); } return 1; } if(strcmp("/help", cmdtext, true, 10) == 0) { if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { SendClientMessage(playerid,COLOR_WHITE,"~Xtreme Stunting [FUN!] Help Center"); SendClientMessage(playerid,COLOR_YELLOW,"/cmds /commands /credits /stafflist"); } return 1; } if(strcmp("/toprankadmins", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { ShowPlayerDialog(playerid,3, DIALOG_STYLE_MSGBOX, "Top Rank Admins:", "1.)[SP]Mr.Kakashi[WP] - Server Owner\n2.)G4MER - Co-Owner\n3.)AVI - Team Management\n4.)SunShine - Team Management", "Ok", "Cancel"); } return 1; } if(strcmp("/changemycolour", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Color Name Changer", "Purple\nYellow\nRed\nLightblue\nOrange\nGreen\nIndigo\nPink\nBlack", "Select", "Cancel"); } return 1; } if(strcmp("/rules", cmdtext, true, 10) == 0) { if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { ShowPlayerDialog(playerid,2, DIALOG_STYLE_MSGBOX, "Rules:", "1.)Do Not Hack/Cheat/Mods\n2.)Respect Admins And Players\n3.)Do Not Ask To Be Admin We Choosing Admins\n4.)Do Not Use Admin Account And Try To Use It\n5.)No Insulting, Flamming The Admins\n6.)Dont Kill Player To Much (Spawn Killing)\nIf you break those rules you may Punishment by Our Server Administrators", "Accept", "Ignore"); } return 1; } if(strcmp("/repair", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"ERROR: You have to be in a vehicle"); { RepairVehicle(GetPlayerVehicleID(playerid)); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); SendClientMessage(playerid, COLOR_GREEN, "Vehicle Repaired "); } } return 1; } if(strcmp("/fix", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"ERROR: You have to be in a vehicle"); { RepairVehicle(GetPlayerVehicleID(playerid)); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); SendClientMessage(playerid, COLOR_GREEN, "Vehicle Repaired "); } } return 1; } if(strcmp(cmdtext, "/afk", true) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { new pName[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); SendClientMessage(playerid, COLOR_WHITE,"You Are Now AFK"); SendClientMessage(playerid, COLOR_WHITE,"Type /back when you are back to play"); format(string, sizeof(string), "{FFFFFF}[SERVER]:{FAF623}%s is now AFK And Be Right Back",pName); SendClientMessageToAll(COLOR_YELLOW, string); TogglePlayerControllable(playerid, 0); SetPlayerHealth(playerid, 999999.999); GetPlayerName(playerid, oldName[ playerid ], 24 ); format(tempName[ playerid ], 24, "%s[AFK]", oldName[ playerid ] ); SetPlayerName(playerid, tempName[ playerid ] ); } return 1; } if(strcmp(cmdtext, "/back", true) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { new pName[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); SendClientMessage(playerid, COLOR_WHITE,"Welcome Back"); format(string, sizeof(string), "{FFFFFF}[SERVER]:{FF002B}%s is back and able to play again",pName); SendClientMessageToAll(COLOR_RED, string); TogglePlayerControllable(playerid, 1); SetPlayerHealth(playerid, 100); SetPlayerName(playerid, oldName[playerid]); } return 1; } if(strcmp("/suicide", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { SetPlayerHealth(playerid, 0); } return 1; } if(strcmp("/kill", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { SetPlayerHealth(playerid, 0); } return 1; } if(strcmp("/commands", cmdtext, true, 10) == 0) { if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { ShowPlayerDialog(playerid,4, DIALOG_STYLE_MSGBOX, "Commands List:", "/credits /stafflist /commands /cmds /kill /admins /report /register /login\n/suicide /afk /back /repair /fix /flip /rules /level [1-5] /lol /changemycolour\n/toprankadmins /animlist /me /help /stats /savepos /loadpos /tele /teleports\n/getjetpack /gatehelp /rkshop /pm /changeskin", "Ok", "Cancel"); } return 1; } if(strcmp("/cmds", cmdtext, true, 10) == 0) { if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { ShowPlayerDialog(playerid,4, DIALOG_STYLE_MSGBOX, "Commands List:", "/credits /stafflist /commands /cmds /kill /admins /report /register /login\n/suicide /afk /back /repair /fix /flip /rules /level [1-5] /lol /changemycolour \n/toprankadmins /animlist /me /help /stats /savepos /loadpos /tele /teleports\n/getjetpack /gatehelp /rkshop /pm /changeskin", "Ok", "Cancel"); } return 1; } if(strcmp("/stafflist", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { ShowPlayerDialog(playerid,5, DIALOG_STYLE_MSGBOX, "Staff List:", "Server Owner: Mr.Kakashi\nCo-Owner : G4MER\nTeam Management : AVI, SunShine\nGamemode: Xtreme Kakashi V1.1", "Ok", "Cancel"); } return 1; } if(strcmp("/credits", cmdtext, true, 10) == 0) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, "Credits:", "Gamemode Creator : Mr.Kakashi\nAssit Gamemode Helper : G4MER\nCommand Scripter : Mr.Kakashi\nScript System: Ryder's Racing System, LuxAdmin\nScripter Helper : AVI (Lukas)\nMap Maker : Mr.Kakashi\nCopyright 2011@", "Ok", "Cancel"); } return 1; } if(!strcmp(cmdtext, "/me", true, 3)) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); else { if(!cmdtext[3])return SendClientMessage(playerid,COLOR_RED, "USAGE: /me [text]"); new str[128]; GetPlayerName(playerid, str, sizeof(str)); format(str, sizeof(str), "%s %s", str, cmdtext[4]); SendClientMessageToAll(COLOR_YELLOW, str); } return 1; } return SendClientMessage(playerid,COLOR_RED, "Unknown Command, Type /cmds or /commands for available commands"); } 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) { new Skinid = GetPlayerSkin(playerid); if(Skinid == 29 && GetPlayerScore(playerid) < 500) { GameTextForPlayer(playerid, "~r~Sorry, You Need 500 Score To Use A Stunter Skin", 5000, 3); SendClientMessage(playerid, COLOR_RED, "[SERVER]:You Need 500 Score To Use This Skin"); return 0; } return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { 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) { if(PRESSED(KEY_SUBMISSION)) { new vehicleid = GetPlayerVehicleID(playerid); if(IsPlayerInVehicle(playerid, vehicleid)) { RepairVehicle(GetPlayerVehicleID(playerid)); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); SendClientMessage(playerid,COLOR_GREEN,"Vehicle Fixed!"); } } return 1; } public InfiniteNitro() { new vehicleid; for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { if(GetPlayerState(i)==2) { vehicleid=GetPlayerVehicleID(i); if(CheckVehicle(vehicleid)) AddVehicleComponent(vehicleid,1010); } } } return 0; } stock CheckVehicle(vehicleid) { #define MAX_INVALID_NOS_VEHICLES 13 new InvalidNOSVehicles[MAX_INVALID_NOS_VEHICLES] = { 522,481,441,468,448,446,513,521,510,430,520,476,463 }; for(new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++) { if(GetVehicleModel(vehicleid) == InvalidNOSVehicles[i]) return false; } return true; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { if(GetTickCount() - armedbody_pTick[playerid] > 113){ new weaponid[13],weaponammo[13],pArmedWeapon; pArmedWeapon = GetPlayerWeapon(playerid); GetPlayerWeaponData(playerid,1,weaponid[1],weaponammo[1]); GetPlayerWeaponData(playerid,2,weaponid[2],weaponammo[2]); GetPlayerWeaponData(playerid,4,weaponid[4],weaponammo[4]); GetPlayerWeaponData(playerid,5,weaponid[5],weaponammo[5]); #if ARMEDBODY_USE_HEAVY_WEAPON GetPlayerWeaponData(playerid,7,weaponid[7],weaponammo[7]); #endif if(weaponid[1] && weaponammo[1] > 0){ if(pArmedWeapon != weaponid[1]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,0)){ SetPlayerAttachedObject(playerid,0,GetWeaponModel(weaponid[1]),1, 0.199999, -0.139999, 0.030000, 0.500007, -115.000000, 0.000000, 1.000000, 1.000000, 1.000000); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,0)){ RemovePlayerAttachedObject(playerid,0); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,0)){ RemovePlayerAttachedObject(playerid,0); } if(weaponid[2] && weaponammo[2] > 0){ if(pArmedWeapon != weaponid[2]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,1)){ SetPlayerAttachedObject(playerid,1,GetWeaponModel(weaponid[2]),8, -0.079999, -0.039999, 0.109999, -90.100006, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,1)){ RemovePlayerAttachedObject(playerid,1); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,1)){ RemovePlayerAttachedObject(playerid,1); } if(weaponid[4] && weaponammo[4] > 0){ if(pArmedWeapon != weaponid[4]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,2)){ SetPlayerAttachedObject(playerid,2,GetWeaponModel(weaponid[4]),7, 0.000000, -0.100000, -0.080000, -95.000000, -10.000000, 0.000000, 1.000000, 1.000000, 1.000000); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,2)){ RemovePlayerAttachedObject(playerid,2); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,2)){ RemovePlayerAttachedObject(playerid,2); } if(weaponid[5] && weaponammo[5] > 0){ if(pArmedWeapon != weaponid[5]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,3)){ SetPlayerAttachedObject(playerid,3,GetWeaponModel(weaponid[5]),1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,3)){ RemovePlayerAttachedObject(playerid,3); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,3)){ RemovePlayerAttachedObject(playerid,3); } #if ARMEDBODY_USE_HEAVY_WEAPON if(weaponid[7] && weaponammo[7] > 0){ if(pArmedWeapon != weaponid[7]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,4)){ SetPlayerAttachedObject(playerid,4,GetWeaponModel(weaponid[7]),1,-0.100000, 0.000000, -0.100000, 84.399932, 112.000000, 10.000000, 1.099999, 1.000000, 1.000000); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,4)){ RemovePlayerAttachedObject(playerid,4); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,4)){ RemovePlayerAttachedObject(playerid,4); } #endif armedbody_pTick[playerid] = GetTickCount(); } return true; } stock GetWeaponModel(weaponid) { switch(weaponid) { case 1: return 331; case 2..8: return weaponid+331; case 9: return 341; case 10..15: return weaponid+311; case 16..18: return weaponid+326; case 22..29: return weaponid+324; case 30,31: return weaponid+325; case 32: return 372; case 33..45: return weaponid+324; case 46: return 371; } 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; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 7) { if(!response) return SendClientMessage(playerid, COLOR_RED, "Bye Sir, I Hope you came back!"); switch(listitem) { case 0: { if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money"); GivePlayerMoney(playerid, -50); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK); SendClientMessage(playerid, COLOR_GREEN, "Heres Your Sprunk Sir!"); } case 1: { if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money"); GivePlayerMoney(playerid, -100); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER); SendClientMessage(playerid, COLOR_GREEN, "Heres Your Beer Sir!"); } case 2: { if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money"); GivePlayerMoney(playerid, -100); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE); SendClientMessage(playerid, COLOR_GREEN, "Heres Your Wine Sir!"); } case 3: { if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money"); GivePlayerMoney(playerid, -50); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY); SendClientMessage(playerid, COLOR_GREEN, "Heres Your Cigarette Sir!"); } } return 1; } if(dialogid == 6) { if(!response) return SendClientMessage(playerid, COLOR_RED, "Bye Sir, I Hope you came back!"); switch(listitem) { case 0: { if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money"); GivePlayerMoney(playerid, -50); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK); SendClientMessage(playerid, COLOR_GREEN, "Heres Your Sprunk Sir!"); } case 1: { if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money"); GivePlayerMoney(playerid, -100); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER); SendClientMessage(playerid, COLOR_GREEN, "Heres Your Beer Sir!"); } case 2: { if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money"); GivePlayerMoney(playerid, -100); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE); SendClientMessage(playerid, COLOR_GREEN, "Heres Your Wine Sir!"); } case 3: { if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money"); GivePlayerMoney(playerid, -50); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY); SendClientMessage(playerid, COLOR_GREEN, "Heres Your Cigarette Sir!"); } } return 1; } if(dialogid == 2) { if(response == 1) { if(GetPVarInt(playerid,"RulesAccepted")!=1) { SetPVarInt(playerid,"RulesAccepted",1); SetPlayerScore(playerid, GetPlayerScore(playerid) + 5); GivePlayerMoney(playerid, 50000); SendClientMessage(playerid, COLOR_GREEN, "You Accept The Rules You Recieve $500000 + 5 Score Points"); } else { SendClientMessage(playerid, COLOR_RED, "You Already Accepted The Rules"); } } else { SendClientMessage(playerid, COLOR_RED, "You Ignore The Rules"); SendClientMessage(playerid, COLOR_RED, "You Have Been Kicked!, Reason : Ignoring The Rules"); new name[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s has been kicked, Reason: Ignoring Rules",name); SendClientMessageToAll(COLOR_RED,string); Kick(playerid); } return 1; } new veh = GetPlayerVehicleID(playerid); new engine,lights,alarm,doors,bonnet,boot,objective; if(dialogid == 1) { if(!response) return SendClientMessage(playerid, COLOR_RED, "You Cancel The Vehicle Control Dialog"); switch(listitem) { case 0: { if(GetPVarInt(playerid, "Lights") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective); SetPVarInt(playerid, "Lights", 1); SendClientMessage(playerid, COLOR_GREEN,"{FFFFFF}[SERVER]:{3DE3B1}Lights Activate On"); } else if(GetPVarInt(playerid, "Lights") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective); SetPVarInt(playerid, "Lights", 0); SendClientMessage(playerid, COLOR_RED,"{FFFFFF}[SERVER]:{FF002B}Lights Activate Off"); } } case 1: { if(GetPVarInt(playerid, "Bonnet") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective); SetPVarInt(playerid, "Bonnet", 1); SendClientMessage(playerid, COLOR_GREEN,"{FFFFFF}[SERVER]:{3DE3B1}Bonnet Open"); } else if(GetPVarInt(playerid, "Bonnet") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective); SetPVarInt(playerid, "Bonnet", 0); SendClientMessage(playerid, COLOR_RED,"{FFFFFF}[SERVER]:{FF002B}Bonnet Closed"); } } case 2: { if(GetPVarInt(playerid, "Boot") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective); SetPVarInt(playerid, "Boot", 1); SendClientMessage(playerid, COLOR_GREEN,"{FFFFFF}[SERVER]:{3DE3B1}Boot Open"); } else if(GetPVarInt(playerid, "Boot") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective); SetPVarInt(playerid, "Boot", 0); SendClientMessage(playerid, COLOR_RED,"{FFFFFF}[SERVER]:{FF002B}Boot Closed"); } } case 3: { if(GetPVarInt(playerid, "Doors") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective); SetPVarInt(playerid, "Doors", 1); SendClientMessage(playerid, COLOR_GREEN,"{FFFFFF}[SERVER]:{3DE3B1}Door Open"); } else if(GetPVarInt(playerid, "Doors") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective); SetPVarInt(playerid, "Doors", 0); SendClientMessage(playerid, COLOR_RED,"{FFFFFF}[SERVER]:{FF002B}Door Closed"); } } case 4: { if(GetPVarInt(playerid, "Engine") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); SetPVarInt(playerid, "Engine", 1); SendClientMessage(playerid, COLOR_GREEN,"{FFFFFF}[SERVER]:{3DE3B1}Engine On"); } else if(GetPVarInt(playerid, "Engine") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); SetPVarInt(playerid, "Engine", 0); SendClientMessage(playerid, COLOR_RED,"{FFFFFF}[SERVER]:{FF002B}Engine Off"); } } case 5: { if(GetPVarInt(playerid, "Alarm") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective); SetPVarInt(playerid, "Alarm", 1); SendClientMessage(playerid, COLOR_GREEN,"{FFFFFF}[SERVER]:{3DE3B1}Alarm On"); } else if(GetPVarInt(playerid, "Alarm") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective); SetPVarInt(playerid, "Alarm", 0); SendClientMessage(playerid, COLOR_RED,"{FFFFFF}[SERVER]:{FF002B}Alarm Off"); } } } return 1; } if(dialogid == DIALOGID) { if(response) { if(listitem == 0) { SetPlayerColor(playerid, 0x800080AA); SendClientMessage(playerid, COLOR_GREEN, "[SERVER]:Color Changed!"); } if(listitem == 1) { SetPlayerColor(playerid, 0xFFFF00AA); SendClientMessage(playerid, COLOR_GREEN, "[SERVER]:Color Changed!"); } if(listitem == 2) { SetPlayerColor(playerid, 0xff0000ff); SendClientMessage(playerid, COLOR_GREEN, "[SERVER]:Color Changed!"); } if(listitem == 3) { SetPlayerColor(playerid, 0x33CCFFAA); SendClientMessage(playerid, COLOR_GREEN, "[SERVER]:Color Changed!"); } if(listitem == 4) { SetPlayerColor(playerid, 0xFF9900AA); SendClientMessage(playerid, COLOR_GREEN, "[SERVER]:Color Changed!"); } if(listitem == 5) { SetPlayerColor(playerid, 0x33AA33AA); SendClientMessage(playerid, COLOR_GREEN, "[SERVER]:Color Changed!"); } if(listitem == 6) { SetPlayerColor(playerid, 0x4B00B0AA); SendClientMessage(playerid, COLOR_GREEN, "[SERVER]:Color Changed!"); } if(listitem == 7) { SetPlayerColor(playerid, 0xFF66FFAA); SendClientMessage(playerid, COLOR_GREEN, "[SERVER]:Color Changed!"); } if(listitem == 8) { SetPlayerColor(playerid, 0x00000000); SendClientMessage(playerid, COLOR_GREEN, "[SERVER]:Color Changed!"); } } return 1; } return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; }