Forum: Grand Theft Auto Series Modding - Our GTA Modding Team is the best around. Tutorials & Topics related to modding your GTA games, trophies, and save files! Discuss GTA game modding with the knowledgeable members of PSX-Scene and the Official GTA IV Mod Team.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Like Tree9Likes

Thread: [REQ] Gamertag Checks
  

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 35
  1. #1 Question [REQ] Gamertag Checks 
    Colt's Avatar
    Colt is offline Developer
    Join Date
    Jun 2012
    Posts
    735
    Downloads
    0
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    726
    Likes Received
    215
    I've basically finished my menu now (Finally!) but because I don't want Everyone using it/giving it out, I was wondering how I can put gamertag checks in it, does anybody know?

    Also, if you want it then please let me know.
    Mod Videos: http://www.youtube.com/DontGetAngryBro
    Reply With Quote  

  2. #2  
    RandQalan's Avatar
    RandQalan is offline Wanabe Beta Tester
    Join Date
    May 2010
    Location
    USA
    Posts
    3,633
    Downloads
    17
    Uploads
    37
    Mentioned
    18 Post(s)
    Tagged
    4 Thread(s)
    Likes Given
    727
    Likes Received
    406
    You could post dev only area

    V10 SCPH-50001 with Network adapter SCPH-10281 500 G HD
    PSP 3000 9G 6.20 PRO CFW Perm
    Unofficial FMCB v1.8C OPL self compiled HD and SMB preferred
    Is how all good gaming systems came to be
    Reply With Quote  

  3. #3  
    Colt's Avatar
    Colt is offline Developer
    Join Date
    Jun 2012
    Posts
    735
    Downloads
    0
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    726
    Likes Received
    215
    I didn't know there was one
    Mod Videos: http://www.youtube.com/DontGetAngryBro
    Reply With Quote  

  4. #4  
    zorg93's Avatar
    zorg93 is offline Developer
    Join Date
    Jun 2012
    Posts
    254
    Downloads
    0
    Uploads
    0
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    50
    Likes Received
    142
    this is a very basic gt and length check, can add a few more things or use extra COMPARE_STRINGS and GET_LENGTH_OF_LITERAL_STRING to throw people off the scent if they try and crack it


    Code:
    void main(void){
    THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
    char *name = GET_PLAYER_NAME(GET_PLAYER_ID())
    if (!COMPARE_STRING(name, "Your GT Here"))return;
    length = GET_LENGTH_OF_LITERAL_STRING(name);
    if (length != 12)return; //just stick your GT length in here
    while(1){
    //stick all the usual stuff in here
    }
    }
    Colt likes this.
    Reply With Quote  

  5. #5  
    Colt's Avatar
    Colt is offline Developer
    Join Date
    Jun 2012
    Posts
    735
    Downloads
    0
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    726
    Likes Received
    215
    I see thanks a lot

    How about multiple GT's? How would that be?
    Mod Videos: http://www.youtube.com/DontGetAngryBro
    Reply With Quote  

  6. #6  
    zorg93's Avatar
    zorg93 is offline Developer
    Join Date
    Jun 2012
    Posts
    254
    Downloads
    0
    Uploads
    0
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    50
    Likes Received
    142
    Quote Originally Posted by Colt View Post
    I see thanks a lot

    How about multiple GT's? How would that be?
    Code:
    if (!(COMPARE_STRING(name, "Your GT Here") || COMPARE_STRING(name, "2nd GT Here")) )return;
    if (!(length == 12 || length == 11))return;
    making it work for multiple gt's makes the length check less effective

    EDIT check your pm's for something else for security, didnt want to post it in a public forum and as im not dev i wouldnt be able to post it there
    Reply With Quote  

  7. #7  
    Colt's Avatar
    Colt is offline Developer
    Join Date
    Jun 2012
    Posts
    735
    Downloads
    0
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    726
    Likes Received
    215
    Could I not do seperate checks then? Like this:

    Code:
    char *name = GET_PLAYER_NAME(GET_PLAYER_ID())
    if (!COMPARE_STRING(name, "1st GT"))return;
    length = GET_LENGTH_OF_LITERAL_STRING(name);
    if (length != 11)return; //just stick your GT length in here
    char *name = GET_PLAYER_NAME(GET_PLAYER_ID())
    if (!COMPARE_STRING(name, "2nd GT"))return;
    length = GET_LENGTH_OF_LITERAL_STRING(name);
    if (length != 15)return;
    char *name = GET_PLAYER_NAME(GET_PLAYER_ID())
    if (!COMPARE_STRING(name, "3rd GT"))return;
    length = GET_LENGTH_OF_LITERAL_STRING(name);
    if (length != 13)return;
    while(1){
    Would that work?
    Mod Videos: http://www.youtube.com/DontGetAngryBro
    Reply With Quote  

  8. #8  
    zorg93's Avatar
    zorg93 is offline Developer
    Join Date
    Jun 2012
    Posts
    254
    Downloads
    0
    Uploads
    0
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    50
    Likes Received
    142
    no, because once return is called, the routine stops being executed and returns to what called it, there are other ways around it though, like setting a bool if the gamertag matches
    Reply With Quote  

  9. #9  
    Colt's Avatar
    Colt is offline Developer
    Join Date
    Jun 2012
    Posts
    735
    Downloads
    0
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    726
    Likes Received
    215
    Ah I get it.

    Thanks
    Mod Videos: http://www.youtube.com/DontGetAngryBro
    Reply With Quote  

  10. #10  
    zorg93's Avatar
    zorg93 is offline Developer
    Join Date
    Jun 2012
    Posts
    254
    Downloads
    0
    Uploads
    0
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    50
    Likes Received
    142
    Code:
    bool GTcheck(Char *GT, int safelength, char *safeGT){
    if (GET_LENGTH_OF_LITERAL_STRING(GT) != safelength)return false;
    return COMPARE_STRING(GT, safeGT));
    }
    bool GTchecklist(char *GT){
    if (GTcheck(GT, 12, "Your GT Here")) return true;
    if (GTcheck(GT, 11, "2nd GT Here")) return rue;
    if (GTcheck(GT, 10, "3rd GT etc")) return true;
    return false;
    }
    void main(void){
    THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
    if (!GTchecklist(GET_PLAYER_NAME(GET_PLAYER_ID()))) return;
    while(1){//code here
    WAIT(0);
    }
    }
    maybe a few syntax errors, but that should be fine for as many GT's as you want
    Colt likes this.
    Reply With Quote  

Page 1 of 4 1 2 3 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •