SetPlayerName: Difference between revisions
Jump to navigation
Jump to search
(New page: {{Server function}} __NOTOC__ This function changes the specified player's name. ==Syntax== <syntaxhighlight lang="lua"> bool setPlayerName ( player thePlayer, string newName ) </syntaxhighlight> ===Requi...) |
No edit summary |
||
Line 23: | Line 23: | ||
==See Also== | ==See Also== | ||
{{Player functions}} |
Revision as of 14:01, 27 March 2009
This function changes the specified player's name.
Syntax
bool setPlayerName ( player thePlayer, string newName )
Required Arguments
- thePlayer: the player that will have its name set.
- newName: the new name to set for the player.
Returns
Returns true if the player name was changed succesfully, false if invalid arguments are specified.
Example
Click to collapse [-]
Server-- Add an example
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