<?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=Toffykozak</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=Toffykozak"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Toffykozak"/>
	<updated>2026-04-22T11:00:17Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Editor&amp;diff=50261</id>
		<title>Resource:Editor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Editor&amp;diff=50261"/>
		<updated>2017-01-02T20:01:43Z</updated>

		<summary type="html">&lt;p&gt;Toffykozak: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==crossroad95 to jest hacker zbanójcie go plis==&lt;/div&gt;</summary>
		<author><name>Toffykozak</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Editor&amp;diff=50260</id>
		<title>Resource:Editor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Editor&amp;diff=50260"/>
		<updated>2017-01-02T20:01:27Z</updated>

		<summary type="html">&lt;p&gt;Toffykozak: Replaced content with &amp;quot;crossroad95 to jest hacker zbanójcie go plis&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;crossroad95 to jest hacker zbanójcie go plis&lt;/div&gt;</summary>
		<author><name>Toffykozak</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Where_to_buy_GTASA&amp;diff=50259</id>
		<title>Where to buy GTASA</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Where_to_buy_GTASA&amp;diff=50259"/>
		<updated>2017-01-02T20:00:41Z</updated>

		<summary type="html">&lt;p&gt;Toffykozak: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TRIN TO JEBANY GRUBAS &amp;lt;3&lt;br /&gt;
TRIN TO JEBANY GRUBAS &amp;lt;3TRIN TO JEBANY GRUBAS &amp;lt;3TRIN TO JEBANY GRUBAS &amp;lt;3TRIN TO JEBANY GRUBAS &amp;lt;3&lt;br /&gt;
== czyli spierdalaj cwelu jebany ==&lt;/div&gt;</summary>
		<author><name>Toffykozak</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AddAccount&amp;diff=50258</id>
		<title>AddAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AddAccount&amp;diff=50258"/>
		<updated>2017-01-02T19:59:37Z</updated>

		<summary type="html">&lt;p&gt;Toffykozak: /* PSZEMEK TO JA */&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;
&lt;br /&gt;
== DAWID EXTREM TO SUKA ==&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;account addAccount ( string name, string pass[, bool allowCaseVariations = false] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|[[Account]].add ||}}&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;
===Optional Arguments===&lt;br /&gt;
*'''allowCaseVariations:''' Whether the username is case sensitive (if this is set to true, usernames &amp;quot;Bob&amp;quot; and &amp;quot;bob&amp;quot; will refer to different accounts)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[account]] or ''false'' if the account already exists or an error occured.&lt;br /&gt;
&lt;br /&gt;
===Limits===&lt;br /&gt;
*'''name:'''&lt;br /&gt;
** Minimal account name length is 1 character.&lt;br /&gt;
** Account names are case-sensitive.&lt;br /&gt;
** Account name can not be equal to &amp;quot;*****&amp;quot;&lt;br /&gt;
*'''pass:'''&lt;br /&gt;
** Minimal account password length is 1 character.&lt;br /&gt;
** Maximum account password length is 30 characters.&lt;br /&gt;
** Account password can not be equal to &amp;quot;*****&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
&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;
[[ar:addAcount]]&lt;br /&gt;
[[es:addAcount]]&lt;br /&gt;
[[ru:addAccount]]&lt;br /&gt;
[[pl:addAccount]]&lt;/div&gt;</summary>
		<author><name>Toffykozak</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Mapmanager&amp;diff=50256</id>
		<title>Resource:Mapmanager</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Mapmanager&amp;diff=50256"/>
		<updated>2017-01-02T19:58:13Z</updated>

		<summary type="html">&lt;p&gt;Toffykozak: Replaced content with &amp;quot;EVO TO CHUJ!!!! one oen oen !!!&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;EVO TO CHUJ!!!! one oen oen !!!&lt;/div&gt;</summary>
		<author><name>Toffykozak</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Changes_in_1.5.3&amp;diff=50255</id>
		<title>Changes in 1.5.3</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Changes_in_1.5.3&amp;diff=50255"/>
		<updated>2017-01-02T19:57:15Z</updated>

		<summary type="html">&lt;p&gt;Toffykozak: KOPOLOWY JEST JAK PORNO, CZYLI NAŁÓG &amp;lt;3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;KOPOLOWY JEST JAK PORNO, CZYLI NAŁÓG &amp;lt;3&lt;/div&gt;</summary>
		<author><name>Toffykozak</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Client_Manual&amp;diff=50254</id>
		<title>Client Manual</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Client_Manual&amp;diff=50254"/>
		<updated>2017-01-02T19:55:44Z</updated>

		<summary type="html">&lt;p&gt;Toffykozak: Replaced content with &amp;quot;THEZIOM SHAKUJE CI MATKE CWELU&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;THEZIOM SHAKUJE CI MATKE CWELU&lt;/div&gt;</summary>
		<author><name>Toffykozak</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Where_to_buy_GTASA&amp;diff=50253</id>
		<title>Where to buy GTASA</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Where_to_buy_GTASA&amp;diff=50253"/>
		<updated>2017-01-02T19:54:48Z</updated>

		<summary type="html">&lt;p&gt;Toffykozak: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TRIN TO JEBANY GRUBAS &amp;lt;3&lt;br /&gt;
TRIN TO JEBANY GRUBAS &amp;lt;3TRIN TO JEBANY GRUBAS &amp;lt;3TRIN TO JEBANY GRUBAS &amp;lt;3TRIN TO JEBANY GRUBAS &amp;lt;3&lt;/div&gt;</summary>
		<author><name>Toffykozak</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Changelogs&amp;diff=50252</id>
		<title>Template:Changelogs</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Changelogs&amp;diff=50252"/>
		<updated>2017-01-02T19:53:58Z</updated>

		<summary type="html">&lt;p&gt;Toffykozak: TRIN TO JEBANY GRUBAS &amp;lt;3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TRIN TO JEBANY GRUBAS &amp;lt;3&lt;/div&gt;</summary>
		<author><name>Toffykozak</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Where_to_buy_GTASA&amp;diff=50251</id>
		<title>Where to buy GTASA</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Where_to_buy_GTASA&amp;diff=50251"/>
		<updated>2017-01-02T19:52:23Z</updated>

		<summary type="html">&lt;p&gt;Toffykozak: TRIN TO JEBANY GRUBAS &amp;lt;3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TRIN TO JEBANY GRUBAS &amp;lt;3&lt;/div&gt;</summary>
		<author><name>Toffykozak</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Animations&amp;diff=50250</id>
		<title>Animations</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Animations&amp;diff=50250"/>
		<updated>2017-01-02T19:51:48Z</updated>

		<summary type="html">&lt;p&gt;Toffykozak: TRIN TO JEBANY GRUBAS &amp;lt;3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TRIN TO JEBANY GRUBAS &amp;lt;3&lt;/div&gt;</summary>
		<author><name>Toffykozak</name></author>
	</entry>
</feed>