Skip to content

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.

SendClientMessageToName(name, color, text)
Parameter Type
name string the player’s name
color number the color, 0xRRGGBBAA
text string the line

boolean - false when nobody on any level has the name

if not SendClientMessageToName(args, 0xFFD070FF, "A letter for you.") then
SendClientMessage(pid, 0xFF6060FF, "Nobody by that name is here.")
end

GetPlayerRegion · GetClusterPlayers · the Regions group of the index