Jump to content

I do not get a serial when installing MTA:Sa Dm dp2.3


Recommended Posts

HELP!

i need to log in in my own server as a admin, but i need a serial for that, i do not get a serial when installing MTA:SA.

maybe it is something with MTA:race, i have both games installed, i got some kind of login screen when installing Race.

Does someone know how do i get a serial, i have a Mta:sa community account.

(Server: [EVIL]clan server)

Thank you,

Beethoven

Link to comment

thank you for trying,

when i try to login:

[20:08:56] CONNECT: [EVIL]Mozart connected (IP: 84.105.140.88)

[20:09:03] JOIN: [EVIL]Mozart joined the game (IP: 84.105.140.88)

[20:09:03] WARNING: admin_server.lua: Access denied @ 'callRemote' - Line: 227

Callremote leads to a MTA:sa community site, and the next line in the script is something like checkserial.

Link to comment

here is the script that need the serial:

function isValidSerial ( serial )

return string.gmatch ( serial, "%w%w%w%w-%w%w%w%w-%w%w%w%w-%w%w%w%w" )

end

function getWeatherNameFromID ( weather )

return iif ( aWeathers[weather], aWeathers[weather], "Unknown" )

end

function aPlayerJoin ()

if ( _options.welcome ) then

outputChatBox ( _options.welcome, source, 255, 100, 100 )

end

aPlayerInitialize ( source )

for id, player in ipairs(getElementsByType("player")) do

if ( aPlayers[player]["admin"] ) then

triggerClientEvent ( player, "aClientPlayerJoin", source, getClientIP ( source ), getPlayerUserName ( source ), getPlayerSerial ( source ), aPlayers[source]["admin"], aPlayers[source]["country"] )

end

end

setPlayerGravity ( source, getGravity() )

end

function aPlayerInitialize ( player )

local serial = getPlayerSerial ( player )

if ( ( serial == false ) or ( string.len ( serial ) ~= 19 ) ) then

outputChatBox ( "ERROR: "..getClientName ( player ).." - Invalid Serial." )

kickPlayer ( player, "Invalid Serial" )

else

callRemote ( "http://mtabeta.com/mta/verify.php", aPlayerSerialCheck, player, getPlayerUserName ( player ), getPlayerSerial ( player ) )

aPlayers[player] = {}

aPlayers[player]["admin"] = false

aPlayers[player]["country"] = getPlayerCountry ( player )

end

end

function aPlayerSerialCheck ( player, result )

if ( result == 0 ) then

kickPlayer ( player, "Invalid serial" )

end

end

Link to comment
  • Recently Browsing   0 members

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