Jump to content

[How to] Doing a Captcha system


drk

Recommended Posts

Hi everyone ! I will post How to do a captcha system. You can integrate this to your code.

This is a simple code.

First, you have to create a LUA file. Open the file and write this:

function myCaptcha() 
                       local code = { "a", "b", "c", "d", "e", "f", "g", "h", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "y", "z", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", ",", ".", "'", "?" } 
                       local randomCode = math.random ( 2, #code ) 
                       local theCode = " "..code[randomCode].." " 
                       guiSetText ( var, "Code: [ " .. theCode .. " ]" ) 
            return theCode 
end 

Now, on your GUI code set the varible name "var" to your GUI label on the code will appear.

Done, if you have did correctly the captcha code will apear on the GUI label of your GUI when you start the resource of your GUI.

EDIT: On the next post I will explain how to verify if you have entered the correct code.

Link to comment
Dude, this captcha will only create one character, and why do you even need it? Captchas exist to prevent bot spam, show me any bot that is able to connect to mta servers and run scripts, i've never seen any.

from few months an idiot using bot program register in my server 180 thousand accounts.

Link to comment
Dude, this captcha will only create one character, and why do you even need it? Captchas exist to prevent bot spam, show me any bot that is able to connect to mta servers and run scripts, i've never seen any.

...yet.

Don't underestimate these guys:

8155d1320338319-nuevas-fotos-de-gordo-granudo-butthurt-dweller-original.jpg

They can do more than you know, if they spend enough hours in front of a PC.

Damn hackers.

Link to comment
Dude, this captcha will only create one character, and why do you even need it? Captchas exist to prevent bot spam, show me any bot that is able to connect to mta servers and run scripts, i've never seen any.

Isn't bots, but Hacks yes. My friend was created a hack that can get admin privilegies in servers, run scripts, and bug the freeroam resource ^^ And it work, i've tested.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...