<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/ES/kickPlayer?action=history&amp;feed=atom</id>
	<title>ES/kickPlayer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/ES/kickPlayer?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/kickPlayer&amp;action=history"/>
	<updated>2026-05-16T11:05:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/kickPlayer&amp;diff=25413&amp;oldid=prev</id>
		<title>Sukha: /* Sintaxis */</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/kickPlayer&amp;diff=25413&amp;oldid=prev"/>
		<updated>2011-02-17T15:48:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Sintaxis&lt;/span&gt;&lt;/span&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:48, 17 February 2011&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-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&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;bool kickPlayer ( player jugadorAKickear, [ player jugadorResponsable, string razón = &amp;quot;&amp;quot; ] )          &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;bool kickPlayer ( player jugadorAKickear, [ player jugadorResponsable, string razón = &amp;quot;&amp;quot; ] )          &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;/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;&amp;lt;/syntaxhighlight&amp;gt;&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;''&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or&lt;/del&gt;''&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;''&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;o&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;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&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;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&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;bool kickPlayer ( player jugadorAKickear, [ string razón = &amp;quot;&amp;quot; ] )&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;bool kickPlayer ( player jugadorAKickear, [ string razón = &amp;quot;&amp;quot; ] )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-25412:rev-25413 --&gt;
&lt;/table&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/kickPlayer&amp;diff=25412&amp;oldid=prev</id>
		<title>Sukha: Created page with &quot;{{Server function}} __NOTOC__ Esta función kickea(desconecta) a un jugador del servidor.  ==Sintaxis==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool kickPlayer ( player jugadorAKickear, [ player jugadorR...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/kickPlayer&amp;diff=25412&amp;oldid=prev"/>
		<updated>2011-02-17T15:48:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Server function}} __NOTOC__ Esta función kickea(desconecta) a un jugador del servidor.  ==Sintaxis==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool kickPlayer ( player jugadorAKickear, [ player jugadorR...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Esta función kickea(desconecta) a un jugador del servidor.&lt;br /&gt;
&lt;br /&gt;
==Sintaxis== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool kickPlayer ( player jugadorAKickear, [ player jugadorResponsable, string razón = &amp;quot;&amp;quot; ] )         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
''or''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool kickPlayer ( player jugadorAKickear, [ string razón = &amp;quot;&amp;quot; ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''jugadorAKickear:''' El player que se quiere kickear del servidor.&lt;br /&gt;
&lt;br /&gt;
===Argumentos Opcionales=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''jugadorResponsable:''' El jugador responsable de la acción. '''Nota''': Si usas la segunda sintaxis, el jugador responsable va a ser &amp;quot;Console&amp;quot;(consola).&lt;br /&gt;
*'''razón:''' La razón del kickeo.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
Devuelve ''true'' si el jugador fue kickeado satisfactoriamente, ''false'' si fueron ingresados argumentos inválidos.&lt;br /&gt;
&lt;br /&gt;
==Ejemplos== &lt;br /&gt;
Este ejemplo permite a un jugador kickear a cualquier otro que tenga un nivel inferior.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function kickPlayerHandler ( sourcePlayer, commandname, kickedname, reason )&lt;br /&gt;
	-- Get player element from the name&lt;br /&gt;
	local kicked = getPlayerFromNick ( kickedname )&lt;br /&gt;
	-- If the client who sent the command has a higher level&lt;br /&gt;
	if ( hasObjectPermissionTo ( sourcePlayer, &amp;quot;function.kickPlayer&amp;quot; ) ) then&lt;br /&gt;
		-- Kick the player&lt;br /&gt;
		kickPlayer ( kicked, sourcePlayer, reason )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- Add the &amp;quot;kick&amp;quot; command handler&lt;br /&gt;
addCommandHandler ( &amp;quot;kick&amp;quot;, kickPlayerHandler )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver También==&lt;br /&gt;
{{Funciones_Administrativas}}&lt;br /&gt;
[[en:kickPlayer]]&lt;br /&gt;
[[ru:kickPlayer]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
</feed>