SetUnbanTime: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Removed {{Needs_Example}})
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Server function}}
{{Server function}}
{{Needs_Example}}
{{New items|3.014|1.4|
{{New items|3.014|1.4|
This function sets a new unban time of a given [[ban]] using unix timestamp (seconds since Jan 01 1970).
This function sets a new unban time of a given [[ban]] using unix timestamp (seconds since Jan 01 1970).

Revision as of 19:36, 16 July 2016

This function sets a new unban time of a given ban using unix timestamp (seconds since Jan 01 1970).

Syntax

bool setUnbanTime( ban theBan, int theTime )

Required Arguments

  • theBan: The ban of which to change the unban time of
  • theTime: the new unban time

Returns

Returns true if changed successfully, false otherwise.

Example

addCommandHandler("banMe",
function (player)
local ban = banPlayer(player)
setUnbanTime(ban, 500)
end
)

See Also