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
 4806

[XBOX 360] How to do scriptevent protection properly

by Venom_Modz - 11-12-2018 - 12:15 AM
#31
(12-27-2018 - 07:26 PM)XBLxPhantom Wrote:
Too Many Quotes (Click to View)

Aiight, I'mma be nice, Here is an Example on what you're doing wrong......... if (iArgs[0] == 0x3 && iArgs[2] == 0x14) {
ShowMessage_Name("~r~Attempted To Force You To GTA:O Tutorial! ~o~#Celestial FTW!!", sName);
ProtectionResponse(sName);
*(int*)0x835DB068 = 0x60000000;
}

pay close attention, iArgs[2] == 0x14 okay? now look at force to tutorial script event...void ForceTutorial(int player)
{
int args[3];
args[0] = 0x3;
args[1] = player;
args[2] = 0x14;     <-----///////
TriggerScriptEvent(args, 3, player);
}

in your protections instead of you iArgs being [2] == 0x14  you probably have Args [1] == 0x14....
*Edit* fucking tard. next time don't C&P protections if u can't even make them work.

Congrats on the gift.
Reply
#32
Just print out the arguments and all the registers to find it
Reply
#33
(12-27-2018 - 07:59 PM)Kakashi Wrote:
Too Many Quotes (Click to View)

Congrats on the gift.
yeah, thanks but what do i do w it ? lol.
Reply
#34
(12-29-2018 - 11:59 PM)XBLUnbound Wrote: This is literally my code...

This is not 'properly' either... You should hook the function that actually handles every single event in the game. Not replace the handler in the table.

cool for you but most of the event protections wouldn't work bcuz of the small thing i pointed out^ so I guess nice job?... granted there are things i could do better to improve it aswell. but just saying. atleast i showed em how to make your broken protections work.
Reply
#35
lmao I love demon forums
Reply

Users browsing: 2 Guest(s)