SetWorldTime

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:11, 30 November 2015
ExPLORE (Talk | contribs)

← Previous diff
Current revision
Vince (Talk | contribs)
(Reverted to English)
Line 1: Line 1:
-{{Scripting_PT}}+{{Scripting}}
-{{Description|Seta uma hora especifica (para todos os jogadores).}}+{{Description|Sets the world time (for all players) to a specific hour.}}
-{{Parameters|Hora}}+{{Parameters|hour}}
-{{Param|Hora|Hora a ser setada (0-23)}}+{{Param|hour|The hour to set (0-23)}}
{{NoReturn}} {{NoReturn}}
-{{Tip|Para setar hora para um jogador expecífico, use a função [[SetPlayerTime]].}}+{{Tip|To set the minutes and/or to set the time for individual players, see [[SetPlayerTime]].}}
-{{Exemplo}}+{{Example}}
<pawn> <pawn>
-// Seta a hora para 12 horas (tarde)+// Set the time to 12 o'clock (noon)
SetWorldTime(12); SetWorldTime(12);
</pawn> </pawn>
-{{Note|Essa função só relativa para jogadores que não estão usando a função [[TogglePlayerClock]].}}+{{Note|This function is only relevant for players that do not use a passing clock - see [[TogglePlayerClock]].}}
-{{Funções Relacionadas}}+{{RelatedFunctions}}
{{SetPlayerTime}} {{SetPlayerTime}}
{{SetWeather}} {{SetWeather}}
{{SetGravity}} {{SetGravity}}
-[[Category:Scripting_PT]]+[[Category:Scripting Functions]]

Current revision



Description:

Sets the world time (for all players) to a specific hour.


Parameters:
(hour)
hourThe hour to set (0-23)


Return Values:

This function does not return any specific values.


Tip

Image:Light_bulb_icon.png

To set the minutes and/or to set the time for individual players, see SetPlayerTime.


Example Usage:

// Set the time to 12 o'clock (noon)
SetWorldTime(12);
Image:32px-Ambox_warning_orange.png

Note

This function is only relevant for players that do not use a passing clock - see TogglePlayerClock.


Related Functions

The following functions may be useful, as they are related to this function in one way or another.