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

Function

getBanAdmin

ServerAdministration and bansIdentical to MTA:SA

Returns the name of whoever issued the ban.

Syntax

string getBanAdmin(ban ban)

Arguments

banban
The ban handle.

Returns

The admin's name, or false if none was stored.

Example

for _, ban in ipairs(getBans()) do
    print((getBanNick(ban) or "?") .. " - zbanował: " .. (getBanAdmin(ban) or "konsola"))
end

See also