ReloadBans
From Multi Theft Auto: Wiki
This function will reload the server ban list file.
Syntax
bool reloadBans()
Returns
Returns true if the ban list was reloaded successfully, false otherwise.
Example
This example add command "reloadban" to reload the server ban list file.
function ReBan (player) if (reloadBans()) then outputChatBox("Bans has been reloaded successfully.",player) else outputChatBox("Failed to Reload Bans.",player) end end addCommandHandler("reloadban",ReBan)
Requirements
Minimum supported server | 1.3.0-9.03931 |
---|---|
Minimum supported client | n/a |
Note: Using this function requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.3.0-9.03931" />
See Also
- addBan
- banPlayer
- getBanAdmin
- getBanIP
- getBanNick
- getBanReason
- getBanSerial
- getBanTime
- getBanUsername
- getBans
- getUnbanTime
- isBan
- kickPlayer
- setBanAdmin
- setBanNick
- setBanReason
- setUnbanTime
- reloadBans
- removeBan