mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement/match CGame::EnableClock(...)
This commit is contained in:
parent
6dbcdc827e
commit
43f186edd1
@ -1044,6 +1044,24 @@ void CGame::DrawGangZone(float fPos[], DWORD dwColor)
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CGame::EnableClock(BYTE byteClock)
|
||||
{
|
||||
BYTE byteClockData[] = {'%', '0', '2', 'd', ':', '%', '0', '2', 'd', 0};
|
||||
UnFuck(0x859A6C,10);
|
||||
if (byteClock)
|
||||
{
|
||||
ToggleThePassingOfTime(1);
|
||||
memcpy((PVOID)0x859A6C, byteClockData, 10);
|
||||
}
|
||||
else
|
||||
{
|
||||
ToggleThePassingOfTime(0);
|
||||
memset((PVOID)0x859A6C,0,10);
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CGame::EnableZoneNames(BYTE byteEnable)
|
||||
{
|
||||
ScriptCommand(&enable_zone_names, byteEnable);
|
||||
|
@ -71,6 +71,7 @@ public:
|
||||
void ToggleRadar(int iToggle);
|
||||
void DisplayGameText(char *szStr,int iTime,int iSize);
|
||||
void SetGravity(float fGravity);
|
||||
void EnableClock(BYTE byteClock);
|
||||
void EnableZoneNames(BYTE byteEnable);
|
||||
void SetWantedLevel(BYTE byteLevel);
|
||||
void SetGameTextCount(WORD wCount);
|
||||
|
Loading…
Reference in New Issue
Block a user