Jump to content

HELP - Register on RP


Asystolic

Recommended Posts

Hello,

My friend asked me, if I can write this topic, meanwhile he is waiting for the link via e-mail to verify his account.

Anyway, what am I talking about. He wants to create a RP server. But when he try to register there, a window appear, that you have to register on a web-page.

Here are few lines he sent me.

function LoginScreen_startRegister()

LoginScreen_showWarningMessage( "You can register an account\nat http://mta.vg! )

end

and also this:

-- Check the application state

if (tonumber(accountData["appstate"]) == 0) then

triggerClientEvent(client, "accounts:login:attempt", client, 5, "You need to send in an application to play on this server." )

return

elseif (tonumber(accountData["appstate"]) == 1) then

triggerClientEvent(client, "accounts:login:attempt", client, 4, "Your application is still pending." )

return

elseif (tonumber(accountData["appstate"]) == 2) then

triggerClientEvent(client, "accounts:login:attempt", client, 3, "Your application has been denied, you can remake one at http://mta.vg. )

return

end

local forceAppCheckQuery = mysql:query("SELECT `username`,`appstate` FROM `accounts` WHERE `ip`='" .. mysql:escape_string(getPlayerIP(client)) .. "' OR `mtaserial`='" .. mysql:escape_string(getPlayerSerial(client)) .. "'")

if forceAppCheckQuery then

while true do

local forceAppRow = mysql:fetch_assoc(forceAppQuery)

if not forceAppRow then break end

if (tonumber(forceAppRow["appstate"]) == 1) then

triggerClientEvent(client, "accounts:login:attempt", client, 4, "Your application is still pending on account "..forceAppRow["username"].."." )

mysql:free_result(forceAppCheckQuery)

return

elseif (tonumber(forceAppRow["appstate"]) == 2) then

triggerClientEvent(client, "accounts:login:attempt", client, 3, "Your application has been denied on account "..forceAppRow["username"]..", you can remake one at http://mta.vg. )

mysql:free_result(forceAppCheckQuery)

return

end

He is going to answer to all replies from you, I just wrote this topic. Can't you just help, how to make, that you'll be able to register in game?

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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