void Hook_Remove_Weapon_Event(uint arg1, uint arg2, uint arg3, uint arg4, uint arg5, uint arg6)
{
uint addr = *(unsigned int*)(arg2 + 0x78);
char* name = (char*)(addr + 0x5C);
char buf[100];
sprintf_s(buf, "~g~%s ~w~tried to remove your weapons", name);
ShowMessageOnScreen(buf);
DbgPrint("%s tried to remove your weapons\n", name);
// call the original event
*(DWORD*)0x835DB068 = 0x60000000;
((void(*)(int, int, int, int, int, int))0x830D8600)(arg1, arg2, arg3, arg4, arg5, arg6);
*(DWORD*)0x835DB068 = 0x4E800421;
}
How can I pass it to ps3 is from xbox??
{
uint addr = *(unsigned int*)(arg2 + 0x78);
char* name = (char*)(addr + 0x5C);
char buf[100];
sprintf_s(buf, "~g~%s ~w~tried to remove your weapons", name);
ShowMessageOnScreen(buf);
DbgPrint("%s tried to remove your weapons\n", name);
// call the original event
*(DWORD*)0x835DB068 = 0x60000000;
((void(*)(int, int, int, int, int, int))0x830D8600)(arg1, arg2, arg3, arg4, arg5, arg6);
*(DWORD*)0x835DB068 = 0x4E800421;
}
How can I pass it to ps3 is from xbox??