PL/detonateSatchels: Difference between revisions
Jump to navigation
Jump to search
ThePiotrek (talk | contribs) mNo edit summary |
ThePiotrek (talk | contribs) No edit summary |
||
| Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<section name=" | <section name="Klient" class="client" show="true"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool detonateSatchels ( ) | bool detonateSatchels ( ) | ||
| Line 10: | Line 10: | ||
</section> | </section> | ||
<section name=" | <section name="Serwer" class="server" show="true"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool detonateSatchels ( player Player ) | bool detonateSatchels ( player Player ) | ||
Revision as of 13:30, 21 July 2016
Ta funkcja służy do wysadzania ładunków wybuchowych gracza.
Syntax
Click to collapse [-]
Klientbool detonateSatchels ( )
Click to collapse [-]
Serwerbool 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 [-]
Klientfunction blowMySatchels()
detonateSatchels()
outputChatBox("Ładunki wybuchowe wysadzone!", 0, 255, 0)
end
addCommandHandler("blowsatchels", blowMySatchels)