TR/ResetWaterColor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(ResetWaterColor Turkish Translate)
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
This function reset the water color of the GTA world to default.
Bu işlev GTA dünyasının su rengini varsayılan olarak ayarlar.


==Syntax==
==Sözdizimi==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool resetWaterColor ( )
bool resetWaterColor ( )
Line 10: Line 10:
{{OOP||[[Water]].resetColor}}
{{OOP||[[Water]].resetColor}}


===Returns===
===Dönüş===
Returns ''true'' if water color was reset correctly, ''false'' otherwise.
Su rengi doğru sıfırlandıysa ''true'', aksi takdirde ''false'' döndürür.
 
 
==Örnek==
Bu örnek, bir oyuncunun su rengini sıfırlanabileceği bir ''resetwatercolor'' komutu ekler.


==Example==
This example adds a command ''resetwatercolor'' with which a player can reset the water colour.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
function changeWaterBackToNormal ()
function changeWaterBackToNormal ()
Line 22: Line 24:
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==Bunlarada Bakabilirsiniz==
{{Client water functions}}
{{Client water functions}}

Latest revision as of 22:22, 1 March 2021

Bu işlev GTA dünyasının su rengini varsayılan olarak ayarlar.

Sözdizimi

bool resetWaterColor ( )


OOP Syntax Help! I don't understand this!

Method: Water.resetColor(...)


Dönüş

Su rengi doğru sıfırlandıysa true, aksi takdirde false döndürür.


Örnek

Bu örnek, bir oyuncunun su rengini sıfırlanabileceği bir resetwatercolor komutu ekler.

function changeWaterBackToNormal ()
    resetWaterColor ()
end
addCommandHandler ( "resetwatercolor", changeWaterBackToNormal )

Bunlarada Bakabilirsiniz

Shared