Page 1 of 3 123 LastLast
Results 1 to 15 of 41
  1. #1
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired

    Post [HELP] Sleep PTC Method?

    Is there a way I can Sleep Gordon's PTC Method?
    Code:
    typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
    RunConsoleCommand_t pRunConsoleCommand = (RunConsoleCommand_t)
    Whit's v1 base is giving me a whole lot of lag and I think it's the PTC Method causing it....
    Last edited by MEkhi2; 12-05-2010 at 04:24 AM.

  2. #2
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    Sleep(int Amount);

  3. The Following User Says Thank You to freedompeace For This Useful Post:

    MEkhi2 (12-05-2010)

  4. #3
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,406
    Reputation
    157
    Thanks
    3,991
    My Mood
    Flirty
    Sleep(100); after pushing the commands

  5. The Following User Says Thank You to ac1d_buRn For This Useful Post:

    MEkhi2 (12-05-2010)

  6. #4
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired
    So put it like this?
    Code:
    if ( showfps > 0 )
    pRunConsoleCommand ("ShowFps 1");
    Sleep(100);
    }else{
    pRunConsoleCommand ("ShowFps 0");
    Sleep(100);

  7. #5
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    Code:
    if ( showfps > 0 ){
    pRunConsoleCommand ("ShowFps 1");
    }else{
    pRunConsoleCommand ("ShowFps 0");
    }
    if ( nx > 0 ){
    pRunConsoleCommand ("SkelModelStencil 1");
    }else{
    pRunConsoleCommand ("SkelModelStencil 0");
    }
    Sleep(10);
    }
    Last edited by LionelMessi10; 12-05-2010 at 06:24 AM.

  8. The Following User Says Thank You to LionelMessi10 For This Useful Post:

    MEkhi2 (12-05-2010)

  9. #6
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired

    Post

    Quote Originally Posted by Alessandro10 View Post
    Code:
    if ( showfps > 0 ){
    pRunConsoleCommand ("ShowFps 1");
    }else{
    pRunConsoleCommand ("ShowFps 0");
    }
    if ( nx > 0 ){
    pRunConsoleCommand ("SkelModelStencil 1");
    }else{
    pRunConsoleCommand ("SkelModelStencil 0");
    }
    Sleep(10);
    }
    This worked. Thank you and everyone who helped!

    Solved ^_^

    EDIT: I'm still getting an abnormal amount of lag :S
    It's not my computer... when my hacks aren't injected, the game runs fine
    Last edited by MEkhi2; 12-05-2010 at 06:56 AM.

  10. #7
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    Quote Originally Posted by MEkhi2 View Post
    This worked. Thank you and everyone who helped!

    Solved ^_^
    There are several methods to remove the lag.

  11. #8
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired
    Quote Originally Posted by Alessandro10 View Post
    There are several methods to remove the lag.
    Hmm read your I sent you a PM ^_^

  12. #9
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    Another method more effective

    In Global

    Code:
    int showfps = 0;
    int showfps1 = 0;
    Code:
    if( showfps > 0 ){if( showfps1 != showfps ){
    pRunConsoleCommand ("ShowFps 1");
    showfps1 = showfps;
    }
    }else{
    if( showfps1 != showfps ){
    pRunConsoleCommand ("ShowFps 0");
    showfps1 = showfps;
    }}
    Last edited by LionelMessi10; 12-05-2010 at 07:01 AM.

  13. #10
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired
    Quote Originally Posted by Alessandro10 View Post
    Another method more effective

    Code:
    int showfps = 0;
    int showfps1 = 0;
    
    if( showfps > 0 ){if( showfps1 != showfps ){
    pRunConsoleCommand ("ShowFps 1");
    showfps1 = showfps;;
    }}else{if( showfps1 != showfps ){
    pRunConsoleCommand ("ShowFps 0");
    showfps1 = showfps;
    }}
    Holy Shitwhit that's long for one PTC Command
    I understand it all but I lol'd

    I'll test it and tell you my results

  14. #11
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    Quote Originally Posted by MEkhi2 View Post
    Holy Shitwhit that's long for one PTC Command
    I understand it all but I lol'd

    I'll test it and tell you my results
    Yes, it is more laborious (hard-working), but with better results.

    Remember: if you use this method, remove the Sleep.
    Last edited by LionelMessi10; 12-05-2010 at 07:05 AM.

  15. The Following User Says Thank You to LionelMessi10 For This Useful Post:

    MEkhi2 (12-05-2010)

  16. #12
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired

    Post

    Quote Originally Posted by Alessandro10 View Post
    Yes, it is more laborious (hard-working), but with better results.

    Remember: if you use this method, remove the Sleep.
    Yea I took out sleep and it worked a charm!

    Thank you so much!

    Now its time to change all of my PTC Commands 1 by one

  17. #13
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    Quote Originally Posted by MEkhi2 View Post
    Yea I took out sleep and it worked a charm!

    Thank you so much!

    Now its time to change all of my PTC Commands 1 by one
    When I went to put this method, I had to do for more than 30 functions, gave laziness.
    More worth it!

  18. #14
    MEkhi2's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    Earth.
    Posts
    101
    Reputation
    10
    Thanks
    15
    My Mood
    Tired
    Gah, hacks turn on but don't turn off...

  19. #15
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    Before else, you put a showfps 1
    After Else showfps 0

Page 1 of 3 123 LastLast