PL/detonateSatchels

From Multi Theft Auto: Wiki
Revision as of 13:29, 21 July 2016 by ThePiotrek (talk | contribs) (Created page with "{{Server client function}} __NOTOC__ This function can be used to detonate a players satchels. ==Syntax== <section name="Client" class="client" show="true"> <syntaxhighlight lang="lua"> bool...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function can be used to detonate a players satchels.

Syntax

Click to collapse [-]
Client
bool detonateSatchels ( )
Click to collapse [-]
Server
bool detonateSatchels ( player Player )

Wartości zwrotne

Zwraca true w przypadku powodzenia, w innym przypadku false.

Przykład

Ta funkcja pozwala graczu na wysadzenie wszystkich jego ładunków wybuchowych używając /blowsatchels

Click to collapse [-]
Klient
function blowMySatchels()
    detonateSatchels()
    outputChatBox("Ładunki wybuchowe wysadzone!", 0, 255, 0)
end
addCommandHandler("blowsatchels", blowMySatchels)

Zobacz także