Results 1 to 9 of 9
  1. #1
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused

    CA - Game Counter

    Crash released his game status code and i thought of an idea to make a game counter out of it.

    But i am in trouble. This code will add 1 as long as I am in game. So it will add 1 continually until I leave game. How can you make the code only add 1 once?

    Code:
    int game = 0
    if( *(int*)0x377F551C == 1){
    game++
    }

  2. #2
    IcySeal's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    300
    Reputation
    34
    Thanks
    148
    My Mood
    Amused
    This really shouldn't be that hard. Tho I shall try to explain. What if you also checked when he was outside the game aswell?

  3. #3
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused
    Quote Originally Posted by IcySeal View Post
    This really shouldn't be that hard. Tho I shall try to explain. What if you also checked when he was outside the game aswell?
    What do you mean by "outside the game"?

  4. #4
    IcySeal's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    300
    Reputation
    34
    Thanks
    148
    My Mood
    Amused
    If you used a bool, that would be started as true. then inside your current if statement, you would check if the bool is true.in the resulting code, where you add 1 to game, set the value to false. then have an else and inside the else set the bool to true.

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

    ppl2pass (09-06-2010)

  6. #5
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,889
    Reputation
    163
    Thanks
    3,289
    My Mood
    Sleepy
    There are probably better ways of doing this.
    IsConnectedServer()

    Code:
    bool isOut = true;
    int times = 0;
    if(*(int*)0x377F551C == 5 && isOut == false){
    
        isOut = true;
        times++;
    
    }
    if(*(int*)0x377F551C == 1 && isOut == true){
    
        isOut = false;
    
    }

  7. The Following 2 Users Say Thank You to Crash For This Useful Post:

    J (09-06-2010),ppl2pass (09-06-2010)

  8. #6
    Hahaz's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    Matrix World
    Posts
    1,170
    Reputation
    64
    Thanks
    4,083
    My Mood
    Bored
    Lobby is 5, loading 3, in game 1.

  9. The Following 2 Users Say Thank You to Hahaz For This Useful Post:

    J (09-06-2010),whatup777 (09-06-2010)

  10. #7
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    I wrote a function for you:

    Code:
    typedef bool (*IsConnected_t)(void);
    
    bool isIngame()
    {
    	//This is for CA EU, replace with your LTClient address
    	DWORD* dwLTBase = (DWORD*)0x377C4450;
    	IsConnected_t pConnected = *(IsConnected_t*)(*dwLTBase + 0x8C);
    
    	return pConnected();
    }


  11. The Following User Says Thank You to Gordon` For This Useful Post:

    markoj (09-06-2010)

  12. #8
    Synns's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    5,176
    Reputation
    170
    Thanks
    2,554
    My Mood
    Bitchy
    Sharing is caring.

  13. #9
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,889
    Reputation
    163
    Thanks
    3,289
    My Mood
    Sleepy
    Quote Originally Posted by Tyrannus View Post
    Sharing is caring.
    Cool beans.

Similar Threads

  1. [Selling] Steam Account With All Counter Strikes And A Few Other Games
    By WootXD in forum Selling Accounts/Keys/Items
    Replies: 10
    Last Post: 04-17-2015, 12:12 PM
  2. Counter-Strike Online (IAH Games)
    By kaitoukiddo in forum Steam Games Hacks & Cheats
    Replies: 1
    Last Post: 11-02-2011, 05:57 PM
  3. counter Strike game data and performance
    By ajay009ajay in forum General Hacking
    Replies: 0
    Last Post: 02-27-2010, 06:47 AM
  4. frag/game music video's
    By kyo in forum General
    Replies: 12
    Last Post: 06-20-2006, 09:55 AM
  5. What type of games
    By djraziel127 in forum General Game Hacking
    Replies: 11
    Last Post: 12-30-2005, 04:22 PM