mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[saco] Implement/match CGame::SetWorldTime(...)
This commit is contained in:
@@ -493,6 +493,16 @@ BOOL CGame::IsModelLoaded(int iModelID)
|
||||
|
||||
//-----------------------------------------------------------
|
||||
// MATCH
|
||||
void CGame::SetWorldTime(int iHour, int iMinute)
|
||||
{
|
||||
*(PBYTE)0xB70152 = (BYTE)iMinute;
|
||||
*(PBYTE)0xB70153 = (BYTE)iHour;
|
||||
|
||||
ScriptCommand(&set_current_time, iHour, iMinute);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CGame::GetWorldTime(BYTE* byteHour, BYTE* byteMinute)
|
||||
{
|
||||
*byteMinute = *(PBYTE)0xB70152;
|
||||
|
||||
Reference in New Issue
Block a user