0% found this document useful (0 votes)
370 views2 pages

Aimlockzz (2) So

The script prompts the user for a password and, if correct, presents a menu of options related to game functionalities. Upon selecting an option, it allows the user to choose a file and then opens either Free Fire or Free Fire Max based on the user's selection. If the password is incorrect, an alert notifies the user of the failure.

Uploaded by

sulavbk51
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
370 views2 pages

Aimlockzz (2) So

The script prompts the user for a password and, if correct, presents a menu of options related to game functionalities. Upon selecting an option, it allows the user to choose a file and then opens either Free Fire or Free Fire Max based on the user's selection. If the password is incorrect, an alert notifies the user of the failure.

Uploaded by

sulavbk51
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

// Variables used by Scriptable.

// These must be at the very top of the file. Do not edit.


// icon-color: cyan; icon-glyph: fish;
let password = "000";

let input = await promptPassword();

if (input === password) {


let options = ["Chạy BOOT FPS", "FIX RECOIL", "AIMBOT", "Nhẹ Tâm",];
let selectedOption = await showMenu(options);

if (selectedOption !== -1) {


let option = options[selectedOption];
let alert = new Alert();
alert.message = `Đã bật ${option}`;
alert.addAction("OK");
await alert.present();

let fileURL = await DocumentPicker.open();


if (fileURL) {
let alert = new Alert();
alert.message = `Đã chọn tệp: ${fileURL}`;
alert.addAction("OK");
await alert.present();
}

let urls = ["Mở Free Fire", "Mở Free Fire Max"];


let selectedURL = await showMenu(urls);

if (selectedURL === 0) {
Safari.open("freefire://");
} else if (selectedURL === 1) {
Safari.open("freefiremax://");
}
}
} else {
let alert = new Alert();
alert.message = "Sai mật khẩu!";
alert.addAction("OK");
await alert.present();
}

function promptPassword() {
let alert = new Alert();
alert.title = "Nhập Mật Khẩu";
alert.message = "Vui lòng nhập mật khẩu:";
alert.addTextField("TienBoRai");
alert.addAction("OK");
return alert.present().then(result => alert.textFieldValue(0));
}

function showMenu(options) {
let alert = new Alert();
alert.title = "Chọn Chức Năng";
for (let option of options) {
alert.addAction(option);
}
return alert.presentSheet().then(result => result);
}

You might also like