<?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=ReWrite94</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=ReWrite94"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/ReWrite94"/>
	<updated>2026-04-24T22:26:22Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerJoin&amp;diff=38715</id>
		<title>OnPlayerJoin</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerJoin&amp;diff=38715"/>
		<updated>2014-01-30T17:15:39Z</updated>

		<summary type="html">&lt;p&gt;ReWrite94: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a player joins the server.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
No parameters.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The source of this event is the [[player]] who joined.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the joined client's name and sends him a welcome message including his name.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- we register greetPlayer as a handler for the event&lt;br /&gt;
function greetPlayer ( )&lt;br /&gt;
	-- we store the player's name&lt;br /&gt;
	local joinedPlayerName = getPlayerName ( source )&lt;br /&gt;
	local serverName = getServerName( )&lt;br /&gt;
	-- and send him a greeting&lt;br /&gt;
	outputChatBox ( &amp;quot;Welcome &amp;quot; .. joinedPlayerName .. &amp;quot; to &amp;quot;.. serverName ..&amp;quot;!&amp;quot; , source, 255, 255, 255 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, getRootElement(), greetPlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This example sets random color to every player who joins.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create a table to save the color&lt;br /&gt;
ChatColors = {}&lt;br /&gt;
&lt;br /&gt;
-- sets colors when player join&lt;br /&gt;
function onJoin ()&lt;br /&gt;
        -- create a table to add rgb values. Index will be the player element&lt;br /&gt;
	ChatColors[source] = {math.random (50, 255), math.random (50, 255), math.random (50, 255)}&lt;br /&gt;
end&lt;br /&gt;
-- checks if player has sent a message&lt;br /&gt;
function onChat ( message, messageType )&lt;br /&gt;
	if messageType == 0 then&lt;br /&gt;
                -- use the table to get the saved rgb values&lt;br /&gt;
		outputChatBox ( getPlayerName ( source ) .. &amp;quot;: #E0D0B0&amp;quot; .. message, getRootElement(), ChatColors[source][1], ChatColors[source][2], ChatColors[source][3], true )&lt;br /&gt;
		cancelEvent()&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, getRootElement(), onJoin)&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerChat&amp;quot;, getRootElement(), onChat )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>ReWrite94</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:ReWrite&amp;diff=36832</id>
		<title>User:ReWrite</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:ReWrite&amp;diff=36832"/>
		<updated>2013-08-05T22:23:15Z</updated>

		<summary type="html">&lt;p&gt;ReWrite94: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:ReWrite Logo.jpg|200px|thumb|left|ReWrite's Logo]]&lt;br /&gt;
&lt;br /&gt;
ReWrite is a German scripter. He developed the Godmother script and helped Zipper to develop Vio-Reallife.&lt;br /&gt;
&lt;br /&gt;
His newest project is called &amp;quot;iLife&amp;quot;. It will be a Fun-RL Gamemode. iLife is currently in Development.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ReWrite can be found at mta-sa.org (Username: ReWrite). Just send him a message.&lt;/div&gt;</summary>
		<author><name>ReWrite94</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:ReWrite&amp;diff=36831</id>
		<title>User:ReWrite</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:ReWrite&amp;diff=36831"/>
		<updated>2013-08-05T22:19:40Z</updated>

		<summary type="html">&lt;p&gt;ReWrite94: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:ReWrite Logo.jpg|200px|thumb|left|ReWrite's Logo]]&lt;br /&gt;
&lt;br /&gt;
ReWrite is a German scripter. He developed the Godmother script and helped Zipper to develop Vio-Reallife.&lt;br /&gt;
&lt;br /&gt;
He can be found at mta-sa.org (Username: ReWrite). Just send him a message.&lt;/div&gt;</summary>
		<author><name>ReWrite94</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:ReWrite_Logo.jpg&amp;diff=36830</id>
		<title>File:ReWrite Logo.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:ReWrite_Logo.jpg&amp;diff=36830"/>
		<updated>2013-08-05T22:15:39Z</updated>

		<summary type="html">&lt;p&gt;ReWrite94: The Logo of the german scripter &amp;quot;ReWrite&amp;quot;.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Logo of the german scripter &amp;quot;ReWrite&amp;quot;.&lt;/div&gt;</summary>
		<author><name>ReWrite94</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:ReWrite&amp;diff=36445</id>
		<title>User:ReWrite</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:ReWrite&amp;diff=36445"/>
		<updated>2013-06-25T06:19:24Z</updated>

		<summary type="html">&lt;p&gt;ReWrite94: Created page with &amp;quot;ReWrite is a German Scripter. He developed the Godmother script and helped Zipper to develop Vio-Reallife. He can be found at mta-sa.org (Username: ReWrite). Just send a PN.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReWrite is a German Scripter. He developed the Godmother script and helped Zipper to develop Vio-Reallife.&lt;br /&gt;
He can be found at mta-sa.org (Username: ReWrite). Just send a PN.&lt;/div&gt;</summary>
		<author><name>ReWrite94</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:ReWrite94&amp;diff=36444</id>
		<title>User:ReWrite94</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:ReWrite94&amp;diff=36444"/>
		<updated>2013-06-25T06:18:55Z</updated>

		<summary type="html">&lt;p&gt;ReWrite94: Created page with &amp;quot;ReWrite is a German Scripter. He developed the Godmother script and helped Zipper to develop Vio-Reallife.  He can be found at mta-sa.org (Username: ReWrite). Just send a PN.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReWrite is a German Scripter.&lt;br /&gt;
He developed the Godmother script and helped Zipper to develop Vio-Reallife.&lt;br /&gt;
&lt;br /&gt;
He can be found at mta-sa.org (Username: ReWrite).&lt;br /&gt;
Just send a PN.&lt;/div&gt;</summary>
		<author><name>ReWrite94</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSoundSpeed&amp;diff=25521</id>
		<title>SetSoundSpeed</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSoundSpeed&amp;diff=25521"/>
		<updated>2011-04-02T14:59:02Z</updated>

		<summary type="html">&lt;p&gt;ReWrite94: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function can be used to change the playback speed of the specified [[sound]] element.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundSpeed ( element theSound, float speed )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' The [[sound]] element which volume you want to modify.&lt;br /&gt;
*'''speed:''' A [[float]]ing point number representing the desired sound playback speed.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[sound]] element playback speed was successfully changed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function sound()&lt;br /&gt;
sound = playSound ( &amp;quot;/sounds/jizzy.mp3&amp;quot;,true) -- Let's play a sound&lt;br /&gt;
setSoundSpeed ( sound, 1.2 ) -- And it will be a little bit faster !&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;play&amp;quot;,sound)&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;
{{Client_audio_functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>ReWrite94</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSoundSpeed&amp;diff=25520</id>
		<title>SetSoundSpeed</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSoundSpeed&amp;diff=25520"/>
		<updated>2011-04-02T14:57:35Z</updated>

		<summary type="html">&lt;p&gt;ReWrite94: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function can be used to change the playback speed of the specified [[sound]] element.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundSpeed ( element theSound, float speed )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' The [[sound]] element which volume you want to modify.&lt;br /&gt;
*'''speed:''' A [[float]]ing point number representing the desired sound playback speed.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[sound]] element playback speed was successfully changed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function sound()&lt;br /&gt;
sound = playSound ( &amp;quot;/sounds/jizzy.mp3&amp;quot;,true)&lt;br /&gt;
setSoundSpeed ( sound, 1.2 )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;play&amp;quot;,sound)&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;
{{Client_audio_functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>ReWrite94</name></author>
	</entry>
</feed>