SetUnbanTime: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:
{{Server function}}
{{Server function}}
{{Needs_Example}}
{{Needs_Example}}
{{New items|4.0132|1.4|
{{New items|3.014|1.4|
This function set a new unbantime to [[ban]].
This function sets a new unban time of a given [[ban]] using unix timestamp (seconds since Jan 01 1970).
}}
}}


Line 12: Line 12:


===Required Arguments===  
===Required Arguments===  
*'''theBan:''' The [[ban]] in which you wish to retrieve the username of.
*'''theBan:''' The [[ban]] of which to change the unban time of
*'''theTime:''' the new unban time
*'''theTime:''' the new unban time


===Returns===
===Returns===
Returns ''true'' when is changed, ''false'' otherwise.
Returns ''true'' if changed successfully, ''false'' otherwise.


==Example==
==Example==

Revision as of 13:24, 24 November 2015

Accessories-text-editor.png Script Example Missing Function SetUnbanTime needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

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

--TODO

See Also