Scripting/Squirrel/Functions/ClientMessageToAll: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
== Example == | == Example == | ||
<source lang=squirrel> | |||
{ | function onPlayerTeamKill( killer, player, reason, bodypart ) | ||
{ | |||
ClientMessageToAll( killer+" killed team-mate "+ player, 85, 107, 47 ); | |||
} | |||
</source> | |||
=== Notes === | === Notes === | ||
Call [[onPlayerTeamKill]] were used in this example. More info about them in the corresponding pages. | |||
== Related Functions == | == Related Functions == | ||
{{Scripting/Squirrel/Functions/Messages}} | {{Scripting/Squirrel/Functions/Messages}} |
Revision as of 06:18, 4 March 2015
This function will send a coloured message to every player in the server.
Syntax
ClientMessageToAll( message, R, G, B )
Arguments
- string message - The message to send
- int R - The amount of red
- int G - The amount of green
- int B - The amount of blue
Example
function onPlayerTeamKill( killer, player, reason, bodypart )
{
ClientMessageToAll( killer+" killed team-mate "+ player, 85, 107, 47 );
}
Notes
Call onPlayerTeamKill were used in this example. More info about them in the corresponding pages.