SetPlayerTime

From SA-MP Wiki

Jump to: navigation, search

SetPlayerTime


Sets the clock of the player to a specific value. This also changes the daytime (night/day etc.)


Parameters:
(playerid, hour, minute)
playeridThe ID of the player
hourHour to set (0-23)
minuteMinutes 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.

Personal tools