AR/getBanTime

From Multi Theft Auto: Wiki
Revision as of 19:15, 1 September 2012 by Tete (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

هذه الوظيفة سـ ترجع للوقت الذي تم التبنيد فيه بالثواني

Syntax

int getBanTime ( ban theBan )

Required Arguments

  • theBan: الباند الذي ترغب ان تتحقق من وقته

Returns

  • Returns an integer of the banning time in the format of seconds from the year 1970. Use in conjunction with getRealTime in order to retrieve detailed information.
  • Returns false if invalid arguments are specified if there was no banning time specified for the ban.

مثال

function retrieveBan(theBan)
    local ban = getBanTime(theBan)
    if ban then
        outputChatBox("The time of ban is: "..ban, getRootElement(), 255,255,255, true)
    end
end

See Also