AR/getUnbanTime
Jump to navigation
Jump to search
هذه الوظيفة سـ ترجع لوقت فك الباند المحدد بالثواني
Syntax
int getUnbanTime ( ban theBan )
Required Arguments
- theBan: فك الباند الذي تريد ان تتحقق من وقت حدوثه
Returns
- Returns an integer of the unbanning 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 or if there was no unbanning time specified for the ban.
مثال
function listBans ()
-- سترجع لـ جدول الباندات في السيرفر
local bansList = getBans()
-- لكل باند افعل التالي
for banID, ban in ipairs ( banList ) do
-- يتحقق من اي بي الباند
local nick = getBanNick ( ban )
-- يتحقق من الوقت الذي تم فك الباند من الاعب فيه
local timetounban = getUnbanTime ( ban )
if nick then
-- اخراج معلومات الباند في الشات ..
outputChatBox ( "Ban #" .. banID .. ": " .. nick.." || Time to unban: "..timetounban , source, 255, 0, 0 )
end
end
end
-- جعل كل هذا الحدث في هذه الكلمة ادناه
addCommandHandler ( "bans", listBans )