Player say

From EventScripts Community Encyclopedia

Description

player_say executes EVERY TIME A PLAYER TYPES ANYTHING IN CHAT

Variables

Variables Specific to player_say That Are Expanded: Quote:

     event_var(userid)
           The userid of the player that typed in the text
     event_var(text)
           The "full line of text" the player typed
     event_var(es_steamid)
           The steamid of the player that typed in the text
     event_var(es_username)
           The username of the player that typed in the text
     event_var(es_userteam)
           The team of the user that typed in the text 

Examples

event player_say
{
  if (event_var(text) equalto hello) do
  {
    es_tell event_var(userid) #green Hello event_var(es_username)
  }
}
blog comments powered by Disqus