示例#1
0
 /// <summary>
 ///     Raises the <see cref="PlayerText" /> event.
 /// </summary>
 /// <param name="player">The player triggering the event.</param>
 /// <param name="e">An <see cref="TextEventArgs" /> that contains the event data. </param>
 protected virtual void OnPlayerText(GtaPlayer player, TextEventArgs e)
 {
     if (PlayerText != null)
         PlayerText(player, e);
 }
示例#2
0
        internal bool OnPlayerText(int playerid, string text)
        {
            var args = new TextEventArgs(text);

            OnPlayerText(GtaPlayer.FindOrCreate(playerid), args);

            return args.SendToPlayers;
        }
示例#3
0
 /// <summary>
 ///     Raises the <see cref="PlayerText" /> event.
 /// </summary>
 /// <param name="player">The player triggering the event.</param>
 /// <param name="e">An <see cref="TextEventArgs" /> that contains the event data. </param>
 protected virtual void OnPlayerText(BasePlayer player, TextEventArgs e)
 {
     PlayerText?.Invoke(player, e);
 }