SetBanAdmin
Jump to navigation
Jump to search
Syntax
bool setBanAdmin ( ban theBan, string theAdmin )
Required Arguments
- theBan: The ban you want to change the admin of.
- theAdmin: The new admin.
Returns
Returns true if changed, false otherwise.
Example
This example changes the ban admin to the admin's IP (If it's a player), if someone gets banned.
function banHappened(theBan) if getElementType(source) == "player" then local adminIP = getPlayerIP(source) setBanAdmin(theBan,adminIP) end end addEventHandler( "onBan", getRootElement(), banHappened )
See Also
- addBan
- banPlayer
- getBanAdmin
- getBanIP
- getBanNick
- getBanReason
- getBanSerial
- getBanTime
- getBanUsername
- getBans
- getUnbanTime
- isBan
- kickPlayer
- setBanAdmin
- setBanNick
- setBanReason
- setUnbanTime
- reloadBans
- removeBan