<?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=Ch3ck3r</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=Ch3ck3r"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Ch3ck3r"/>
	<updated>2026-04-29T00:27:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsPedHeadless&amp;diff=22362</id>
		<title>IsPedHeadless</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsPedHeadless&amp;diff=22362"/>
		<updated>2010-02-06T00:35:21Z</updated>

		<summary type="html">&lt;p&gt;Ch3ck3r: added code examples&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
With this function, you can check if a ped has a head or not.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isPedHeadless  ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': The [[ped]] to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the ped is headless, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section class=&amp;quot;client&amp;quot; name=&amp;quot;Client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Add a command to check whether the player is a zombie or not&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkZombie(commandName)&lt;br /&gt;
   local player = getLocalPlayer()&lt;br /&gt;
   -- check whether the player is headless (a zombie)&lt;br /&gt;
   local message = isPedHeadless(player) and &amp;quot;Yes, you are a zombie!&amp;quot; or &amp;quot;No, you aren't a zombie yet!&amp;quot;&lt;br /&gt;
   outputChatBox(message)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;amIaZombie?&amp;quot;, checkZombie)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section class=&amp;quot;server&amp;quot; name=&amp;quot;Server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Add a command to check whether a player is a zombie or not&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkZombie(playerSource, commandName, playerTargetNick)&lt;br /&gt;
   local playerTarget = getPlayerFromName(playerTargetNick)&lt;br /&gt;
   if (not playerTarget) then outputChatBox(&amp;quot;Player not online!&amp;quot;, playerSource, 255, 0, 0) end&lt;br /&gt;
   -- check whether the playerTarget is headless (a zombie)&lt;br /&gt;
   local message = isPedHeadless(playerTarget) and &amp;quot;This Player is a zombie!&amp;quot; or &amp;quot;This player is not a zombie!&amp;quot;&lt;br /&gt;
   outputChatBox(message, playerSource)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;zombieOrNot&amp;quot;, checkZombie)&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;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Ch3ck3r</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HandlingSetBrakeDeceleration&amp;diff=22361</id>
		<title>HandlingSetBrakeDeceleration</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HandlingSetBrakeDeceleration&amp;diff=22361"/>
		<updated>2010-02-06T00:26:07Z</updated>

		<summary type="html">&lt;p&gt;Ch3ck3r: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
Sets the brake deceleration of a handling element. This determines how strongly a vehicle can lock its wheels when braking. High values will allow cars to immediately lock their wheels and cause skidding. Low values will merely slow down the wheels.&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 handlingSetBrakeDeceleration ( handling theHandling, float deceleration )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theHandling:''' the handling of which you want to change the brake deceleration.&lt;br /&gt;
*'''deceleration:''' the brake decelertion to set.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' on success, ''false'' in case of failure.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Select a player and damage its vehicle's brakes&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function damageBreaks()&lt;br /&gt;
    local player = getPlayerFromName(&amp;quot;David&amp;quot;) -- get a player&lt;br /&gt;
    local vehicle = getPedOccupiedVehicle(player) -- get the vehicle David is in&lt;br /&gt;
    handlingSetBrakeDeceleration(vehicle, 0.08) -- reduce brake's strength&lt;br /&gt;
    outputChatBox(&amp;quot;Your brakes are damaged. Drive careful!&amp;quot;, player, 255, 0, 0)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Handling_functions}}&lt;/div&gt;</summary>
		<author><name>Ch3ck3r</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HandlingSetBrakeDeceleration&amp;diff=22360</id>
		<title>HandlingSetBrakeDeceleration</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HandlingSetBrakeDeceleration&amp;diff=22360"/>
		<updated>2010-02-06T00:25:20Z</updated>

		<summary type="html">&lt;p&gt;Ch3ck3r: added example code&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
Sets the brake deceleration of a handling element. This determines how strongly a vehicle can lock its wheels when braking. High values will allow cars to immediately lock their wheels and cause skidding. Low values will merely slow down the wheels.&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 handlingSetBrakeDeceleration ( handling theHandling, float deceleration )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theHandling:''' the handling of which you want to change the brake deceleration.&lt;br /&gt;
*'''deceleration:''' the brake decelertion to set.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' on success, ''false'' in case of failure.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Select a player and damage its vehicle's brakes&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function damageBreaks()&lt;br /&gt;
    local player = getPlayerFromName(&amp;quot;David&amp;quot;) -- get a player&lt;br /&gt;
    local vehicle = getPedOccupiedVehicle(player) -- get the vehicle David is in&lt;br /&gt;
    handlingSetBrakeDeceleration(vehicle, 0.08) -- reduce brake's strenght&lt;br /&gt;
    outputChatBox(&amp;quot;Your brakes are damaged. Drive careful!&amp;quot;, player, 255, 0, 0)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Handling_functions}}&lt;/div&gt;</summary>
		<author><name>Ch3ck3r</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/MTA-MySQL&amp;diff=22112</id>
		<title>Modules/MTA-MySQL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/MTA-MySQL&amp;diff=22112"/>
		<updated>2009-12-29T02:05:59Z</updated>

		<summary type="html">&lt;p&gt;Ch3ck3r: Workaround for an error on unix systems&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Module_Info|&lt;br /&gt;
  name           = MTA MySQL |&lt;br /&gt;
  version        = 0.41 |&lt;br /&gt;
  author         = [[User:ryden|Alberto Alonso (ryden)]] |&lt;br /&gt;
  module_website = ''Not available'' |&lt;br /&gt;
  download_link  = [http://dan.bastage.net/mta/MTA-MySQL-0.41.rar Here] |&lt;br /&gt;
  license        = [http://www.opensource.org/licenses/bsd-license.php BSD]&lt;br /&gt;
}}&lt;br /&gt;
MTA MySQL is an alternative to the default [[Modules/MySQL|ml_mysql]] module provided by the MTA team.&lt;br /&gt;
It is available for Windows and GNU/Linux and provides the source code.&lt;br /&gt;
&lt;br /&gt;
''Note: From version 0.4 it supports both DP2.3 and 1.0 servers.''&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
===Windows===&lt;br /&gt;
Uncompress the file mta_mysql.dll into your ''C:\Program files\MTA San Andreas\server\mods\deathmatch\modules\'' directory and the file libmysql.dll into your ''C:\Program files\MTA San Andreas\server\'' directory.&lt;br /&gt;
&lt;br /&gt;
Then, add the following line in mtaserver.conf:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;module src=&amp;quot;mta_mysql.dll&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GNU/Linux===&lt;br /&gt;
Uncompress the file mta_mysql.so in the ''mods/deathmatch/modules/'' directory.&lt;br /&gt;
&lt;br /&gt;
Then, add the following line in mtaserver.conf:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;module src=&amp;quot;mta_mysql.so&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you experience an error on Unix systems:'''&lt;br /&gt;
Try to add port and socket parameters to your mysql_connect.&lt;br /&gt;
&lt;br /&gt;
==Handler functions==&lt;br /&gt;
{{Modules/MTA-MySQL/Handler_functions}}&lt;br /&gt;
&lt;br /&gt;
==Result managing functions==&lt;br /&gt;
{{Modules/MTA-MySQL/Result_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;/div&gt;</summary>
		<author><name>Ch3ck3r</name></author>
	</entry>
</feed>