<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sukha</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sukha"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Sukha"/>
	<updated>2026-05-15T02:04:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=KickPlayer&amp;diff=25415</id>
		<title>KickPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=KickPlayer&amp;diff=25415"/>
		<updated>2011-02-17T15:50:30Z</updated>

		<summary type="html">&lt;p&gt;Sukha: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function will kick the specified player from the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool kickPlayer ( player kickedPlayer, [ player responsiblePlayer, string reason = &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 kickedPlayer, [ string reason = &amp;quot;&amp;quot; ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''kickedPlayer:''' The player that will be kicked from the server&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''responsiblePlayer:''' The player that is responsible for the event. '''Note''': If left out as in the second syntax, responsible player for the kick will be &amp;quot;Console&amp;quot;.&lt;br /&gt;
*'''reason:''' The reason for the kick.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was kicked succesfully, ''false'' if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example lets a player kick anyone who has a lower level.&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;
==See Also==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
[[es:kickPlayer]]&lt;br /&gt;
[[ru:kickPlayer]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=KickPlayer&amp;diff=25414</id>
		<title>KickPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=KickPlayer&amp;diff=25414"/>
		<updated>2011-02-17T15:49:59Z</updated>

		<summary type="html">&lt;p&gt;Sukha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function will kick the specified player from the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool kickPlayer ( player kickedPlayer, [ player responsiblePlayer, string reason = &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 kickedPlayer, [ string reason = &amp;quot;&amp;quot; ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''kickedPlayer:''' The player that will be kicked from the server&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''responsiblePlayer:''' The player that is responsible for the event. '''Note''': If left out as in the second syntax, responsible player for the kick will be &amp;quot;Console&amp;quot;.&lt;br /&gt;
*'''reason:''' The reason for the kick.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was kicked succesfully, ''false'' if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example lets a player kick anyone who has a lower level.&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;
==See Also==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
[[es:KickPlayer]]&lt;br /&gt;
[[ru:kickPlayer]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/kickPlayer&amp;diff=25413</id>
		<title>ES/kickPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/kickPlayer&amp;diff=25413"/>
		<updated>2011-02-17T15:48:59Z</updated>

		<summary type="html">&lt;p&gt;Sukha: /* Sintaxis */&lt;/p&gt;
&lt;hr /&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;
''o''&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>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/kickPlayer&amp;diff=25412</id>
		<title>ES/kickPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/kickPlayer&amp;diff=25412"/>
		<updated>2011-02-17T15:48:40Z</updated>

		<summary type="html">&lt;p&gt;Sukha: 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;hr /&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>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=25410</id>
		<title>BanPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=25410"/>
		<updated>2011-02-17T15:40:38Z</updated>

		<summary type="html">&lt;p&gt;Sukha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
This function will ban the specified player by either IP, [[serial]] or username&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
This function will ban the specified player from the server by IP.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
ban banPlayer ( player bannedPlayer, [ bool IP = true, bool Username = false, bool Serial = false, &lt;br /&gt;
player responsiblePlayer = nil, string reason = nil, int seconds = 0 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool banPlayer ( player bannedPlayer , [ element responsibleElement, string reason ] )         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''bannedPlayer:''' The player that will be banned from the server.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*'''IP:''' Will player be banned by IP?&lt;br /&gt;
*'''Username:''' Will player be banned by username?&lt;br /&gt;
*'''Serial:''' Will player be banned by serial?&lt;br /&gt;
&lt;br /&gt;
:'''Note:''' to ban by username or serial, ''verifyserials'' must be enabled in the server configuration file.&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
*'''responsibleElement:''' The element that is responsible for banning the player. This can be a player or the root ([[getRootElement]]()).&lt;br /&gt;
*'''reason:''' The reason the player will be banned from the server.&lt;br /&gt;
*'''seconds:''' The amount of seconds the player will be banned from the server for. This can be 0 for an infinite amount of time.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
Returns ''true'' if the player was banned succesfully, ''false'' if invalid arguments are specified.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
Returns a [[ban]] pointer if banned successfully, or ''false'' if unsuccessful.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example lets a player ban anyone if he has ACL rights.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--Add the &amp;quot;ban&amp;quot; command handler&lt;br /&gt;
-- Example with the player&lt;br /&gt;
function banPlayerCommand ( theClient, commandName, bannedName, reason )&lt;br /&gt;
&lt;br /&gt;
	-- Give the player a nice error if he doesn't have rights&lt;br /&gt;
	if ( hasObjectPermissionTo ( theClient, &amp;quot;function.banPlayer&amp;quot; ) ) then&lt;br /&gt;
		--Get player element from the name&lt;br /&gt;
		local bannedPlayer = getPlayerFromNick ( bannedName )&lt;br /&gt;
&lt;br /&gt;
		--Ban the player&lt;br /&gt;
		banPlayer ( bannedPlayer, theClient, reason )&lt;br /&gt;
		outputChatBox ( &amp;quot;ban: &amp;quot; .. bannedName .. &amp;quot; successfully banned&amp;quot;, theClient )&lt;br /&gt;
&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox ( &amp;quot;ban: You don't have enough permissions&amp;quot;, theClient )&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;ban&amp;quot;, banPlayerCommand )&lt;br /&gt;
&lt;br /&gt;
-- Example function with the root element. Here you would pass a player element to the function.&lt;br /&gt;
function banCheater(theCheater)&lt;br /&gt;
	banPlayer(theCheater, getRootElement(), &amp;quot;You are banned because of cheating.&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
[[es:banPlayer]]&lt;br /&gt;
[[ru:BanPlayer]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/banPlayer&amp;diff=25409</id>
		<title>ES/banPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/banPlayer&amp;diff=25409"/>
		<updated>2011-02-17T15:39:46Z</updated>

		<summary type="html">&lt;p&gt;Sukha: Created page with &amp;quot;__NOTOC__  {{Server function}} {{New feature|3|1.0| Esta función banea a un jugador por su IP, serial o nombre. }}  ==Sintaxis==  {{New feature|3|1.0| &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; ban banP...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
Esta función banea a un jugador por su IP, [[serial]] o nombre.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxis== &lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
ban banPlayer ( player jugadorABanear, [ bool IP = true, bool Nombre = false, bool Serial = false, &lt;br /&gt;
player jugadorResponsable = nil, string razón = nil, int segundos = 0 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''jugadorABanear:''' El jugador que se quiere banear del servidor.&lt;br /&gt;
&lt;br /&gt;
===Argumentos Opcionales=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*'''IP:''' Banear la IP del jugador?&lt;br /&gt;
*'''Username:''' Banear el nombre del jugador?&lt;br /&gt;
*'''Serial:''' Banear la serial del jugador?&lt;br /&gt;
&lt;br /&gt;
:'''Note:''' Para banear por nombre o por serial, ''verifyserials'' tiene que estar habilitado en el archivo de configuración del servidor.&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
*'''jugadorResponsable:''' El jugador responsable del baneo. Puede ser un jugador o el root ([[getRootElement]])&lt;br /&gt;
*'''razón:''' La razón por la cual el jugador fue baneado.&lt;br /&gt;
*'''segundos:''' El tiempo(en segundos) que va a estar baneado el jugador. Usar 0 para una cantidad indefinida de tiempo.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
Devuelve un puntero [[ban]] si el jugador fue baneado satisfactoriamente, de lo contrario devuelve ''false''.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Ejemplos==&lt;br /&gt;
Este ejemplo permite a un jugador banear a cualquiera si tiene los permisos ACL.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--Add the &amp;quot;ban&amp;quot; command handler&lt;br /&gt;
-- Example with the player&lt;br /&gt;
function banPlayerCommand ( theClient, commandName, bannedName, reason )&lt;br /&gt;
&lt;br /&gt;
	-- Give the player a nice error if he doesn't have rights&lt;br /&gt;
	if ( hasObjectPermissionTo ( theClient, &amp;quot;function.banPlayer&amp;quot; ) ) then&lt;br /&gt;
		--Get player element from the name&lt;br /&gt;
		local bannedPlayer = getPlayerFromNick ( bannedName )&lt;br /&gt;
&lt;br /&gt;
		--Ban the player&lt;br /&gt;
		banPlayer ( bannedPlayer, theClient, reason )&lt;br /&gt;
		outputChatBox ( &amp;quot;ban: &amp;quot; .. bannedName .. &amp;quot; successfully banned&amp;quot;, theClient )&lt;br /&gt;
&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox ( &amp;quot;ban: You don't have enough permissions&amp;quot;, theClient )&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;ban&amp;quot;, banPlayerCommand )&lt;br /&gt;
&lt;br /&gt;
-- Example function with the root element. Here you would pass a player element to the function.&lt;br /&gt;
function banCheater(theCheater)&lt;br /&gt;
	banPlayer(theCheater, getRootElement(), &amp;quot;You are banned because of cheating.&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Funciones_Administrativas}}&lt;br /&gt;
[[en:BanPlayer]]&lt;br /&gt;
[[ru:BanPlayer]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Funciones_de_Servidor&amp;diff=25407</id>
		<title>ES/Funciones de Servidor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Funciones_de_Servidor&amp;diff=25407"/>
		<updated>2011-02-16T20:32:32Z</updated>

		<summary type="html">&lt;p&gt;Sukha: /* Funciones Administrativas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
Esta pagina muestra todas las funciones del '''servidor''' que han sido implementadas y disponibles como funciones nativas. Para pedir una función o un evento, usa [[Requested Functions and Events|pedido de funciones y eventos]] o http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Por favor ten en cuenta que las funciones se pueden también extender cargando un modulo dinámico que entregue una nueva funcionalidad, como el MySQL database access. Estas funciones no son nativas y requieren que el modulo este cargado para funcionar.&lt;br /&gt;
&lt;br /&gt;
Vea [[Modules|Modulos]] para una lista de funciones de servidor no-nativas y módulos que están disponibles.&lt;br /&gt;
&lt;br /&gt;
Para mas funciones, vea la pagina de [[Useful_Functions|funciones útiles]].&lt;br /&gt;
&lt;br /&gt;
'''Las funciones de cliente se pueden encontrar aqui: [[Client Scripting Functions|Funciones de cliente]].'''&lt;br /&gt;
&lt;br /&gt;
'''Tenga en cuenta que casi todas las funciones presentes no presentan una traducción en su definición'''&lt;br /&gt;
 &lt;br /&gt;
==Funciones de cuenta==&lt;br /&gt;
{{Funciones_de_Cuenta}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de ACL==&lt;br /&gt;
{{Funciones_de_ACL}}&lt;br /&gt;
&lt;br /&gt;
==Funciones Administrativas==&lt;br /&gt;
{{Funciones_Administrativas}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de audio==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de anuncio==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de blip==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de cámara==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de colisión==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de ropa y cuerpo==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de cursor==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de elemento==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de evento==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones explosivas==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de archivos==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de HTTP==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de Input==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de mapa==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de marcadores==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de modulos==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de objetos==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de peds==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de pickup==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de jugadores==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de area de radar==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de recursos==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de serial==&lt;br /&gt;
{{Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de servidor==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de registro de propiedades==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de SQL==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de equipo==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de texto==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de utilidad==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de vehiculos==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de agua==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de arma==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones del mundo==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de XML==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:Server Scripting Functions]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Funciones_Administrativas&amp;diff=25406</id>
		<title>Template:Funciones Administrativas</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Funciones_Administrativas&amp;diff=25406"/>
		<updated>2011-02-16T20:31:35Z</updated>

		<summary type="html">&lt;p&gt;Sukha: Created page with &amp;quot;*banPlayer *kickPlayer {{New feature|3|1.0| *addBan *getBanAdmin *getBanIP *[[ES/getBanNick|ge...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[ES/banPlayer|banPlayer]]&lt;br /&gt;
*[[ES/kickPlayer|kickPlayer]]&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[ES/addBan|addBan]]&lt;br /&gt;
*[[ES/getBanAdmin|getBanAdmin]]&lt;br /&gt;
*[[ES/getBanIP|getBanIP]]&lt;br /&gt;
*[[ES/getBanNick|getBanNick]]&lt;br /&gt;
*[[ES/getBanReason|getBanReason]]&lt;br /&gt;
*[[ES/getBans|getBans]]&lt;br /&gt;
*[[ES/getBanSerial|getBanSerial]]&lt;br /&gt;
*[[ES/getBanTime|getBanTime]]&lt;br /&gt;
*[[ES/getBanUsername|getBanUsername]]&lt;br /&gt;
*[[ES/getUnbanTime|getUnbanTime]]&lt;br /&gt;
*[[ES/removeBan|removeBan]]&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
*[[ES/banIP|banIP]]&lt;br /&gt;
*[[ES/banSerial|banSerial]]&lt;br /&gt;
*[[ES/getBansXML|getBansXML]]&lt;br /&gt;
*[[ES/unbanIP|unbanIP]]&lt;br /&gt;
*[[ES/unbanSerial|unbanSerial]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Funciones_de_Servidor&amp;diff=25405</id>
		<title>ES/Funciones de Servidor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Funciones_de_Servidor&amp;diff=25405"/>
		<updated>2011-02-16T20:27:55Z</updated>

		<summary type="html">&lt;p&gt;Sukha: /* Funciones de ACL */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
Esta pagina muestra todas las funciones del '''servidor''' que han sido implementadas y disponibles como funciones nativas. Para pedir una función o un evento, usa [[Requested Functions and Events|pedido de funciones y eventos]] o http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Por favor ten en cuenta que las funciones se pueden también extender cargando un modulo dinámico que entregue una nueva funcionalidad, como el MySQL database access. Estas funciones no son nativas y requieren que el modulo este cargado para funcionar.&lt;br /&gt;
&lt;br /&gt;
Vea [[Modules|Modulos]] para una lista de funciones de servidor no-nativas y módulos que están disponibles.&lt;br /&gt;
&lt;br /&gt;
Para mas funciones, vea la pagina de [[Useful_Functions|funciones útiles]].&lt;br /&gt;
&lt;br /&gt;
'''Las funciones de cliente se pueden encontrar aqui: [[Client Scripting Functions|Funciones de cliente]].'''&lt;br /&gt;
&lt;br /&gt;
'''Tenga en cuenta que casi todas las funciones presentes no presentan una traducción en su definición'''&lt;br /&gt;
 &lt;br /&gt;
==Funciones de cuenta==&lt;br /&gt;
{{Funciones_de_Cuenta}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de ACL==&lt;br /&gt;
{{Funciones_de_ACL}}&lt;br /&gt;
&lt;br /&gt;
==Funciones Administrativas==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de audio==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de anuncio==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de blip==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de cámara==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de colisión==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de ropa y cuerpo==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de cursor==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de elemento==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de evento==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones explosivas==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de archivos==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de HTTP==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de Input==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de mapa==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de marcadores==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de modulos==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de objetos==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de peds==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de pickup==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de jugadores==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de area de radar==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de recursos==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de serial==&lt;br /&gt;
{{Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de servidor==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de registro de propiedades==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de SQL==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de equipo==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de texto==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de utilidad==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de vehiculos==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de agua==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de arma==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones del mundo==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de XML==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:Server Scripting Functions]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Funciones_de_ACL&amp;diff=25404</id>
		<title>Template:Funciones de ACL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Funciones_de_ACL&amp;diff=25404"/>
		<updated>2011-02-16T20:27:24Z</updated>

		<summary type="html">&lt;p&gt;Sukha: Created page with &amp;quot;*aclCreate *aclCreateGroup *aclDestroy *aclDestroyGroup *aclGet *[[ES/aclGetGroup|ac...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[ES/aclCreate|aclCreate]]&lt;br /&gt;
*[[ES/aclCreateGroup|aclCreateGroup]]&lt;br /&gt;
*[[ES/aclDestroy|aclDestroy]]&lt;br /&gt;
*[[ES/aclDestroyGroup|aclDestroyGroup]]&lt;br /&gt;
*[[ES/aclGet|aclGet]]&lt;br /&gt;
*[[ES/aclGetGroup|aclGetGroup]]&lt;br /&gt;
*[[ES/aclGetName|aclGetName]]&lt;br /&gt;
*[[ES/aclGetRight|aclGetRight]]&lt;br /&gt;
*[[ES/aclGroupList|aclGroupList]]&lt;br /&gt;
*[[ES/aclGroupAddACL|aclGroupAddACL]]&lt;br /&gt;
*[[ES/aclGroupAddObject|aclGroupAddObject]]&lt;br /&gt;
*[[ES/aclGroupGetName|aclGroupGetName]]&lt;br /&gt;
*[[ES/aclGroupListACL|aclGroupListACL]]&lt;br /&gt;
*[[ES/aclGroupListObjects|aclGroupListObjects]]&lt;br /&gt;
*[[ES/aclGroupRemoveACL|aclGroupRemoveACL]]&lt;br /&gt;
*[[ES/aclGroupRemoveObject|aclGroupRemoveObject]]&lt;br /&gt;
*[[ES/aclList|aclList]]&lt;br /&gt;
*[[ES/aclListRights|aclListRights]]&lt;br /&gt;
*[[ES/aclReload|aclReload]]&lt;br /&gt;
*[[ES/aclRemoveRight|aclRemoveRight]]&lt;br /&gt;
*[[ES/aclSave|aclSave]]&lt;br /&gt;
*[[ES/aclSetRight|aclSetRight]]&lt;br /&gt;
*[[ES/hasObjectPermissionTo|hasObjectPermissionTo]]&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[ES/isObjectInACLGroup|isObjectInACLGroup]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/getAccountData&amp;diff=25403</id>
		<title>ES/getAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/getAccountData&amp;diff=25403"/>
		<updated>2011-02-16T20:15:34Z</updated>

		<summary type="html">&lt;p&gt;Sukha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note_box|Es muy importante que nombres tus claves de la forma ''modulo.clave'', como se muestra en el ejemplo. Esto previene interferencias con otros scripts.}}&lt;br /&gt;
Esta función obtiene la información que fue guardada en una cuenta usando [[ES/setAccountData|setAccountData]]. La información guardada en una cuenta no se borra cuando el jugador deja el servidor o cambia de mapa.&lt;br /&gt;
&lt;br /&gt;
==Sintaxis== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountData ( account laCuenta, string laClave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''laCuenta:''' La cuenta de la cual quieres obtener información.&lt;br /&gt;
*'''laClave:''' La clave bajo la cual esta guardada la información.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
Devuelve una [[ES/string|string]](cadena de texto) con la información requerida o ''false'' si no hay información guardada bajo esa clave.&lt;br /&gt;
&lt;br /&gt;
==Ejemplos==&lt;br /&gt;
For a pirate roleplaying gametype, the amount of money a player has is made persistent by storing it in his account. Note the code uses &amp;quot;piraterpg.money&amp;quot; as key instead of just &amp;quot;money&amp;quot;, as the player may be participating in other gametypes that also save his money amount to his account. If both gametypes would use &amp;quot;money&amp;quot; as the account key, they'd overwrite each other's data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerQuit ( )&lt;br /&gt;
      -- when a player leaves, store his current money amount in his account data&lt;br /&gt;
      local playeraccount = getPlayerAccount ( source )&lt;br /&gt;
      if ( playeraccount ) then&lt;br /&gt;
            local playermoney = getPlayerMoney ( source )&lt;br /&gt;
            setAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot;, playermoney )&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function onPlayerJoin ( )&lt;br /&gt;
      -- when a player joins, retrieve his money amount from his account data and set it&lt;br /&gt;
      local playeraccount = getPlayerAccount ( source )&lt;br /&gt;
      if ( playeraccount ) then&lt;br /&gt;
            local playermoney = getAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot; )&lt;br /&gt;
            -- make sure there was actually a value saved under this key (check if playermoney is not false).&lt;br /&gt;
            -- this will for example not be the case when a player plays the gametype for the first time&lt;br /&gt;
            if ( playermoney ) then&lt;br /&gt;
                  setPlayerMoney ( source, playermoney )&lt;br /&gt;
            end&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement ( ), onPlayerQuit )&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, getRootElement ( ), onPlayerJoin )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Funciones_de_Cuenta}}&lt;br /&gt;
&lt;br /&gt;
[[en:GetAccountData]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/getAccountData&amp;diff=25402</id>
		<title>ES/getAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/getAccountData&amp;diff=25402"/>
		<updated>2011-02-16T20:14:32Z</updated>

		<summary type="html">&lt;p&gt;Sukha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note_box|Es muy importante que nombres tus claves de la forma ''modulo.clave'', como se muestra en el ejemplo. Esto previene interferencias con otros scripts.}}&lt;br /&gt;
Esta función obtiene la información que fue guardada en una cuenta usando [[ES/setAccountData]]. La información guardada en una cuenta no se borra cuando el jugador deja el servidor o cambia de mapa.&lt;br /&gt;
&lt;br /&gt;
==Sintaxis== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountData ( account laCuenta, string laClave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''laCuenta:''' La cuenta de la cual quieres obtener información.&lt;br /&gt;
*'''laClave:''' La clave bajo la cual esta guardada la información.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
Devuelve una [[string]](cadena de texto) con la información requerida o ''false'' si no hay información guardada bajo esa clave.&lt;br /&gt;
&lt;br /&gt;
==Ejemplos==&lt;br /&gt;
For a pirate roleplaying gametype, the amount of money a player has is made persistent by storing it in his account. Note the code uses &amp;quot;piraterpg.money&amp;quot; as key instead of just &amp;quot;money&amp;quot;, as the player may be participating in other gametypes that also save his money amount to his account. If both gametypes would use &amp;quot;money&amp;quot; as the account key, they'd overwrite each other's data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerQuit ( )&lt;br /&gt;
      -- when a player leaves, store his current money amount in his account data&lt;br /&gt;
      local playeraccount = getPlayerAccount ( source )&lt;br /&gt;
      if ( playeraccount ) then&lt;br /&gt;
            local playermoney = getPlayerMoney ( source )&lt;br /&gt;
            setAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot;, playermoney )&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function onPlayerJoin ( )&lt;br /&gt;
      -- when a player joins, retrieve his money amount from his account data and set it&lt;br /&gt;
      local playeraccount = getPlayerAccount ( source )&lt;br /&gt;
      if ( playeraccount ) then&lt;br /&gt;
            local playermoney = getAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot; )&lt;br /&gt;
            -- make sure there was actually a value saved under this key (check if playermoney is not false).&lt;br /&gt;
            -- this will for example not be the case when a player plays the gametype for the first time&lt;br /&gt;
            if ( playermoney ) then&lt;br /&gt;
                  setPlayerMoney ( source, playermoney )&lt;br /&gt;
            end&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement ( ), onPlayerQuit )&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, getRootElement ( ), onPlayerJoin )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Funciones_de_Cuenta}}&lt;br /&gt;
&lt;br /&gt;
[[en:GetAccountData]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/getAccountData&amp;diff=25401</id>
		<title>ES/getAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/getAccountData&amp;diff=25401"/>
		<updated>2011-02-16T20:13:55Z</updated>

		<summary type="html">&lt;p&gt;Sukha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note_box|Es muy importante que nombres tus claves de la forma ''modulo.clave'', como se muestra en el ejemplo. Esto previene interferencias con otros scripts.}}&lt;br /&gt;
Esta función obtiene la información que fue guardada en una cuenta usando [[setAccountData]]. La información guardada en una cuenta no se borra cuando el jugador deja el servidor o cambia de mapa.&lt;br /&gt;
&lt;br /&gt;
==Sintaxis== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountData ( account laCuenta, string laClave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''laCuenta:''' La cuenta de la cual quieres obtener información.&lt;br /&gt;
*'''laClave:''' La clave bajo la cual esta guardada la información.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
Devuelve una [[string]](cadena de texto) con la información requerida o ''false'' si no hay información guardada bajo esa clave.&lt;br /&gt;
&lt;br /&gt;
==Ejemplos==&lt;br /&gt;
For a pirate roleplaying gametype, the amount of money a player has is made persistent by storing it in his account. Note the code uses &amp;quot;piraterpg.money&amp;quot; as key instead of just &amp;quot;money&amp;quot;, as the player may be participating in other gametypes that also save his money amount to his account. If both gametypes would use &amp;quot;money&amp;quot; as the account key, they'd overwrite each other's data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerQuit ( )&lt;br /&gt;
      -- when a player leaves, store his current money amount in his account data&lt;br /&gt;
      local playeraccount = getPlayerAccount ( source )&lt;br /&gt;
      if ( playeraccount ) then&lt;br /&gt;
            local playermoney = getPlayerMoney ( source )&lt;br /&gt;
            setAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot;, playermoney )&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function onPlayerJoin ( )&lt;br /&gt;
      -- when a player joins, retrieve his money amount from his account data and set it&lt;br /&gt;
      local playeraccount = getPlayerAccount ( source )&lt;br /&gt;
      if ( playeraccount ) then&lt;br /&gt;
            local playermoney = getAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot; )&lt;br /&gt;
            -- make sure there was actually a value saved under this key (check if playermoney is not false).&lt;br /&gt;
            -- this will for example not be the case when a player plays the gametype for the first time&lt;br /&gt;
            if ( playermoney ) then&lt;br /&gt;
                  setPlayerMoney ( source, playermoney )&lt;br /&gt;
            end&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement ( ), onPlayerQuit )&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, getRootElement ( ), onPlayerJoin )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Funciones_de_Cuenta}}&lt;br /&gt;
&lt;br /&gt;
[[en:GetAccountData]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/getAccountData&amp;diff=25400</id>
		<title>ES/getAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/getAccountData&amp;diff=25400"/>
		<updated>2011-02-16T20:13:12Z</updated>

		<summary type="html">&lt;p&gt;Sukha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note_box|Es muy importante que nombres tus claves de la forma ''modulo.clave'', como se muestra en el ejemplo. Esto previene interferencias con otros scripts.}}&lt;br /&gt;
Esta función obtiene la información que fue guardada en una cuenta usando [[es:setAccountData]]. La información guardada en una cuenta no se borra cuando el jugador deja el servidor o cambia de mapa.&lt;br /&gt;
&lt;br /&gt;
==Sintaxis== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountData ( account laCuenta, string laClave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''laCuenta:''' La cuenta de la cual quieres obtener información.&lt;br /&gt;
*'''laClave:''' La clave bajo la cual esta guardada la información.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
Devuelve una [[string]](cadena de texto) con la información requerida o ''false'' si no hay información guardada bajo esa clave.&lt;br /&gt;
&lt;br /&gt;
==Ejemplos==&lt;br /&gt;
For a pirate roleplaying gametype, the amount of money a player has is made persistent by storing it in his account. Note the code uses &amp;quot;piraterpg.money&amp;quot; as key instead of just &amp;quot;money&amp;quot;, as the player may be participating in other gametypes that also save his money amount to his account. If both gametypes would use &amp;quot;money&amp;quot; as the account key, they'd overwrite each other's data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerQuit ( )&lt;br /&gt;
      -- when a player leaves, store his current money amount in his account data&lt;br /&gt;
      local playeraccount = getPlayerAccount ( source )&lt;br /&gt;
      if ( playeraccount ) then&lt;br /&gt;
            local playermoney = getPlayerMoney ( source )&lt;br /&gt;
            setAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot;, playermoney )&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function onPlayerJoin ( )&lt;br /&gt;
      -- when a player joins, retrieve his money amount from his account data and set it&lt;br /&gt;
      local playeraccount = getPlayerAccount ( source )&lt;br /&gt;
      if ( playeraccount ) then&lt;br /&gt;
            local playermoney = getAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot; )&lt;br /&gt;
            -- make sure there was actually a value saved under this key (check if playermoney is not false).&lt;br /&gt;
            -- this will for example not be the case when a player plays the gametype for the first time&lt;br /&gt;
            if ( playermoney ) then&lt;br /&gt;
                  setPlayerMoney ( source, playermoney )&lt;br /&gt;
            end&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement ( ), onPlayerQuit )&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, getRootElement ( ), onPlayerJoin )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Funciones_de_Cuenta}}&lt;br /&gt;
&lt;br /&gt;
[[en:GetAccountData]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/getAccountData&amp;diff=25399</id>
		<title>ES/getAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/getAccountData&amp;diff=25399"/>
		<updated>2011-02-16T20:12:27Z</updated>

		<summary type="html">&lt;p&gt;Sukha: Created page with &amp;quot;{{Server function}} __NOTOC__ {{Note_box|Es muy importante que nombres tus claves de la forma ''modulo.clave'', como se muestra en el ejemplo. Esto previene interferencias con ot...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note_box|Es muy importante que nombres tus claves de la forma ''modulo.clave'', como se muestra en el ejemplo. Esto previene interferencias con otros scripts.}}&lt;br /&gt;
Esta función obtiene la información que fue guardada en una cuenta usando [[es:setAccountData]]. La información guardada en una cuenta no se borra cuando el jugador deja el servidor o cambia de mapa.&lt;br /&gt;
&lt;br /&gt;
==Sintaxis== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountData ( account laCuenta, string laClave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''laCuenta:''' La cuenta de la cual quieres obtener información.&lt;br /&gt;
*'''laClave:''' La clave bajo la cual esta guardada la información.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
Devuelve una [[es:string]](cadena de texto) con la información requerida o ''false'' si no hay información guardada bajo esa clave.&lt;br /&gt;
&lt;br /&gt;
==Ejemplos==&lt;br /&gt;
For a pirate roleplaying gametype, the amount of money a player has is made persistent by storing it in his account. Note the code uses &amp;quot;piraterpg.money&amp;quot; as key instead of just &amp;quot;money&amp;quot;, as the player may be participating in other gametypes that also save his money amount to his account. If both gametypes would use &amp;quot;money&amp;quot; as the account key, they'd overwrite each other's data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerQuit ( )&lt;br /&gt;
      -- when a player leaves, store his current money amount in his account data&lt;br /&gt;
      local playeraccount = getPlayerAccount ( source )&lt;br /&gt;
      if ( playeraccount ) then&lt;br /&gt;
            local playermoney = getPlayerMoney ( source )&lt;br /&gt;
            setAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot;, playermoney )&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function onPlayerJoin ( )&lt;br /&gt;
      -- when a player joins, retrieve his money amount from his account data and set it&lt;br /&gt;
      local playeraccount = getPlayerAccount ( source )&lt;br /&gt;
      if ( playeraccount ) then&lt;br /&gt;
            local playermoney = getAccountData ( playeraccount, &amp;quot;piraterpg.money&amp;quot; )&lt;br /&gt;
            -- make sure there was actually a value saved under this key (check if playermoney is not false).&lt;br /&gt;
            -- this will for example not be the case when a player plays the gametype for the first time&lt;br /&gt;
            if ( playermoney ) then&lt;br /&gt;
                  setPlayerMoney ( source, playermoney )&lt;br /&gt;
            end&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement ( ), onPlayerQuit )&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, getRootElement ( ), onPlayerJoin )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Funciones_de_Cuenta}}&lt;br /&gt;
&lt;br /&gt;
[[en:GetAccountData]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccount&amp;diff=25398</id>
		<title>GetAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccount&amp;diff=25398"/>
		<updated>2011-02-16T19:53:11Z</updated>

		<summary type="html">&lt;p&gt;Sukha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns an account for a specific user. &lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account getAccount ( string username, [ string password ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''username:''' The username of the account you want to retrieve&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''password:''' The password for the account. If this argument is not specified, you can get the account whatever password it is, otherwise the password must match the account's.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
An ''account'' value or ''false'' if an account matching the username specified (and password, if specified) could not be found.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function retAccount ( username, password ) --both arguements are strings&lt;br /&gt;
    if getAccount( username, password ) then&lt;br /&gt;
        return getAccount( username, password )&lt;br /&gt;
    else&lt;br /&gt;
        return false&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account functions}}&lt;br /&gt;
&lt;br /&gt;
[[es:getAccount]]&lt;br /&gt;
[[pl:GetAccount]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/getAccount&amp;diff=25397</id>
		<title>ES/getAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/getAccount&amp;diff=25397"/>
		<updated>2011-02-16T19:51:54Z</updated>

		<summary type="html">&lt;p&gt;Sukha: Created page with &amp;quot;__NOTOC__ {{Server function}} Esta función obtiene una cuenta a partir de su nombre. ==Sintaxis== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; account getAccount ( string nombreCuenta, [ string contraseña ] ) ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
Esta función obtiene una cuenta a partir de su nombre.&lt;br /&gt;
==Sintaxis==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account getAccount ( string nombreCuenta, [ string contraseña ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos===&lt;br /&gt;
*'''nombreCuenta:''' El nombre de la cuenta que quieres obtener.&lt;br /&gt;
&lt;br /&gt;
===Argumentos Opcionales===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''contraseña:''' La contraseña de la cuenta. Si no especificas este argumento podras obtener la cuenta sea cual sea la contraseña, de lo contrario la contraseña debe coincidir con la de la cuenta.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
Devuelve el elemento ''account''(la cuenta) o ''false'' si no se pudo encontrar ninguna cuenta que coincida con los datos introducidos(nombre y contraseña).&lt;br /&gt;
&lt;br /&gt;
==Ejemplos==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function retAccount ( username, password ) --both arguements are strings&lt;br /&gt;
    if getAccount( username, password ) then&lt;br /&gt;
        return getAccount( username, password )&lt;br /&gt;
    else&lt;br /&gt;
        return false&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Funciones_de_Cuenta}}&lt;br /&gt;
&lt;br /&gt;
[[en:GetAccount]]&lt;br /&gt;
[[pl:GetAccount]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/AddAccount&amp;diff=25396</id>
		<title>ES/AddAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/AddAccount&amp;diff=25396"/>
		<updated>2011-02-16T19:41:09Z</updated>

		<summary type="html">&lt;p&gt;Sukha: /* Ver También */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Esta función agrega una cuenta a la lista de cuentas registradas del servidor.&lt;br /&gt;
&lt;br /&gt;
==Sintaxis== &lt;br /&gt;
{{New feature|3|1.0 r848|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account addAccount ( string nombre, string contraseña )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''nombre:''' El nombre de la cuenta que deseas crear, normalmente se hace coincidir con el nombre del jugador(no es obligatorio que coincida).&lt;br /&gt;
*'''contraseña:''' La contraseña con la cual se va a acceder a la cuenta.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
{{New feature|3|1.0 r848|&lt;br /&gt;
Devuelve el elemento ''account'' (cuenta) si la cuenta fue creada satisfactoriamente, ''false'' si la cuenta ya existía o si ocurrió un error.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Ejemplo 1:''' Esto permite que los jugadores se registren usando el comando /register &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, password )&lt;br /&gt;
	-- Revisar si el campo de contraseña es válido&lt;br /&gt;
	if ( password ~= &amp;quot;&amp;quot; and password ~= nil ) then&lt;br /&gt;
		-- Crear una cuenta, y guardar la variable cuenta de forma local.&lt;br /&gt;
		local accountAdded = addAccount( getPlayerName(source), password )&lt;br /&gt;
		if ( accountAdded ) then&lt;br /&gt;
			-- Si todo funcionó, entonces al jugador se le anuncia.&lt;br /&gt;
			outputChatBox ( &amp;quot;Gracias, &amp;quot; .. getPlayerName(source) .. &amp;quot;, ahora que estas registrado, logueate con /login&amp;quot;, source )&lt;br /&gt;
		else&lt;br /&gt;
			-- Si algo salió mal, al jugador se le anuncia también.&lt;br /&gt;
			outputChatBox ( &amp;quot;Error creando cuenta, contacta al administrador del servidor.&amp;quot;, source )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- Si hubo error en el sintaxis, anunciarlo también.&lt;br /&gt;
		outputChatBox ( &amp;quot;Error creando cuenta, sintaxis correcto: /register &amp;lt;contrasena&amp;gt;&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- Agrega un comando para registrarse.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''A diferencia del primero, el código siguiente permite a los jugadores crear una cuenta con un nombre distinto a su actual nick.'''&lt;br /&gt;
&lt;br /&gt;
'''Ejemplo 2:''' Esto permite a los jugadores registrarse en el servidor usando el comando /register &amp;lt;nombre&amp;gt; &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Gracias, &amp;quot; .. getPlayerName(source) .. &amp;quot;, ahora que estas registrado, logueate con /login&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creando cuenta, contacta al administrador del servidor.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                outputChatBox(&amp;quot;Error creando cuenta, sintaxis correcto: /register &amp;lt;nombre&amp;gt; &amp;lt;contrasena&amp;gt;&amp;quot;,source)&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- Agrega un comando para registrarse.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Ejemplo 3:''' Este código permite a los jugadores registrarse(crear una cuenta) sólo una sola vez usando /register &amp;lt;nombre&amp;gt; &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bRegisteredOnce = false&lt;br /&gt;
&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil and bRegisteredOnce == false) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Gracias, &amp;quot; .. getPlayerName(source) .. &amp;quot;, ahora que estas registrado, logueate con /login&amp;quot;,source)&lt;br /&gt;
                        bRegisteredOnce = true&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creando cuenta, contacta al administrador del servidor.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                if bRegisteredOnce == true then&lt;br /&gt;
                    outputChatBox(&amp;quot;Ya registraste una cuenta en este servidor!&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                    outputChatBox(&amp;quot;Error creando cuenta, sintaxis correcto: /register &amp;lt;nombre&amp;gt; &amp;lt;contrasena&amp;gt;&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- Agrega un comando para registrarse.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver También==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{Funciones_de_Cuenta}}&lt;br /&gt;
&lt;br /&gt;
[[en:AddAccount]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/copyAccountData&amp;diff=25395</id>
		<title>ES/copyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/copyAccountData&amp;diff=25395"/>
		<updated>2011-02-16T19:36:46Z</updated>

		<summary type="html">&lt;p&gt;Sukha: Created page with &amp;quot;__NOTOC__  {{Server function}} Esta función copia toda la información de una cuenta en otra.  ==Sintaxis==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool copyAccountData ( account laCuentaCopiada, accoun...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
Esta función copia toda la información de una cuenta en otra.&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 copyAccountData ( account laCuentaCopiada, account laCuentaDestino )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''laCuentaCopiada:''' La cuenta de la cual quieres copiar la información.&lt;br /&gt;
*'''laCuentaDestino:''' La cuenta cuenta que va a recibir la información copiada.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
Devuelve ''true'' si las cuentas son validas, de lo contrario devuelve ''false''.&lt;br /&gt;
&lt;br /&gt;
==Ejemplos==&lt;br /&gt;
This example copies the account data from the 'guest' to a registered account when they login&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function copyDataOnLogin ( previousAccount, currentAccount, autoLogin)&lt;br /&gt;
  copyAccountData ( currentAccount, previousAccount )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerLogin&amp;quot;, getRootElement(), copyDataOnLogin )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Funciones_de_Cuenta}}&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/AddAccount&amp;diff=25394</id>
		<title>ES/AddAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/AddAccount&amp;diff=25394"/>
		<updated>2011-02-16T19:24:12Z</updated>

		<summary type="html">&lt;p&gt;Sukha: /* Devuelve */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Esta función agrega una cuenta a la lista de cuentas registradas del servidor.&lt;br /&gt;
&lt;br /&gt;
==Sintaxis== &lt;br /&gt;
{{New feature|3|1.0 r848|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account addAccount ( string nombre, string contraseña )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''nombre:''' El nombre de la cuenta que deseas crear, normalmente se hace coincidir con el nombre del jugador(no es obligatorio que coincida).&lt;br /&gt;
*'''contraseña:''' La contraseña con la cual se va a acceder a la cuenta.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
{{New feature|3|1.0 r848|&lt;br /&gt;
Devuelve el elemento ''account'' (cuenta) si la cuenta fue creada satisfactoriamente, ''false'' si la cuenta ya existía o si ocurrió un error.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Ejemplo 1:''' Esto permite que los jugadores se registren usando el comando /register &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, password )&lt;br /&gt;
	-- Revisar si el campo de contraseña es válido&lt;br /&gt;
	if ( password ~= &amp;quot;&amp;quot; and password ~= nil ) then&lt;br /&gt;
		-- Crear una cuenta, y guardar la variable cuenta de forma local.&lt;br /&gt;
		local accountAdded = addAccount( getPlayerName(source), password )&lt;br /&gt;
		if ( accountAdded ) then&lt;br /&gt;
			-- Si todo funcionó, entonces al jugador se le anuncia.&lt;br /&gt;
			outputChatBox ( &amp;quot;Gracias, &amp;quot; .. getPlayerName(source) .. &amp;quot;, ahora que estas registrado, logueate con /login&amp;quot;, source )&lt;br /&gt;
		else&lt;br /&gt;
			-- Si algo salió mal, al jugador se le anuncia también.&lt;br /&gt;
			outputChatBox ( &amp;quot;Error creando cuenta, contacta al administrador del servidor.&amp;quot;, source )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- Si hubo error en el sintaxis, anunciarlo también.&lt;br /&gt;
		outputChatBox ( &amp;quot;Error creando cuenta, sintaxis correcto: /register &amp;lt;contrasena&amp;gt;&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- Agrega un comando para registrarse.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''A diferencia del primero, el código siguiente permite a los jugadores crear una cuenta con un nombre distinto a su actual nick.'''&lt;br /&gt;
&lt;br /&gt;
'''Ejemplo 2:''' Esto permite a los jugadores registrarse en el servidor usando el comando /register &amp;lt;nombre&amp;gt; &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Gracias, &amp;quot; .. getPlayerName(source) .. &amp;quot;, ahora que estas registrado, logueate con /login&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creando cuenta, contacta al administrador del servidor.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                outputChatBox(&amp;quot;Error creando cuenta, sintaxis correcto: /register &amp;lt;nombre&amp;gt; &amp;lt;contrasena&amp;gt;&amp;quot;,source)&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- Agrega un comando para registrarse.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Ejemplo 3:''' Este código permite a los jugadores registrarse(crear una cuenta) sólo una sola vez usando /register &amp;lt;nombre&amp;gt; &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bRegisteredOnce = false&lt;br /&gt;
&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil and bRegisteredOnce == false) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Gracias, &amp;quot; .. getPlayerName(source) .. &amp;quot;, ahora que estas registrado, logueate con /login&amp;quot;,source)&lt;br /&gt;
                        bRegisteredOnce = true&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creando cuenta, contacta al administrador del servidor.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                if bRegisteredOnce == true then&lt;br /&gt;
                    outputChatBox(&amp;quot;Ya registraste una cuenta en este servidor!&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                    outputChatBox(&amp;quot;Error creando cuenta, sintaxis correcto: /register &amp;lt;nombre&amp;gt; &amp;lt;contrasena&amp;gt;&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- Agrega un comando para registrarse.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver También==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:AddAccount]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/Funciones_de_Servidor&amp;diff=25378</id>
		<title>ES/Funciones de Servidor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/Funciones_de_Servidor&amp;diff=25378"/>
		<updated>2011-02-16T17:23:32Z</updated>

		<summary type="html">&lt;p&gt;Sukha: /* Funciones de cuenta */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
Esta pagina muestra todas las funciones del '''servidor''' que han sido implementadas y disponibles como funciones nativas. Para pedir una función o un evento, usa [[Requested Functions and Events|pedido de funciones y eventos]] o http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Por favor ten en cuenta que las funciones se pueden también extender cargando un modulo dinámico que entregue una nueva funcionalidad, como el MySQL database access. Estas funciones no son nativas y requieren que el modulo este cargado para funcionar.&lt;br /&gt;
&lt;br /&gt;
Vea [[Modules|Modulos]] para una lista de funciones de servidor no-nativas y módulos que están disponibles.&lt;br /&gt;
&lt;br /&gt;
Para mas funciones, vea la pagina de [[Useful_Functions|funciones útiles]].&lt;br /&gt;
&lt;br /&gt;
'''Las funciones de cliente se pueden encontrar aqui: [[Client Scripting Functions|Funciones de cliente]].'''&lt;br /&gt;
&lt;br /&gt;
'''Tenga en cuenta que casi todas las funciones presentes no presentan una traducción en su definición'''&lt;br /&gt;
 &lt;br /&gt;
==Funciones de cuenta==&lt;br /&gt;
{{Funciones_de_Cuenta}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de ACL==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones Administrativas==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de audio==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de anuncio==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de blip==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de cámara==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de colisión==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de ropa y cuerpo==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de cursor==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de elemento==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de evento==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones explosivas==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de archivos==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de HTTP==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de Input==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de mapa==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de marcadores==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de modulos==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de objetos==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de peds==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de pickup==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de jugadores==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de area de radar==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de recursos==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de serial==&lt;br /&gt;
{{Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de servidor==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de registro de propiedades==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de SQL==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de equipo==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de texto==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de utilidad==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de vehiculos==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de agua==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de arma==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones del mundo==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==Funciones de XML==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:Server Scripting Functions]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Funciones_de_Cuenta&amp;diff=25377</id>
		<title>Template:Funciones de Cuenta</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Funciones_de_Cuenta&amp;diff=25377"/>
		<updated>2011-02-16T17:21:39Z</updated>

		<summary type="html">&lt;p&gt;Sukha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[ES/addAccount|addAccount]]&lt;br /&gt;
*[[ES/copyAccountData|copyAccountData]]&lt;br /&gt;
*[[ES/getAccount|getAccount]]&lt;br /&gt;
*[[ES/getAccountData|getAccountData]]&lt;br /&gt;
*[[ES/getAccountName|getAccountName]]&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[ES/getAccountPlayer|getAccountPlayer]]&lt;br /&gt;
}}&lt;br /&gt;
*[[ES/getAccounts|getAccounts]]&lt;br /&gt;
*[[ES/isGuestAccount|isGuestAccount]]&lt;br /&gt;
*[[ES/logIn|logIn]]&lt;br /&gt;
*[[ES/logOut|logOut]]&lt;br /&gt;
*[[ES/removeAccount|removeAccount]]&lt;br /&gt;
*[[ES/setAccountData|setAccountData]]&lt;br /&gt;
*[[ES/setAccountPassword|setAccountPassword]]&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
*[[ES/getAccountClient|getAccountClient]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Funciones_de_Cuenta&amp;diff=25376</id>
		<title>Template:Funciones de Cuenta</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Funciones_de_Cuenta&amp;diff=25376"/>
		<updated>2011-02-16T17:18:39Z</updated>

		<summary type="html">&lt;p&gt;Sukha: Created page with &amp;quot;*ES/addAccount *ES/copyAccountData *ES/getAccount *ES/getAccountData *ES/getAccountName {{New feature|3|1.0| *ES/getAccountPlayer }} *ES/getAccounts *...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[ES/addAccount]]&lt;br /&gt;
*[[ES/copyAccountData]]&lt;br /&gt;
*[[ES/getAccount]]&lt;br /&gt;
*[[ES/getAccountData]]&lt;br /&gt;
*[[ES/getAccountName]]&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[ES/getAccountPlayer]]&lt;br /&gt;
}}&lt;br /&gt;
*[[ES/getAccounts]]&lt;br /&gt;
*[[ES/isGuestAccount]]&lt;br /&gt;
*[[ES/logIn]]&lt;br /&gt;
*[[ES/logOut]]&lt;br /&gt;
*[[ES/removeAccount]]&lt;br /&gt;
*[[ES/setAccountData]]&lt;br /&gt;
*[[ES/setAccountPassword]]&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
*[[ES/getAccountClient]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AddAccount&amp;diff=25375</id>
		<title>AddAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AddAccount&amp;diff=25375"/>
		<updated>2011-02-15T22:45:47Z</updated>

		<summary type="html">&lt;p&gt;Sukha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function adds an account to the list of registered accounts of the current server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
{{New feature|3|1.0 r848|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account addAccount ( string name, string pass )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addAccount ( string name, string pass )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''name:''' The name of the account you wish to make, this normally is the player's name.&lt;br /&gt;
*'''pass:''' The password to set for this account for future logins.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
{{New feature|3|1.0 r848|&lt;br /&gt;
Returns the ''account'' element if the account was created, ''false'' if the account already exists or an error occured.&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
Returns ''true'' if the account was created, ''false'' if the account already exists or an error occured.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 1:''' This enables players to register on your server by using /register &amp;lt;password&amp;gt; in the chat window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, password )&lt;br /&gt;
	-- Check if the password field is blank or not (only blank if they didnt enter one)&lt;br /&gt;
	if ( password ~= &amp;quot;&amp;quot; and password ~= nil ) then&lt;br /&gt;
		--Attempt to add the account, and save its value in a var&lt;br /&gt;
		local accountAdded = addAccount( getPlayerName(source), password )&lt;br /&gt;
		if ( accountAdded ) then&lt;br /&gt;
			--  Tell the user all is done&lt;br /&gt;
			outputChatBox ( &amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;, source )&lt;br /&gt;
		else&lt;br /&gt;
			-- There was an error making the account, tell the user&lt;br /&gt;
			outputChatBox ( &amp;quot;Error creating account, contact the server admin&amp;quot;, source )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- There was an error in the syntax, tell the user the correct syntax.&lt;br /&gt;
		outputChatBox ( &amp;quot;Error creating account, correct syntax: /register &amp;lt;password&amp;gt;&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''This code differs by allowing the user to change their username that they wish to use.'''&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' This enables players to register on your server by using /register &amp;lt;username&amp;gt; &amp;lt;password&amp;gt; in the chat window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creating account, contact the server admin.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                outputChatBox(&amp;quot;Error creating account, correct syntax: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 3:''' This code differs again so the user can only register once /register &amp;lt;username&amp;gt; &amp;lt;password&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bRegisteredOnce = false&lt;br /&gt;
&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil and bRegisteredOnce == false) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;,source)&lt;br /&gt;
                        bRegisteredOnce = true&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creating account, contact the server admin.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                if bRegisteredOnce == true then&lt;br /&gt;
                    outputChatBox(&amp;quot;You already registered on this server!&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                    outputChatBox(&amp;quot;Error creating account, correct syntax: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[es:AddAcount]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AddAccount&amp;diff=25374</id>
		<title>AddAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AddAccount&amp;diff=25374"/>
		<updated>2011-02-15T22:44:10Z</updated>

		<summary type="html">&lt;p&gt;Sukha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function adds an account to the list of registered accounts of the current server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
{{New feature|3|1.0 r848|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account addAccount ( string name, string pass )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addAccount ( string name, string pass )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''name:''' The name of the account you wish to make, this normally is the player's name.&lt;br /&gt;
*'''pass:''' The password to set for this account for future logins.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
{{New feature|3|1.0 r848|&lt;br /&gt;
Returns the ''account'' element if the account was created, ''false'' if the account already exists or an error occured.&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
Returns ''true'' if the account was created, ''false'' if the account already exists or an error occured.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 1:''' This enables players to register on your server by using /register &amp;lt;password&amp;gt; in the chat window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, password )&lt;br /&gt;
	-- Check if the password field is blank or not (only blank if they didnt enter one)&lt;br /&gt;
	if ( password ~= &amp;quot;&amp;quot; and password ~= nil ) then&lt;br /&gt;
		--Attempt to add the account, and save its value in a var&lt;br /&gt;
		local accountAdded = addAccount( getPlayerName(source), password )&lt;br /&gt;
		if ( accountAdded ) then&lt;br /&gt;
			--  Tell the user all is done&lt;br /&gt;
			outputChatBox ( &amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;, source )&lt;br /&gt;
		else&lt;br /&gt;
			-- There was an error making the account, tell the user&lt;br /&gt;
			outputChatBox ( &amp;quot;Error creating account, contact the server admin&amp;quot;, source )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- There was an error in the syntax, tell the user the correct syntax.&lt;br /&gt;
		outputChatBox ( &amp;quot;Error creating account, correct syntax: /register &amp;lt;password&amp;gt;&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''This code differs by allowing the user to change their username that they wish to use.'''&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' This enables players to register on your server by using /register &amp;lt;username&amp;gt; &amp;lt;password&amp;gt; in the chat window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creating account, contact the server admin.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                outputChatBox(&amp;quot;Error creating account, correct syntax: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 3:''' This code differs again so the user can only register once /register &amp;lt;username&amp;gt; &amp;lt;password&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bRegisteredOnce = false&lt;br /&gt;
&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil and bRegisteredOnce == false) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;,source)&lt;br /&gt;
                        bRegisteredOnce = true&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creating account, contact the server admin.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                if bRegisteredOnce == true then&lt;br /&gt;
                    outputChatBox(&amp;quot;You already registered on this server!&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                    outputChatBox(&amp;quot;Error creating account, correct syntax: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[es:addAcount]]&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/addAccount&amp;diff=25373</id>
		<title>ES/addAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/addAccount&amp;diff=25373"/>
		<updated>2011-02-15T22:41:19Z</updated>

		<summary type="html">&lt;p&gt;Sukha: /* Argumentos requeridos */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Esta función agrega una cuenta a la lista de cuentas registradas del servidor.&lt;br /&gt;
&lt;br /&gt;
==Sintaxis== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
{{New feature|3|1.0 r848|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account addAccount ( string nombre, string contraseña )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addAccount ( string name, string pass )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''nombre:''' El nombre de la cuenta que deseas crear, normalmente se hace coincidir con el nombre del jugador(no es obligatorio que coincida).&lt;br /&gt;
*'''contraseña:''' La contraseña con la cual se va a acceder a la cuenta.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
{{New feature|3|1.0 r848|&lt;br /&gt;
Devuelve el elemento ''account'' si la cuenta fue creada satisfactoriamente, ''false'' si la cuenta ya existía o si ocurrió un error.&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
Returns ''true'' if the account was created, ''false'' if the account already exists or an error occured.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Ejemplo 1:''' Esto permite que los jugadores se registren usando el comando /register &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, password )&lt;br /&gt;
	-- Check if the password field is blank or not (only blank if they didnt enter one)&lt;br /&gt;
	if ( password ~= &amp;quot;&amp;quot; and password ~= nil ) then&lt;br /&gt;
		--Attempt to add the account, and save its value in a var&lt;br /&gt;
		local accountAdded = addAccount( getPlayerName(source), password )&lt;br /&gt;
		if ( accountAdded ) then&lt;br /&gt;
			--  Tell the user all is done&lt;br /&gt;
			outputChatBox ( &amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;, source )&lt;br /&gt;
		else&lt;br /&gt;
			-- There was an error making the account, tell the user&lt;br /&gt;
			outputChatBox ( &amp;quot;Error creating account, contact the server admin&amp;quot;, source )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- There was an error in the syntax, tell the user the correct syntax.&lt;br /&gt;
		outputChatBox ( &amp;quot;Error creating account, correct syntax: /register &amp;lt;password&amp;gt;&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''A diferencia del primero, el código siguiente permite a los jugadores crear una cuenta con un nombre distinto a su actual nick.'''&lt;br /&gt;
&lt;br /&gt;
'''Ejemplo 2:''' Esto permite a los jugadores registrarse en el servidor usando el comando /register &amp;lt;nombre&amp;gt; &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creating account, contact the server admin.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                outputChatBox(&amp;quot;Error creating account, correct syntax: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Ejemplo 3:''' Este código permite a los jugadores registrarse(crear una cuenta) sólo una sola vez usando /register &amp;lt;nombre&amp;gt; &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bRegisteredOnce = false&lt;br /&gt;
&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil and bRegisteredOnce == false) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;,source)&lt;br /&gt;
                        bRegisteredOnce = true&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creating account, contact the server admin.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                if bRegisteredOnce == true then&lt;br /&gt;
                    outputChatBox(&amp;quot;You already registered on this server!&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                    outputChatBox(&amp;quot;Error creating account, correct syntax: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver También==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/addAccount&amp;diff=25372</id>
		<title>ES/addAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/addAccount&amp;diff=25372"/>
		<updated>2011-02-15T22:30:00Z</updated>

		<summary type="html">&lt;p&gt;Sukha: Created page with &amp;quot;{{Server function}} __NOTOC__ Esta función agrega una cuenta a la lista de cuentas registradas del servidor.  ==Sintaxis==  &amp;lt;!-- NOTE: don't use 'special' names for variable nam...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Esta función agrega una cuenta a la lista de cuentas registradas del servidor.&lt;br /&gt;
&lt;br /&gt;
==Sintaxis== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
{{New feature|3|1.0 r848|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account addAccount ( string nombre, string contraseña )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addAccount ( string name, string pass )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''nombre:''' El nombre de la cuenta que deseas crear, normalmente se hace coincidir con el nombre del jugador(no es obligatorio que coincida).&lt;br /&gt;
*'''contraseña:''' La contraseña con la cual se va a acceder a la cuenta.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
{{New feature|3|1.0 r848|&lt;br /&gt;
Devuelve el elemento ''account'' si la cuenta fue creada satisfactoriamente, ''false'' si la cuenta ya existía o si ocurrió un error.&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated_feature|3|1.0|&lt;br /&gt;
Returns ''true'' if the account was created, ''false'' if the account already exists or an error occured.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Ejemplo 1:''' Esto permite que los jugadores se registren usando el comando /register &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, password )&lt;br /&gt;
	-- Check if the password field is blank or not (only blank if they didnt enter one)&lt;br /&gt;
	if ( password ~= &amp;quot;&amp;quot; and password ~= nil ) then&lt;br /&gt;
		--Attempt to add the account, and save its value in a var&lt;br /&gt;
		local accountAdded = addAccount( getPlayerName(source), password )&lt;br /&gt;
		if ( accountAdded ) then&lt;br /&gt;
			--  Tell the user all is done&lt;br /&gt;
			outputChatBox ( &amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;, source )&lt;br /&gt;
		else&lt;br /&gt;
			-- There was an error making the account, tell the user&lt;br /&gt;
			outputChatBox ( &amp;quot;Error creating account, contact the server admin&amp;quot;, source )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- There was an error in the syntax, tell the user the correct syntax.&lt;br /&gt;
		outputChatBox ( &amp;quot;Error creating account, correct syntax: /register &amp;lt;password&amp;gt;&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''A diferencia del primero, el código siguiente permite a los jugadores crear una cuenta con un nombre distinto a su actual nick.'''&lt;br /&gt;
&lt;br /&gt;
'''Ejemplo 2:''' Esto permite a los jugadores registrarse en el servidor usando el comando /register &amp;lt;nombre&amp;gt; &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creating account, contact the server admin.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                outputChatBox(&amp;quot;Error creating account, correct syntax: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Ejemplo 3:''' Este código permite a los jugadores registrarse(crear una cuenta) sólo una sola vez usando /register &amp;lt;nombre&amp;gt; &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bRegisteredOnce = false&lt;br /&gt;
&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil and bRegisteredOnce == false) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;,source)&lt;br /&gt;
                        bRegisteredOnce = true&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creating account, contact the server admin.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                if bRegisteredOnce == true then&lt;br /&gt;
                    outputChatBox(&amp;quot;You already registered on this server!&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                    outputChatBox(&amp;quot;Error creating account, correct syntax: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver También==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Sukha</name></author>
	</entry>
</feed>