AR/removeBan

From Multi Theft Auto: Wiki
Revision as of 01:02, 11 December 2012 by Tete (talk | contribs)
Jump to navigation Jump to search

هذه الوظيفة تزيل الباند من السيرفر

Syntax

bool removeBan ( ban theBan, [ player responsibleElement ] )

Required Arguments

  • theBan: الباند المراد ازالته

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • responsibleElement: root الشيء المسؤل عن الباند , يمكنه ان يكون لاعب أو

Returns

Returns true if the ban was removed succesfully, false if invalid arguments are specified.

Example

هذا المثال يزيل كل باندات السيرفر ويخرج بالشات تنبيه للاعبين

addEventHandler("onResourceStart",resourceRoot,
    function()
        local bans = getBans --[[ نختصر
        getBans
        بـ
        bans
        وهو أحضار جميع باندات السيرفر
        ]]
	for i,d in ipairs(bans)do -- نخرج جميع الباندات
		local nick = getBanNick(d) -- حرف الدي هو جميع الباندات للمعلومية
                --[[ نختصر
                getBanNick
                بـ
                nick
                وهو أحضار اسم اللاعبين المتبندين 
                ]]
		if(removeBan(d))then -- اذا تم ازالة جميع الباندات
			ouputChatBox(nick.."has been removed from ban",root) -- يخرج بالشات اسماء اللذين تم ازالة بانداتهم
		end
	end
    end
)

See Also