toofaces2

GTcheck by toofaces2

Feb 22nd, 2015
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. bool GamertagCheck{
  2. int length;
  3. length = GET_LENGTH_OF_LITERAL_STRING(GET_PLAYER_NAME(GET_PLAYER_ID());
  4. if(!(COMPARE_STRING(GET_PLAYER_NAME(GET_PLAYER_ID()), GET_PLAYER_NAME(GET_STRING_FROM_HASH_KEY(uint hash))) && length == x(your constant Gamertag number)){
  5. print("This user is not registered");
  6. }
  7. }
  8.  
  9. bool GTcheck(char *GT, uint hash, int safeLength){
  10. int length;
  11. length = GET_LENGTH_FROM_LITERAL_STRING(GT);
  12. stringHashKey = GET_STRING_FROM_HASH_KEY(hash);
  13. safeLength = GET_LENGTH_FROM_LITERAL_STRING(stringHashKey);
  14. if((COMPARE_STRING(GT, stringHashKey)) && (length == safeLength)) return true;
  15. return false;
  16. }
  17.  
  18. bool GTchecklist(char *GT){
  19. if (GTcheck(GT, "(Your Gamertag here)", 584620554e4b4e4f574e)) return true;
  20. return false;
Advertisement
Add Comment
Please, Sign In to add comment