ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 1403

fix protection

by carlos_20 - 12-01-2019 - 02:45 PM
#1
What's wrong that you don't let me know?


void Hook_Game_Weather_Event(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
    int addressOfArgs = r3 + 10 * 0x4;
    char
[i]senderName = (char[/i])([i](int[/i])(senderData + 0x78) + 0x10);
    unsigned int* eventargs = (unsigned int*)r3;
    if (eventargs)
    {
        char buf[100];
        snprintf(buf, sizeof(buf), "~g~%s ~w~tried to change the weather", senderName);
        PRINT(buf,7000);


    }
    // call the original event
   
[i](int[/i])0x12C2E2C = 0x4E800020;;//GAME_WEATHER_EVENT,
    ((void(*)(int, int, int, int, int, int,int))0x830D8178)(r3, senderData, recieverData, r6, r7, r8, r9);
   
[i](int[/i])0x12C2E2C = 0x7C0802A6;
}
Reply

Users browsing: 1 Guest(s)