SendClientMessageToName
A line to a player by name, on whichever level they are.
Player ids belong to a level, so a name is how one level addresses a player on another. Every player of that name gets the line.
Syntax
Section titled “Syntax”SendClientMessageToName(name, color, text)| Parameter | Type | |
|---|---|---|
name |
string | the player’s name |
color |
number | the color, 0xRRGGBBAA |
text |
string | the line |
Returns
Section titled “Returns”boolean - false when nobody on any level has the name
Example
Section titled “Example”if not SendClientMessageToName(args, 0xFFD070FF, "A letter for you.") then SendClientMessage(pid, 0xFF6060FF, "Nobody by that name is here.")endSee also
Section titled “See also”GetPlayerRegion · GetClusterPlayers · the Regions group of the index
