messageAllExcept
Function Server Only
![]()
Online and Offline
Available since Server 1.0.0
void messageAllExcept(string message, Client client, [ int colour = COLOUR_LIME ])
The messageAllExcept function is used to add a message to the chat box for only one client.
Parameters
| 1) | string | message | The message to display in the chat box. |
| 2) | Client | client | The client to not send the chat message to. |
| 3) | int | colour | Optional, defaults to COLOUR_LIME. The text colour for the message. |
Return
| void | This function doesn't return a value. |
Notes
Examples
Example 1 - JavaScript - Server-Side:
addCommandHandler("message1", (command, text, client) =>
{
if (client.player)
{
messageAllExcept(client.name + ' is spawned, and this message is shown for all players except them.', client);
}
else
{
messageAllExcept(client.name + ' is not spawned, and this message is shown for all players except them.', client);
}
});
Compatibility
There isn't any compatibility information for this function.
Related
Server Related
message
messageAllExcept
messageClient