ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getAccountsByIP

Function

getAccountsByIP

ServerAccountsIdentical to MTA:SA

Returns the accounts last used from the given IP address.

Syntax

table getAccountsByIP(string ip)

Arguments

ipstring
IP address.

Returns

A table of accounts.

Example

addEventHandler("onPlayerJoin", root, function()
    local n = #getAccountsByIP(getPlayerIP(source))
    if n > 0 then
        outputChatBox("Masz już " .. n .. " kont(a) z tego adresu.", source)
    end
end)