AR/getBanUsername

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

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

Syntax

string getBanUsername ( ban theBan )

Required Arguments

  • theBan: الباند اللذي تريد ان تحضر منه اسم اللاعب

Returns

Returns a string of the username if everything was successful, false if invalid arguments are specified if there was no username specified for the ban.

مثال

هذا المثال عندما يتبند لاعب سوف يظهر بالشات اسمه

function retrieveBan(theBan)
    local ban = getBanUsername(theBan) -- يحضر اسم الباند
    if ban then -- اذا احضره
        outputChatBox("The following ban's username is: "..ban, getRootElement(), 255,255,255, true) -- يظهر لكل اللاعبين انه تم تبنيد شخص ويظهر اسمه
    end
end
addEventHandler("onBan",root,retrieveBan)

أنظر أيضاً