SendClientMessage

From SA-MP Wiki

Revision as of 03:30, 20 June 2012; view current revision
←Older revision | Newer revision→
Jump to: navigation, search


This function can be used to send a message to a certain player with any chosen color. The whole line in the chatbox will be in the set color unless colour embedding is used with 0.3c or later.


Parameters:
(playerid, color, const message[])
playeridThe playerid you would like to display the message for.
colorThe color it should be in.
const message[]The text you would like to display. max len displayable: 144
ReturnsThis function doesn't return a specific value


public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, COLOR_GREEN, "Welcome to my server!");
    return 1;
}
Image:32px-Ambox_warning_orange.png Note: Use color embedding for multiple colors in the text.


Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools