<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/ES/aclDestroyGroup?action=history&amp;feed=atom</id>
	<title>ES/aclDestroyGroup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/ES/aclDestroyGroup?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/aclDestroyGroup&amp;action=history"/>
	<updated>2026-04-07T15:35:10Z</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/aclDestroyGroup&amp;diff=30614&amp;oldid=prev</id>
		<title>Kzman: Created page with &quot;__NOTOC__  {{Server function}}  Esta función destruye el grupo ACL especificado. El grupo ACL destruído ya no será válido.  ==Sintaxis==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool aclDestroyGroup (...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/aclDestroyGroup&amp;diff=30614&amp;oldid=prev"/>
		<updated>2012-05-12T20:49:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Server function}}  Esta función destruye el grupo ACL especificado. El grupo ACL destruído ya no será válido.  ==Sintaxis==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool aclDestroyGroup (...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}} &lt;br /&gt;
Esta función destruye el grupo ACL especificado. El grupo ACL destruído ya no será válido.&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 aclDestroyGroup ( string nombreGrupoAcl)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''nombreGrupoAcl:''' El nombre del grupo ACL a destruir&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
Si el grupo ACL fue destruido con exito, devuelve ''true''; o ''false'' si no se pudo eliminar por alguna razón (p.ej. un argumento inválido).&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
Con este ejemplo permitimos que los administradores eliminen un grupo ACL que especifiquen.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function quitarGrupoACL( source, comando, nombreGrupo )&lt;br /&gt;
-- Verifica si son admin...&lt;br /&gt;
	if ( isObjectInACLGroup ( &amp;quot;user.&amp;quot; .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( &amp;quot;Admin&amp;quot; ) ) ) then&lt;br /&gt;
		if ( nombreGrupo ) then -- Verifica si se especifico el nombre de grupo&lt;br /&gt;
			local grupo = aclGetGroup ( nombreGrupo) -- Devuelve cualquier grupo que coincida con el nombre&lt;br /&gt;
				if ( grupo ) then -- Si se devolvió cualquiera entonces...&lt;br /&gt;
					aclDestroyGroup ( grupo ) -- Destruye el grupo&lt;br /&gt;
				else&lt;br /&gt;
					-- Le decimos que no se encontró ningún grupo con ese nombre...&lt;br /&gt;
					outputChatBox ( &amp;quot;No se encontró ningún grupo con ese nombre.&amp;quot;, source, 255, 0, 0 )&lt;br /&gt;
				end&lt;br /&gt;
	&lt;br /&gt;
		else -- Si no se especifica el grupo&lt;br /&gt;
			outputChatBox ( &amp;quot;Por favor especifique el nombre de grupo.&amp;quot;, source, 255, 0, 0 ) -- Le decimos lo que deben hacer&lt;br /&gt;
		end&lt;br /&gt;
	else -- Si no son admin....&lt;br /&gt;
		outputChatBox ( &amp;quot;Debes ser admin para usar este comando&amp;quot;, source, 255, 0, 0 ) -- Les decimos que están restringidos&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;quitarACL&amp;quot;, quitarGrupoACL )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vea también==&lt;br /&gt;
{{Funciones_de_ACL}}&lt;br /&gt;
&lt;br /&gt;
[[en:aclDestroyGroup]]&lt;/div&gt;</summary>
		<author><name>Kzman</name></author>
	</entry>
</feed>