Jump to content

[How to] Doing a Captcha system


drk

Recommended Posts

Posted

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.

EPT Team Server Development: 0%

Learning C++ | C++ is amazing xD

Posted

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.

Do not PM me, im not going to read it anyway.

Posted

Indeed, I never seen a bot that could do that too, so it's useless.

P.S: You just copy pasted FatalTerror's script.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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.

CiTLh.png
Posted
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.

Posted
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.

EPT Team Server Development: 0%

Learning C++ | C++ is amazing xD

Posted

You're the same person who asked how to hack a server..

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
You're the same person who asked how to hack a server..

I know -_-

EPT Team Server Development: 0%

Learning C++ | C++ is amazing xD

Posted
Oh, that's noob iMortal.

Yeah, i'm noob, so why you keep asking questions here on the forum how to fix mistakes?

You were not the best ? o.O Do not answer anything that is not necessary, or you'll get banned ^^

EPT Team Server Development: 0%

Learning C++ | C++ is amazing xD

Posted

I tried to hack the server with one text box, but I took an arrow in the knee.

If I helped you, please click the like button on the right ;) Thanks!

Posted

OK OK OK OK OK I'm noob! I just posted here the code to help some people and forgot about copyright. Any problems?

EPT Team Server Development: 0%

Learning C++ | C++ is amazing xD

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...