Scripting/Server/Functions/MessagePlayer
Sends a chat line to one player. The optional colour is a Colour(r,g,b) instance or an integer 0xRRGGBB; the default is white. Note the order: text first, then the player.
Syntax
MessagePlayer(text, player [, colour])Arguments
- string text
- Player player
- Colour colour (optional)
Example
function onPlayerJoin( player )
{
MessagePlayer( "Welcome to my server!", player, Colour( 0, 255, 128 ) );
}Related pages
- Message
- MessageAllExcept
- SendPlayerMessage
- SmallMessage
- BigMessage
- HelpMessage
- PagerMessage
- ClearMessages
- PlayFrontEndSound
- PlaySuspectLastSeen
Section: Messages and chat
Categories: Server functions | Messages and chat