Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onRegister ( player, user, pass, question, answer, name, country, age, pic )
- local serial = getPlayerSerial(player)
- info = executeSQLSelect ( "GgInfo", "serial", "serial = '" .. serial .. "'" )
- if ( type( info ) == "table" and #info == 0 ) or not info then
- executeSQLInsert ( "GgInfo", "'".. serial .."','topic','".. tostring (name) .."','".. tostring (country) .."','".. tostring (age) .."','".. tostring (pic) .."'" )
- end
- mail = executeSQLSelect ( "GgAcc", "serial", "serial = '" .. serial .. "'" )
- if ( type( mail ) == "table" and #mail == 0 ) or not mail then
- local serial = getPlayerSerial(player)
- executeSQLInsert ( "GgAcc", "'".. serial .."','".. tostring (user) .."','".. tostring (pass) .."','".. tostring (question) .."','".. tostring (answer) .."'" )
- outputChatBox("you have registered a new GgMail!", player, 255, 255, 0)
- triggerClientEvent(player, "login_now", getRootElement(), user )
- outputChatBox("user : "..user.."", player, 255, 255, 0)
- outputChatBox("pass : "..pass.."", player, 255, 255, 0)
- outputChatBox("Question : "..question.."", player, 255, 255, 0)
- outputChatBox("answer : "..answer.."", player, 255, 255, 0)
- outputChatBox("pic : "..pic.."", player, 255, 255, 0)
- else
- outputChatBox("You already have a GgMail, Please Login !!", player, 255, 255, 0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement