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
 1397

your coding fix protections

by carlos_20 - 01-02-2020 - 12:30 AM
#1
unsigned int blockcleartask(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 *senderName = (char*)(*(int*)(senderData + 0x78) + 0x10);
if (addressOfArgs== 0x012CC958)
{
snprintf(scriptEventText, sizeof(scriptEventText), "%s Tried to Clear Task v1!", senderName);
PRINT(scriptEventText, 5000);
*(int*)addressOfArgs = 0;
}
}

void setupantifreezesemjases()
{
*(int*)(0x1C6BD80) = *(int*)((int)&blocksemjasesfreeze);
*(int*)((0x1C6BD80 + 0x4)) = *(int*)((int)&blocksemjasesfreeze + 0x4);
*(int*)(0x012CC958) = *(int*)((int)&blockcleartask);//NETWORK_CLEAR_PED_TASKS_EVENT
*(int*)((0x012CC958 + 0x4)) = *(int*)((int)&blockcleartask + 0x4);//NETWORK_CLEAR_PED_TASKS_EVENT
*(int*)(0x012CB55C) = *(int*)((int)&blockanimations);//NETWORK_START_SYNCED_SCENE_EVENT
*(int*)((0x012CB55C + 0x4)) = *(int*)((int)&blockanimations + 0x4);//NETWORK_START_SYNCED_SCENE_EVENT
}
Reply
#2
Gracias man muchas gracias
Reply
#3
que no te avisa eh si lo haces funcionar avisame
Reply

Users browsing: 5 Guest(s)