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
 3196

Protection Monitoring

by D4rkSlide - 02-21-2018 - 05:07 AM
#1
hi guys today i'm giving out protection monitoring
/*Chars*/
char Teleport_Protection_t[4 * 4];
char Stats_Protection_t[4 * 4];
/*Bools*/
bool teleportprotection = false;
bool statsProtect = false;
/*Structures*/
unsigned int TeleportAnim_S(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
char *NameOfSender = (char*)(*(int*)(senderData + 0x78) + 0x10 + 0x4C);
if (teleportprotection) {
ShowProtection(NameOfSender, "tried to teleport/anim you!");
MessageResponce(NameOfSender);
}
return ((DWORD(*)(DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD))NETWORK_START_SYNCED_SCENE_EVENT)(r3, senderData, recieverData, r6, r7, r8, r9);
}
unsigned int Stats_S(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
char *NameOfSender = (char*)(*(int*)(senderData + 0x78) + 0x10 + 0x4C);
if (statsProtect) {
ShowProtection(NameOfSender, "tried to modify your stats!");
MessageResponce(NameOfSender);
}
return ((DWORD(*)(DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD))NETWORK_INCREMENT_STAT_EVENT)(r3, senderData, recieverData, r6, r7, r8, r9);
}
/*Call Protections*/
unsigned int TeleportAnim(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
static unsigned int ret = 0;
memcpy((void*)NETWORK_START_SYNCED_SCENE_EVENT, (void*)Teleport_Protection_t, 4 * 4);
if (repetitveCall[1] > 0)
{
repetitveCall[1]--;
return ret;
}
repetitveCall[1]++;
ret = TeleportAnim_S(r3, senderData, recieverData, r6, r7, r8, r9);
Utilities::PatchInJump((PDWORD)NETWORK_START_SYNCED_SCENE_EVENT, (DWORD)TeleportAnim, FALSE);
repetitveCall[1] = 0;
return ret;
}
unsigned int Stats_Protection(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
static unsigned int ret = 0;
memcpy((void*)NETWORK_INCREMENT_STAT_EVENT, (void*)Stats_Protection_t, 4 * 4);
if (repetitveCall[2] > 0)
{
repetitveCall[2]--;
return ret;
}
repetitveCall[2]++;
ret = Stats_S(r3, senderData, recieverData, r6, r7, r8, r9);
Utilities::PatchInJump((PDWORD)NETWORK_INCREMENT_STAT_EVENT, (DWORD)Stats_Protection, FALSE);
repetitveCall[2] = 0;
return ret;
}
/*Structure Hook*/
void Hook_To_Game(int mode)
{
switch (mode)
{
case 0:
memcpy((void*)Teleport_Protection_t, (void*)NETWORK_START_SYNCED_SCENE_EVENT, 4 * 4);
Utilities::PatchInJump((PDWORD)NETWORK_START_SYNCED_SCENE_EVENT, (DWORD)TeleportAnim, FALSE);
break;
case 1:
memcpy((void*)Stats_Protection_t, (void*)NETWORK_INCREMENT_STAT_EVENT, 4 * 4);
Utilities::PatchInJump((PDWORD)NETWORK_INCREMENT_STAT_EVENT, (DWORD)Stats_Protection, FALSE);
break;
}
}
/*Call On Hook*/
void Hook_Protections()
{
Hook_To_Game(0);//teleport/anim
Hook_To_Game(1);//change stats
}

credits to: Wesley Marcos
This account is currently banned
Ban reason: Excessive Flaming
EDIT: multi-accounting/ban evading
Reply
#2
This Was Basicly Already Released
Reply
#3
(02-21-2018 - 05:48 AM)DewRific Wrote: This Was Basicly Already Released
yes i now
This account is currently banned
Ban reason: Excessive Flaming
EDIT: multi-accounting/ban evading
Reply
#4
This was already up but thx. Btw you should use <code></code>
Reply
#5
This is actually a decent release, is this for PS3 or 360?
Reply
#6
(02-21-2018 - 06:21 PM)Gerald Wrote: This is actually a decent release, is this for PS3 or 360?
this is for xbox360
This account is currently banned
Ban reason: Excessive Flaming
EDIT: multi-accounting/ban evading
Reply
#7
thanks alot for this mate :)
Reply
#8
great protections thnx
2021 Best Be Better Then 2020
Reply
#9
(02-22-2018 - 09:28 AM)trinity7 Wrote: great protections thnx
no problem
This account is currently banned
Ban reason: Excessive Flaming
EDIT: multi-accounting/ban evading
Reply
#10
these where already posted but thank you for the re post
Judge Judy Is Sexy Asf Can We All Agree?  Love
& Lets Stop The Cracking War M8s Devil )
(Make Modding Fun Again 100emoji   )
Reply

Users browsing: 15 Guest(s)