AR/getBanUsername: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server function}} This function will return the username of the specified ban. ==Syntax== <syntaxhighlight lang="lua"> string getBanUsername ( ban theBan ) </syntaxhighlight> ===Requir...")
 
Line 25: Line 25:


==See Also==
==See Also==
{{Admin functions}}
{{AR/Admin_functions}}
[[ru:getBanUsername]]
[[ru:getBanUsername]]

Revision as of 18:28, 1 September 2012

This function will return the username of the specified ban.

Syntax

string getBanUsername ( ban theBan )

Required Arguments

  • theBan: The ban in which you wish to retrieve the username of.

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.

Example

function retrieveBan(theBan)
    local ban = getBanUsername(theBan)
    if ban then
        outputChatBox("The following bans username is: "..ban, getRootElement(), 255,255,255, true)
    end
end

See Also