GetPlayerAccount: Difference between revisions
Jump to navigation
Jump to search
(→Syntax) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Needs Checking|Should this page be removed, as the function doesn't seem to be implented at all? There's already [[getClientAccount]]. --[[User:Awwu|Awwu]] 08:57, 5 April 2008 (CDT)}} | |||
__NOTOC__ | __NOTOC__ | ||
{{Server function}} | {{Server function}} |
Revision as of 13:57, 5 April 2008
This article needs checking. | |
Reason(s): Should this page be removed, as the function doesn't seem to be implented at all? There's already getClientAccount. --Awwu 08:57, 5 April 2008 (CDT) |
Returns the accountname of the player
Syntax
string getPlayerAccount ( player thePlayer )
Required Arguments
- thePlayer: The player you wish the retrieve the name of the account from.
Returns
Returns an string with name of the account. -- TODO -- What does it return if it isnt known?
Example
When a player types '/account' this example retrieves the player's accountname, and prints it to his screen.
function viewAccount(thePlayer, command) -- get the name of the account from thePlayer local accountName = getPlayerAccount(thePlayer) -- output the message to the player outputChatBox("Your account name is " .. accountName, thePlayer) end -- add the console command addCommandHandler("account", viewAccount)
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState