AR/reloadBans

From Multi Theft Auto: Wiki
Revision as of 03:02, 11 December 2012 by Tete (talk | contribs) (Created page with "__NOTOC__ {{Server function}} This function will reload the server ban list file. ==Syntax== <syntaxhighlight lang="lua"> bool reloadBans() </syntaxhighlight> ===Returns=== Returns ''true'' if the ban...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

This template will be deleted.

See Also