SetClientName: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
Returns ''true'' if the client's name was changed succesfully, ''false'' if invalid arguments are specified. | Returns ''true'' if the client's name was changed succesfully, ''false'' if invalid arguments are specified. | ||
==Example== | |||
<section name="Server" class="server" show="false"> | <section name="Server" class="server" show="false"> | ||
This example adds a tag before a player's nickname via a /changetag command | This example adds a tag before a player's nickname via a /changetag command | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> |
Revision as of 11:58, 12 August 2007
This function changes the specified client's name.
Syntax
bool setClientName ( client theClient, string newName )
Required Arguments
- theClient: the client that will have its name set.
- newName: the new name to set for the client.
Returns
Returns true if the client's name was changed succesfully, false if invalid arguments are specified.
Example
Click to expand [+]
Server