Code:
addBoolOption("Tiempo", Tiempo);
case 4: Tiempo = !Tiempo;
*(int*)0x12C28E8 = Tiempo ? 0x4E800020 : 0x7C0802A6;//GAME_CLOCK_EVENT
*(int*)0x12C2D8C = Tiempo ? 0x4E800020 : 0x7C0802A6;//GAME_WEATHER_EVENT
break;
void game_weather(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
if (beta1)
{
int addressOfArgs = r3 + 10 * 0x4;
char *senderName = (char*)(*(int*)(senderData + 0x78) + 0x10);
char buf[100];
snprintf(buf, sizeof(buf), "~g~%s ~w~tried to changed weather'", senderName);
PRINT(buf, 5000);
// call the original event
*(DWORD*)0x12C2D8C = 0x4E800020;
((void(*)(int, int, int, int, int, int, int))0x12C2D8C)(r3, senderData, recieverData, r6, r7, r8, r9);
*(DWORD*)0x12C2D8C = 0x7C0802A6;
}
}