<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://npc-for-vcmp.sourceforge.io/wikiw/index.php?action=history&amp;feed=atom&amp;title=OnPlayerText</id>
	<title>OnPlayerText - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://npc-for-vcmp.sourceforge.io/wikiw/index.php?action=history&amp;feed=atom&amp;title=OnPlayerText"/>
	<link rel="alternate" type="text/html" href="https://npc-for-vcmp.sourceforge.io/wikiw/index.php?title=OnPlayerText&amp;action=history"/>
	<updated>2026-06-06T22:35:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.5</generator>
	<entry>
		<id>https://npc-for-vcmp.sourceforge.io/wikiw/index.php?title=OnPlayerText&amp;diff=85&amp;oldid=prev</id>
		<title>157.46.138.66 at 15:52, 9 March 2022</title>
		<link rel="alternate" type="text/html" href="https://npc-for-vcmp.sourceforge.io/wikiw/index.php?title=OnPlayerText&amp;diff=85&amp;oldid=prev"/>
		<updated>2022-03-09T15:52:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:52, 9 March 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Welcome|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Welcome|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;desc=This function is called when any player text something to server using console.|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;desc=This function is called when any player text something to server using console. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The function is called even if NPC sends a text to server using [[SendChat]]&lt;/ins&gt;|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;params=&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;(playerid, message)&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;params=&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;(playerid, message)&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;poem&amp;gt;::playerid: The player who send the text to server.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;poem&amp;gt;::playerid: The player who send the text to server.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>157.46.138.66</name></author>
	</entry>
	<entry>
		<id>https://npc-for-vcmp.sourceforge.io/wikiw/index.php?title=OnPlayerText&amp;diff=84&amp;oldid=prev</id>
		<title>157.46.138.66: Created page with &quot;{{Welcome| desc=This function is called when any player text something to server using console.| params=&lt;syntaxhighlight lang=&quot;lua&quot;&gt;(playerid, message)&lt;/syntaxhighlight&gt; &lt;poem...&quot;</title>
		<link rel="alternate" type="text/html" href="https://npc-for-vcmp.sourceforge.io/wikiw/index.php?title=OnPlayerText&amp;diff=84&amp;oldid=prev"/>
		<updated>2022-03-09T15:51:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Welcome| desc=This function is called when any player text something to server using console.| params=&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;(playerid, message)&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;poem...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Welcome|&lt;br /&gt;
desc=This function is called when any player text something to server using console.|&lt;br /&gt;
params=&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;(playerid, message)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;poem&amp;gt;::playerid: The player who send the text to server.&lt;br /&gt;
::message: The message the player send to server.&amp;lt;/poem&amp;gt;|&lt;br /&gt;
retvals=This function does not return any specific values.|&lt;br /&gt;
example=&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function OnPlayerText(playerid, message)&lt;br /&gt;
{&lt;br /&gt;
	if(message==&amp;quot;come&amp;quot;)&lt;br /&gt;
	{&lt;br /&gt;
	print(&amp;quot;Going to player: &amp;quot;+playerid+&amp;quot;\n&amp;quot;);&lt;br /&gt;
	SendCommand(&amp;quot;goto &amp;quot;+playerid);&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>157.46.138.66</name></author>
	</entry>
</feed>