Leaderboard


Popular Content

Showing content with the highest reputation on 28/12/19 in all areas

  1. 1 point
    Update v1.3: Nou: Am pus sunete in loc de text cand deschizi/inchizi capota,usa,portbagaju,farurile si motorul. Link v1.3: https://mega.nz/#!7PYlWKJA!LZu9VetW20AxkHA4lVrkZjTmItet1QsV0sMDUQYBM08
  2. 1 point
    getVehicleController - Obtém quem está dirigindo o veículo. getVehicleOccupant - Obtém o jogador que está ocupando determinado assento do veículo.
  3. 1 point
    ولكم باك, للآن مازلت سيء جداً في التصميم والتنسيق يحتاج لك كورس في التصميم والتنسيق + ولازم ترتب موضوعك اكثر بخصوص السيرفر انت كذا قاعد تخسف مجهوداتك!
  4. 1 point
    PHP Mail sending: https://www.php.net/manual/en/function.mail.php PHP GET requests: https://www.php.net/manual/en/reserved.variables.get.php MTA fetchRemote: https://wiki.multitheftauto.com/wiki/FetchRemote PHP CODE <?php if ($_SERVER["REQUEST_METHOD"] != "GET") die("Wrong request method."); // allow only GET requests. // READ VALUES FROM URL (the GET request's values) if (!isset($_GET["api_key"])) die("Value 'api_key' missing."); $api_key = $_GET["api_key"]; if (!isset($_GET["email"])) die("Value 'email' missing."); $email = $_GET["email"]; if (!isset($_GET["subject"])) die("Value 'subject' missing."); $subject = $_GET["subject"]; if (!isset($_GET["message"])) die("Value 'message' missing."); $message = $_GET["message"]; // CHECK IS API KEY ALLOWED? $allowed_api_keys = array("a5BNx7hspRZ5dWJ30", "q9bXRAawamr5K5ab"); // ... list of allow keys if (!in_array($api_key, $allowed_api_keys)) die("Wrong api key! (".$api_key.")"); // SEND THE EMAIL $headers = array( 'From' => 'youremail@address.com', // replace 'Reply-To' => 'youremail@address.com', // replace 'X-Mailer' => 'PHP/' . phpversion() ); if (mail($email, $subject, $message, $headers)) { die("Email sent to '".$email."'"); } else { die("Failed to send email '".$email."'"); } ?> And now, you only need to call this php file with values. Example: http://YOURDOMAIN.COM/email_api.php?api_key=a5BNx7hspRZ5dWJ30&email=targetemail@gmail.com&subject=subject_text&message=message_text And you can call from MTA with fetchRemote: fetchRemote( "http://YOURDOMAIN.COM/email_api.php?api_key=a5BNx7hspRZ5dWJ30&email=targetemail@gmail.com&subject=subject_text&message=message_text", function (response, errno) if (errno == 0) then print("fetchRemote success"); else print("fetchRemote failed. (error: "..errno..")"); end end );