<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=TActivePlayer.OnCommand</id>
		<title>TActivePlayer.OnCommand - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=TActivePlayer.OnCommand"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=TActivePlayer.OnCommand&amp;action=history"/>
		<updated>2026-05-26T22:48:37Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.soldat.pl/index.php?title=TActivePlayer.OnCommand&amp;diff=903&amp;oldid=prev</id>
		<title>Mighty: new page</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=TActivePlayer.OnCommand&amp;diff=903&amp;oldid=prev"/>
				<updated>2013-07-30T07:04:40Z</updated>
		
		<summary type="html">&lt;p&gt;new page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; '''''property OnCommand'''''&lt;br /&gt;
  Access mode: RW&lt;br /&gt;
  Event handler type: [[TOnCommandEvent]]&lt;br /&gt;
  Event handler declaration: function (Player: TActivePlayer; Command: string): Boolean&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Event property called whenever a player uses a command.&amp;lt;br&amp;gt;&lt;br /&gt;
If the result is set to TRUE, the default command effect (like /kill) will be ignored&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Example disables ''/kill'', ''/brutalkill'' and ''/mercy'' commands&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
function OnCommandNoSelfkill(Player: TActivePlayer; Command: string): Boolean;&lt;br /&gt;
begin&lt;br /&gt;
  case lowercase(Command) of&lt;br /&gt;
    '/kill','/brutalkill','/mercy': Result := TRUE;&lt;br /&gt;
    else Result := FALSE;&lt;br /&gt;
  end;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
var &lt;br /&gt;
  i: Byte;&lt;br /&gt;
begin&lt;br /&gt;
  for i:=1 to 32 do&lt;br /&gt;
    Players[i].OnCommand := @OnCommandNoSelfkill;&lt;br /&gt;
end.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:TActivePlayer]][[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Mighty</name></author>	</entry>

	</feed>