SetPlayerName: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Needs example)
Line 24: Line 24:
==See Also==
==See Also==
{{Player functions}}
{{Player functions}}
[[Category:Needs Example]]

Revision as of 07:33, 19 June 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