DE/setPedOnFire

From Multi Theft Auto: Wiki
Revision as of 05:55, 28 February 2011 by Rafael Schiedel (talk | contribs) (Created page with "__NOTOC__ {{Server client function}} Diese Funktion überprüft das der ped schiesst. ==Syntax== <syntaxhighlight lang="lua">bool isPedOnFire ( ped derPed )</syntaxhighlight> ===Required Arguments==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Diese Funktion überprüft das der ped schiesst.

Syntax

bool isPedOnFire ( ped derPed )

Required Arguments

  • derPed: Der ped zu überprüfen.

Returns

Returns true wenn der schiesst, false wenn nicht.

Example

Click to collapse [-]
Server

Disese Funktion nimmt ein zufälligen Spieler und wenn er schiessen sollte bekommt er ne M4

local player = getRandomPlayer()
if isPedOnFire ( player ) then
	giveWeapon ( player, 31, 150, true )
end

See Also