SetPlayerTime
From SA-MP Wiki
SetPlayerTime
Sets the clock of the player to a specific value. This also changes the daytime (night/day etc.)
(playerid, hour, minute)
| playerid | The ID of the player |
| hour | Hour to set (0-23) |
| minute | Minutes to set (0-59) |
This function does not return a specific value.
SetPlayerTime(playerid,12,0); //noon SetPlayerTime(playerid,0,0); //midnight
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- SetWorldTime: Set the global server time.
- GetPlayerTime: Check the time of a player.
- TogglePlayerClock: Toggle the clock in the top-right corner.
