OnPlayerChat

From Vice City Multiplayer
Revision as of 16:08, 8 November 2014 by Ysc3839 (talk | contribs) (Created page with "__NOTOC__ This is called when a player uses a command. == Syntax == <pre>function onPlayerChat( player, message )</pre> == Parameters == * instance '''player''' - The play...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This is called when a player uses a command.

Syntax

function onPlayerChat( player, message )

Parameters

  • instance player - The player.
  • string message - This is the message that player sent.

Example

This example command output the player messages.

function onPlayerChat( player, message )
{
 print("Player:"+player.Name+" Says:"+message);
}

Notes

The function print and call onPlayerChat were used in this example. More info about them in the corresponding pages.

Related Events