From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 08:06, 8 December 2016
OstGot (Talk | contribs)

← Previous diff
Current revision
OstGot (Talk | contribs)

Line 33: Line 33:
[[pl:SendClientMessageToAll]] [[pl:SendClientMessageToAll]]

Current revision


Displays a message in chat to all players. This is a multi-player equivalent of SendClientMessage.

(color, const message[])
colorThe color of the message (0xRRGGBBAA Hex format).
const message[]The message to show (max 144 characters).

Return Values:

This function always returns true (1).



Avoid using format specifiers in your messages without formatting the string that is sent. It will result in crashes otherwise.

Example Usage:

public OnPlayerCommandText(playerid, cmdtext[])
    if (strcmp(cmdtext, "/helloworld", true) == 0)
        // Send a message to everyone.
        SendClientMessageToAll(-1, "Hello!");
        return 1;
    return 0;

Related Functions

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

Personal tools
In other languages