-
Posts
304 -
Joined
-
Last visited
Everything posted by FatalTerror
-
It would be nice if you look at the code given, you have already made that mistake on many topics already created
-
Why not add dxgui in a future release of guieditor? Many scripters use it
-
Great idea, it's possible But i don't know if i make it for community Edit: I make it in 20 min !
-
That scripts will use callRemote too ? Yeah ^^ I'm fan of callRemote lol
-
Yea it's the problem with the mail() function...
-
Wow I'have found 6 errors and you ? addCommandHandler("reset", function(thePlayer) setElementData(thePlayer, "kills", 0) outputChatBox(getPlayerName(thePlayer).." has reset his stats !", getRootElement(), 255, 255, 255, true) end)
-
If you don't see... have error with the gamemode
-
What do you mean with "plans"? I've ideas for future Mail client and more ideas for new scripts ...
-
The user from the server and deliver is specified site. Hm no... The sender is the website and the deliver is the IMAP protocol (hotmail, yahoo, gmail ...) The server send only informations for the website (subject, message...) If you website accept the function mail(), the sender will be "[email protected]". You can change this informations in mail.php $header = "From: \"MTA Team\"<[email protected]>".$passage_ligne; $header.= "Reply-to: \"MTA Team\" <[email protected]>".$passage_ligne; $header.= "MIME-Version: 1.0".$passage_ligne; $header.= "Content-Type: multipart/alternative;".$passage_ligne." boundary=\"$boundary\"".$passage_ligne;
-
LoL i've find XSS error in this forum
-
Hi, In the setPlayerWantedLevel() the element "thePlayer" don't exist. Try to change it to: setPlayerWantedLevel(killer, 3) Edit: For the outputChatBox(), you use outputChatBox("TEXT", getRootElement(), 255, 255, 255, true) -- To show colors
-
[TUT] Protect your client-sided code with fileDelete
FatalTerror replied to NeXTreme's topic in Tutorials
Great, it's better than Lua compile -
Your code seems to be correct ._.
-
For the 1.1 i've make any changes, you can download the PHP files here: Download link This is the PHP SDK library of MTA. I've include it on the PHP files. Community page
-
You mean Variable = {} for index, vehicle in pairs(getElementsByType("vehicle")) do Variable[index] = 100 end ?
-
I will add it on the future release. Bug detected: XSS Error, this can be fatal for the website... Don't try HTML balises are incorrectly added in the input
-
Okay thanks, I thought there was something easier but it does not matter
-
Hi community users, I start make a script for my server and I realized something. I will seek help on the wiki to find an event when two vehicles to touch. But I found nothing. If you know how do if a vehicle was touch by another and have the element of the other vehicle. Thx to help me Thanks !
-
Thanks, I hope that other scripters will do great things with this !
-
Release 1.1 Modifications Simple Captcha added Menu for visual items New style I don't know if the captcha is sufficient... function generateCaptcha() local letters = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"} local letter1 = math.random(1, #letters) local letter2 = math.random(1, #letters) local letter3 = math.random(1, #letters) local number1 = math.random(1, 9) local code = ""..letters[letter1]..letters[letter3]..letters[letter2]..letters[number1].."" guiSetText(lbl_captcha, "Captcha ("..code.."):") return code end I've added function to add special effects in your email. Exemple: add your text in bold, use the html balises addEventHandler("onClientGUIClick", getRootElement(), function() if (source == mnu_bold)then local mail_message = guiGetText(message) local thecode = "".." ".."" guiSetText(message, ""..mail_message.." "..thecode.."") elseif (source == mnu_italic)then local mail_message = guiGetText(message) local thecode = "".." ".."" guiSetText(message, ""..mail_message.." "..thecode.."") elseif (source == mnu_under)then local mail_message = guiGetText(message) local thecode = "".." ".."" guiSetText(message, ""..mail_message.." "..thecode.."") elseif (source == mnu_url)then local mail_message = guiGetText(message) local thecode = "\"LINK\">".." ".."" guiSetText(message, ""..mail_message.." "..thecode.."") elseif (source == mnu_img)then local mail_message = guiGetText(message) local thecode = "\"LINK\"/>" guiSetText(message, ""..mail_message.." "..thecode.."") elseif (source == mnu_break)then local mail_message = guiGetText(message) local thecode = " " guiSetText(message, ""..mail_message.." "..thecode.."") end end) Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=3120
-
Anti-spam o_O? I can add a Captcha... but not more ^^ @Castillo: It's possible but you must have the username & password of the account. This is not very secure...
-
Thanks, now Castillo you can make again your Computer system with a real mail client
-
Mail Client Hi everybody, Today i've make one client mail. This script send mail for email with the function PHP mail() How this work? On the server: You write /mail and a Gui start. You type the mail adress and the subject of the mail. You write your message and press in Send The script will take all informations and send on the website via callRemote() On the website: The website will take informations and send everything via mail() function. If the message are successfully sended, this return true. On hotmail: Hotmail have successfully receive the message and he show it. Code PHP File: <?php include( "mta_sdk.php" ); $input = mta::getInput(); $player = $input[0]; $target = $input[1]; $subject = $input[2]; $message = $input[3]; $mail = $target; // Déclaration de l'adresse de destination. if (!preg_match("#^[a-z0-9._-]+@(hotmail|live|msn).[a-z]{2,4}$#", $mail)) // On filtre les serveurs qui rencontrent des bogues. { $passage_ligne = "\r\n"; } else { $passage_ligne = "\n"; } //=====Déclaration des messages au format texte et au format HTML. $message_txt = " "; $message_html = "<html> <body> <center><img src=\"https://community.multitheftauto.com/images/gallery/twitter/5145.png\" /></center><br /> ".$message."<br /> <br /> <br /> <b>© AMG Team</b> This message has been sended by Client Mail script<br /> </body> </html>"; //========== //=====Création de la boundary $boundary = "-----=".md5(rand()); //========== //=====Définition du sujet. $sujet = "MTA Team - ".$subject.""; //========= //=====Création du header de l'e-mail. $header = "From: \"MTA Team\"<[email protected]>".$passage_ligne; $header.= "Reply-to: \"MTA Team\" <[email protected]>".$passage_ligne; $header.= "MIME-Version: 1.0".$passage_ligne; $header.= "Content-Type: multipart/alternative;".$passage_ligne." boundary=\"$boundary\"".$passage_ligne; //========== //=====Création du message. $message = $passage_ligne."--".$boundary.$passage_ligne; $message.= $passage_ligne."--".$boundary.$passage_ligne; //=====Ajout du message au format HTML $message.= "Content-Type: text/html; charset=\"ISO-8859-1\"".$passage_ligne; $message.= "Content-Transfer-Encoding: 8bit".$passage_ligne; $message.= $passage_ligne.$message_html.$passage_ligne; //========== $message.= $passage_ligne."--".$boundary."--".$passage_ligne; $message.= $passage_ligne."--".$boundary."--".$passage_ligne; //========== //=====Envoi de l'e-mail. mail($mail,$sujet,$message,$header); //========== $theresult = true; mta::doReturn($theresult, $player); ?> Server side: function mail_return(result, player) if result == true then outputChatBox("#ABCDEF* You mail are successfully sended !", player, 255, 255, 255, true) else outputChatBox("Sorry, but we can't send your mail. Reasons: Internal error or PHP error.", player, 255, 255, 255, true) end end addEvent("sendMessage", true) addEventHandler("sendMessage", getRootElement(), function(player, mail_target, mail_subject, mail_message) callRemote ( "http://www.watzuku.com/MTA/mail.php", mail_return, player, mail_target, mail_subject, mail_message ) end) Client side: window = guiCreateWindow(129,189,484,378,"AMG | Client Mail | by FatalTerror",false) target = guiCreateEdit(9,63,236,32,"",false, window) target_lbl = guiCreateLabel(11,40,237,20,"Destination:",false,window) subject = guiCreateEdit(251,63,224,32,"",false,window) send = guiCreateButton(392,24,83,32,"Send mail",false,window) message = guiCreateMemo(9,99,466,270,"",false,window) subject_lbl = guiCreateLabel(254,40,209,20,"Subject:",false,window) close = guiCreateButton(9,23,50,20,"Close",false,window) guiSetVisible(window, false) addCommandHandler("mail", function() guiSetVisible(window, true) showCursor(true) guiSetInputEnabled ( true) end) addEventHandler("onClientGUIClick", getRootElement(), function() if (source == send)then local mail_subject = guiGetText(subject) local mail_message = guiGetText(message) local mail_target = guiGetText(target) local player = getLocalPlayer() triggerServerEvent("sendMessage", getLocalPlayer(), player, mail_target, mail_subject, mail_message) elseif (source == close)then guiSetVisible(window, false) showCursor(false) guiSetInputEnabled ( false) end end) Download Script for server: https://community.multitheftauto.com/index.php?p=resources&s=details&id=3120 Files for website:Download link Thx, FatalTerror
-
Yeah me too, but with Facebook have "permission" system. The user must autorise the application to post in his wall. This system suck... I don't know how continue