SetClientName: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
{{Server function}} | |||
__NOTOC__ | __NOTOC__ | ||
This function changes the specified [[client]]'s name. | This function changes the specified [[client]]'s name. | ||
Line 14: | 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. | ||
<section name="Server" class="server" show="false"> | |||
==Example== | ==Example== | ||
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 | ||
Line 48: | Line 50: | ||
addCommandHandler ( "changetag", tagPlayer ) | addCommandHandler ( "changetag", tagPlayer ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | |||
==See Also== | ==See Also== | ||
{{Client_functions}} | {{Client_functions}} |
Revision as of 15:28, 11 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.
Click to expand [+]
Server