ReloadBans

From Multi Theft Auto: Wiki
Revision as of 21:10, 24 October 2020 by Danilo (talk | contribs) (oop)
Jump to navigation Jump to search

This function will reload the server ban list file.

Syntax

bool reloadBans()


OOP Syntax Help! I don't understand this!

Method: Ban.reload(...)


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

This template will be deleted.

See Also