/////////////////////////////////// // Kit, Ski, Mine, Grenade v1.0 // /////////////////////////////////// // By Sciptio // /////////////////////////////////// // Just add the line exec("scipt_ksmg.cs"); to your autoexec.cs // Dont touch the line below editActionMap("playMap.sae"); /////////////////////////// // Binding & Config Area // /////////////////////////// //Kit Area //Repair Kit Key bindCommand(keyboard0, make, "h", TO, "kit::go();"); bindCommand(keyboard0, break, "h", TO, ""); // Amount of kits to buy $kit::times = 6; //Ski Area //Ski Key bindCommand(keyboard0, make, "rcontrol", TO, "ski::ski(1);"); bindCommand(keyboard0, break, "rcontrol", TO, "ski::ski(0);"); // Ski jumping delay $ski::skiDelay = 0.001; //Mine Area bindCommand(keyboard0, make, "numpad0", TO, "remoteEval(2048, throwItem, 40, 1000);"); bindCommand(keyboard0, break, "numpad0", TO, ""); //Grenade Area bindCommand(keyboard0, make, "end", TO, "remoteEval(2048, throwItem, 41, 1000);"); bindCommand(keyboard0, break, "end", TO, ""); ////////////////// // Function Area// ////////////////// //Kit Function function kit::go() { for(%kit = 1; %kit <= $kit::times; %kit++) { remoteEval(2048, useItem, 39); remoteEval(2048, buyItem, 39); } } //Ski Function function ski::ski(%start) { // Ski Key Pressed if(%start) { if(!$ski::jumping) { $ski::jumping = 1; ski::jumpingo(); } } else $ski::jumping = 0; } function ski::Jumpingo() { if($ski::jumping) { postAction(2048, IDACTION_MOVEUP, -0); schedule("ski::Jumpingo();", $ski::skiDelay); } }