setBanAdmin
Client-side
 Server-side
 Shared
 Pair: getBanAdmin
This function sets a new admin for a ban.
OOP Syntax Help! I don't understand this!
- Method: ban:setAdmin(...)
- Variable: .admin
Syntax
bool setBanAdmin ( ban theBan, string theAdmin )Required Arguments
- theBan: The ban you want to change the admin of.
- theAdmin: The new admin.
Returns
- bool: result
Returns true if changed, false otherwise.
Code Examples
 server   
 This example changes the ban admin to the admin's IP (If it's a player), when someone gets banned.
local function banHappened(theBan)    if (getElementType(source) == "player") then        local adminIP = getPlayerIP(source)        setBanAdmin(theBan,adminIP)    endendaddEventHandler("onBan", root, banHappened) 
 