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
 3141

SilkRoad - Crash method Copy -

by XBLxPhantom - 01-23-2019 - 04:03 PM
#1
Code:
if (SilkRoad_SoftCrash)
    {
        CAM::_ANIMATE_GAMEPLAY_CAM_ZOOM(0.0f, 200.0f);
        bool Cam = true;
        if (Cam)
        {
            char* Name = PLAYER::GET_PLAYER_NAME(selectedPlayer);
            Vector3 Coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), true);
            ShowMessageOnScreen("~r~ALERT~s~: Attacking %s Stand Back! Timer: &i", Name, crash);
            crash++;
            AddCoordExplosion(Coords.x, Coords.y, Coords.z, PROPANE, true, true);
            AddCoordExplosion(Coords.x, Coords.y, Coords.z, BLIMP, true, true);
            AddCoordExplosion(Coords.x, Coords.y, Coords.z, PROPANE, true, true);
            AddCoordExplosion(Coords.x, Coords.y, Coords.z, BLIMP, true, true);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            if (crash >= 200)
            {
                crash = 0;
                SilkRoad_SoftCrash = false;
                Cam = false;
            }
        }
    }
int crash = 0;
Simple Crash i made 2 mins ago after talking about the "soft crash"  on SRB crack. thought i'd make a crash like it. Keep in mind i'm copying the first version of this crash, when it only consisted of removal of cash and explosions.... currently i'm sure it includes more than this. 
Reply
#2
You should optimize your code by looping rather than c&p
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Multi
Reply
#3
(01-23-2019 - 07:10 PM)pdb Wrote: You should optimize your code by looping rather than c&p

what do you mean?
Reply
#4
Code:
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
Turn this into something like

Code:
for (int i = 0; i < 14; i++)
      TakeMoney(9999999, selectedPlayer);
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Multi
Reply
#5
(01-24-2019 - 05:05 AM)pdb Wrote:
Code:
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
TakeMoney(9999999, selectedPlayer);
Turn this into something like

Code:
for (int i = 0; i < 14; i++)
      TakeMoney(9999999, selectedPlayer);

ohhhh i see. thanks for the tip!
Reply
#6
nice leak brother :)
Dev/Coder/Hacker
Reply
#7
(01-23-2019 - 04:03 PM)XBLxPhantom Wrote:
Code:
if (SilkRoad_SoftCrash)
    {
        CAM::_ANIMATE_GAMEPLAY_CAM_ZOOM(0.0f, 200.0f);
        bool Cam = true;
        if (Cam)
        {
            char* Name = PLAYER::GET_PLAYER_NAME(selectedPlayer);
            Vector3 Coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), true);
            ShowMessageOnScreen("~r~ALERT~s~: Attacking %s Stand Back! Timer: &i", Name, crash);
            crash++;
            AddCoordExplosion(Coords.x, Coords.y, Coords.z, PROPANE, true, true);
            AddCoordExplosion(Coords.x, Coords.y, Coords.z, BLIMP, true, true);
            AddCoordExplosion(Coords.x, Coords.y, Coords.z, PROPANE, true, true);
            AddCoordExplosion(Coords.x, Coords.y, Coords.z, BLIMP, true, true);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            if (crash >= 200)
            {
                crash = 0;
                SilkRoad_SoftCrash = false;
                Cam = false;
            }
        }
    }
int crash = 0;
Simple Crash i made 2 mins ago after talking about the "soft crash"  on SRB crack. thought i'd make a crash like it. Keep in mind i'm copying the first version of this crash, when it only consisted of removal of cash and explosions.... currently i'm sure it includes more than this. 
Code:
put 'crash++' above 'CAM::_ANIMATE_GAMEPLAY_CAM_ZOOM(0.0f, 200.0f);'
remove 'bool Cam = true;' from inside the function
wrong: ShowMessageOnScreen("~r~ALERT~s~: Attacking %s Stand Back! Timer: &i", Name, crash);
correct: ShowMessageOnScreen("~r~ALERT~s~: Attacking %s Stand Back! Timer: %i", Name, crash);
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply
#8
(02-05-2019 - 12:29 AM)NoNameV2345 Wrote:
(01-23-2019 - 04:03 PM)XBLxPhantom Wrote:
Code:
if (SilkRoad_SoftCrash)
    {
        CAM::_ANIMATE_GAMEPLAY_CAM_ZOOM(0.0f, 200.0f);
        bool Cam = true;
        if (Cam)
        {
            char* Name = PLAYER::GET_PLAYER_NAME(selectedPlayer);
            Vector3 Coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), true);
            ShowMessageOnScreen("~r~ALERT~s~: Attacking %s Stand Back! Timer: &i", Name, crash);
            crash++;
            AddCoordExplosion(Coords.x, Coords.y, Coords.z, PROPANE, true, true);
            AddCoordExplosion(Coords.x, Coords.y, Coords.z, BLIMP, true, true);
            AddCoordExplosion(Coords.x, Coords.y, Coords.z, PROPANE, true, true);
            AddCoordExplosion(Coords.x, Coords.y, Coords.z, BLIMP, true, true);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            TakeMoney(9999999, selectedPlayer);
            if (crash >= 200)
            {
                crash = 0;
                SilkRoad_SoftCrash = false;
                Cam = false;
            }
        }
    }
int crash = 0;
Simple Crash i made 2 mins ago after talking about the "soft crash"  on SRB crack. thought i'd make a crash like it. Keep in mind i'm copying the first version of this crash, when it only consisted of removal of cash and explosions.... currently i'm sure it includes more than this. 
Code:
put 'crash++' above 'CAM::_ANIMATE_GAMEPLAY_CAM_ZOOM(0.0f, 200.0f);'
remove 'bool Cam = true;' from inside the function
wrong: ShowMessageOnScreen("~r~ALERT~s~: Attacking %s Stand Back! Timer: &i", Name, crash);
correct: ShowMessageOnScreen("~r~ALERT~s~: Attacking %s Stand Back! Timer: %i", Name, crash);
lol. the only IMPORTANT mistake there is the &i  instead of %i   the others don't have an affect on how the crash works.
Reply
#9
thanks for the release, do you think their is a protection against this as well?
Reply
#10
(02-06-2019 - 03:29 AM)Milk_My_Bean Wrote: thanks for the release, do you think their is a protection against this as well?

Yes, I have it.  it's Easy to protect from.
Reply

Users browsing: 2 Guest(s)