Advertisement
Guest User

System Key , Login LTS

a guest
Jul 4th, 2016
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 18.05 KB | None | 0 0
  1. #pragma region Server
  2. bool isServerRequestDone = false;
  3. bool isServerRequestReady = false;
  4. bool TutSkipped = false;
  5. bool PSNSpoof = false;
  6. int LoginSelectedIndex = 0;
  7. int LoginDelay = 0;
  8. char EnteredUsername[50];
  9. char EnteredPassword[50];
  10. char EnteredPasswordStars[50];
  11. char EnteredCode[20];
  12. bool GrabUsername = false;
  13. bool GrabPassword = false;
  14. bool GrabCode = false;
  15.  
  16. char* DisIndex;
  17. char* DisPlayer;
  18. char* DisPlayerID;
  19.  
  20. int LOCATION[69] = { 208, 153, 154, 158, 158, 205, 199, 158, 154, 205, 153, 155, 201, 198, 202, 202, 201, 154, 157, 201, 154, 154, 200, 199, 153, 199, 198, 202, 200, 154, 158, 204, 208, 198, 203, 206, 153, 157, 203, 206, 201, 198, 200, 204, 199, 203, 154, 199, 203, 204, 207, 199, 158, 204, 205, 203, 155, 202, 206, 154, 202, 203, 204, 204, 200, 209, 143, 151, 143, };// /feaa28ae2fd69556eb6ee78f8957ea3/941fb41697384e84308a324d51e54337.php
  21. int REQUEST_URI[26] = { 140, 154, 141, 137, 154, 141, 209, 147, 158, 140, 139, 139, 154, 158, 146, 140, 139, 158, 145, 155, 150, 145, 152, 209, 138, 148, };// server.lastteamstanding.uk
  22. int GOODRESULT[9] = { 172, 138, 156, 156, 154, 140, 140, 197, 223 };//Success:
  23. int USERHASNOTBOUGHT[18] = { 138, 140, 154, 141, 151, 158, 140, 145, 144, 139, 157, 144, 138, 152, 151, 139, 150, 139 };//userhasnotbought
  24. int ERRORMESSAGE[7] = { 186, 141, 141, 144, 141, 197, 223 };//Error:
  25. int INCORRECTDETAILS[17] = { 182, 145, 156, 144, 141, 141, 154, 156, 139, 223, 155, 154, 139, 158, 150, 147, 140 };//Incorrect details
  26. int REDEEMCODEPARAMS[7] = { 217, 156, 144, 155, 154, 144, 194 };//&codeo=
  27. int NEWVERSIONPARAMS[5] = { 192, 137, 158, 147, 194 };//?val=
  28. int LLOGINPARAMS_1[7] = { 192, 138, 140, 154, 141, 145, 194 };//?usern=
  29. int LLOGINPARAMS_2[7] = { 217, 143, 158, 140, 140, 136, 194 };//&passw=
  30. int LLOGINPARAMS_3[7] = { 217, 152, 138, 150, 155, 147, 194 };//&guidl=
  31. int LLOGINPARAMS_4[10] = { 217, 143, 140, 145, 145, 158, 146, 154, 144, 194 };//&psnnameo=
  32. int LLOGINPARAMS_5[13] = { 217, 146, 158, 156, 190, 155, 155, 141, 154, 140, 140, 144, 194 };//&macAddresso=
  33. int INITIALDETAILSPARAMS_1[7] = { 192, 138, 140, 154, 141, 145, 194 };//?usern=
  34. int INITIALDETAILSPARAMS_2[6] = { 217, 155, 144, 194, 152, 155 };//&do=gd
  35. int INITIALDETAILSPARAMS_3[7] = { 217, 143, 158, 140, 140, 136, 194 };//&passw=
  36.  
  37. int ELGOOD[6] = { 154, 147, 152, 144, 144, 155 };//elgood
  38. int UPDATEREADY[12] = { 170, 143, 155, 158, 139, 154, 223, 173, 154, 158, 155, 134 };//Update Ready
  39. int NEWUPDATEREADY[99] = { 186, 141, 141, 144, 141, 197, 223, 177, 154, 136, 223, 138, 143, 155, 158, 139, 154, 223, 158, 137, 158, 150, 147, 158, 157, 147, 154, 209, 223, 175, 147, 154, 158, 140, 154, 223, 152, 144, 223, 139, 144, 223, 134, 144, 138, 141, 223, 156, 144, 145, 139, 141, 144, 147, 223, 143, 158, 145, 154, 147, 223, 158, 139, 223, 147, 158, 140, 139, 139, 154, 158, 146, 140, 139, 158, 145, 155, 150, 145, 152, 209, 138, 148, 223, 139, 144, 223, 155, 144, 136, 145, 147, 144, 158, 155, 223, 150, 139, 209 };//"Error: New update available. Please go to your control panel at lastteamstanding.uk to download it."
  40. int SERVERDOWN[48] = { 186, 141, 141, 144, 141, 197, 223, 172, 154, 141, 137, 154, 141, 223, 150, 140, 223, 155, 144, 136, 145, 223, 144,141, 223, 138, 145, 155, 154, 141, 152, 144, 150, 145, 152, 223, 146,158, 150, 145, 139, 154, 145, 158, 145, 156, 154, 209 };//"Error: Server is down or undergoing maintenance."
  41.  
  42. void SaveDetails()
  43. {
  44.     int fd;
  45.     uint64_t unk;
  46.  
  47.     char* locationToWrite = "/dev_hdd0/tmp/LTS_Details.seq";
  48.     if (cellFsOpen(locationToWrite, CELL_FS_O_CREAT | CELL_FS_O_WRONLY, &fd, NULL, 0) != CELL_FS_SUCCEEDED)
  49.         return;
  50.  
  51.     char buffer[200];
  52.     sprintf(buffer, "%s\n%s\n", EnteredUsername, EnteredPassword);
  53.     Write(fd, buffer, unk);
  54.     cellFsClose(fd);
  55. }
  56. void DisableLoops(char* Errormessage = "", int len = 20, int time = 4000)
  57. {
  58.     char* Result = strstr(Errormessage, XOR(ERRORMESSAGE, 7));
  59.     if (Result != NULL)
  60.         Notify(Result, time);
  61.     else
  62.     {
  63.         Notify(Errormessage, time);
  64.     }
  65.  
  66.     PS3::WriteBytes((int)GET_INDEX_OF_CURRENT_LEVEL, DisIndex, 4);//disable loops
  67.     PS3::WriteBytes((int)_PLAYER_ID, DisPlayerID, 4);
  68.     PS3::WriteBytes((int)IS_PLAYER_ONLINE, DisPlayer, 4);
  69. }
  70. bool IsNewVersion()
  71. {
  72.     char* c_LOCATION = XOR(LOCATION, 69);
  73.     char b_LOCATION[69];
  74.     strcpy(b_LOCATION, c_LOCATION);
  75.  
  76.     char* c_REQUEST_URI = XOR(REQUEST_URI, 26);
  77.     char b_REQUEST_URI[26];
  78.     strcpy(b_REQUEST_URI, c_REQUEST_URI);
  79.  
  80.     char* c_NEWVERSIONPARAMS = XOR(NEWVERSIONPARAMS, 5);
  81.     char b_NEWVERSIONPARAMS[5];
  82.     strcpy(b_NEWVERSIONPARAMS, c_NEWVERSIONPARAMS);
  83.  
  84.     char ParamBufferA[1024];
  85.     sprintf(ParamBufferA, "%s%s%i", b_LOCATION, b_NEWVERSIONPARAMS, CurrentVersionNumber);
  86.     char* Res123 = SocketRequest(b_REQUEST_URI, ParamBufferA);
  87.     char* NewPlace = Res123;
  88.     char* Resultasdasd = strstr(NewPlace, XOR(ELGOOD, 6));
  89.     if (Resultasdasd != NULL)
  90.     {
  91.         return false;
  92.     }
  93.     else
  94.     {
  95.         char* ResultTw = strstr(Res123, XOR(UPDATEREADY, 12));
  96.         if (ResultTw != NULL)
  97.         {
  98.             char* tmp = XOR(NEWUPDATEREADY, 99);
  99.             char tmp2[99];
  100.             strcpy(tmp2, tmp);
  101.             DisableLoops(tmp2, 99);
  102.         }
  103.         else
  104.         {
  105.             char* tmp = XOR(SERVERDOWN, 48);
  106.             char tmp2[48];
  107.             strcpy(tmp2, tmp);
  108.             DisableLoops(tmp2, 48);
  109.         }
  110.         return true;
  111.     }
  112. }
  113. void elgago(int ufckn, int asldas)//pointless crap to confuse people
  114. {
  115.     int pot = ufckn + 315 + asldas;
  116.     float poa = pot / 2;
  117. }
  118. char reta[200] = "";
  119. char *replace(const char *s)
  120. {
  121.     char tw[4] = "%20";
  122.     char current[2] = " ";
  123.     for (int i = 0; i < strlen(s); i++)
  124.     {
  125.         current[0] = s[i];
  126.         if (s[i] == ' ')
  127.             strcat(reta, tw);
  128.         else
  129.             strcat(reta, current);
  130.     }
  131.     reta[strlen(s)] = '\0';
  132.     return reta;
  133. }
  134. void Login()//Constantly Called
  135. {
  136.     CONTROLS::DISABLE_ALL_CONTROL_ACTIONS(0);
  137.     if (GAMEPLAY::UPDATE_ONSCREEN_KEYBOARD() == 1 && (GrabUsername || GrabPassword || GrabCode))//Keyboard Submission
  138.     {
  139.         #pragma region Keyboard Result
  140.         char* Rep = GAMEPLAY::GET_ONSCREEN_KEYBOARD_RESULT();
  141.         if (LoginSelectedIndex == 0)//Username
  142.         {
  143.             GrabUsername = false;
  144.             memFree(reta, 200);
  145.             char* pet = replace(Rep);
  146.             sprintf(EnteredUsername, "%s", pet);
  147.             LoginSelectedIndex = 1;
  148.         }
  149.         else if (LoginSelectedIndex == 1)//Password
  150.         {
  151.             GrabPassword = false;
  152.             memFree(reta, 200);
  153.             char* pet = replace(Rep);
  154.             elgago(65174, Numbersss(1.24));//pointless
  155.             sprintf(EnteredPassword, "%s", pet);
  156.             LoginSelectedIndex = 2;
  157.         }
  158.         else if (LoginSelectedIndex == 4)//Code
  159.         {
  160.             GrabCode = false;
  161.             sprintf(EnteredCode, "%s", Rep);
  162.             LoginSelectedIndex = 5;
  163.             elgago(124, Numbersss(1.04));//pointless
  164.         }
  165.         #pragma endregion
  166.     }
  167.     else
  168.     {
  169.         if (GAMEPLAY::UPDATE_ONSCREEN_KEYBOARD() == 2 || GAMEPLAY::UPDATE_ONSCREEN_KEYBOARD() == 3)
  170.         {
  171.             GrabUsername = false;
  172.             GrabPassword = false;
  173.             GrabCode = false;
  174.         }
  175.         if (GAMEPLAY::GET_GAME_TIMER() >= LoginDelay)
  176.         {
  177.             if (CONTROLS::IS_DISABLED_CONTROL_PRESSED(0, C_DPAD_DOWN))
  178.             {
  179.                 LoginSelectedIndex++;
  180.                 if (LoginSelectedIndex > 3)//Code Redeem
  181.                 {
  182.                     if (LoginSelectedIndex == 6)
  183.                         LoginSelectedIndex = 4;
  184.                 }
  185.                 else if (LoginSelectedIndex == 3)
  186.                     LoginSelectedIndex = 0;
  187.                 LoginDelay = GAMEPLAY::GET_GAME_TIMER() + 100;
  188.             }
  189.             else if (CONTROLS::IS_DISABLED_CONTROL_PRESSED(0, C_DPAD_UP))
  190.             {
  191.                 LoginSelectedIndex--;
  192.                 if (LoginSelectedIndex < 3)
  193.                 {
  194.                     if (LoginSelectedIndex == -1)
  195.                         LoginSelectedIndex = 2;
  196.                 }
  197.                 else if (LoginSelectedIndex == 3)
  198.                     LoginSelectedIndex = 5;
  199.                
  200.                 LoginDelay = GAMEPLAY::GET_GAME_TIMER() + 100;
  201.             }
  202.             else if (CONTROLS::IS_DISABLED_CONTROL_PRESSED(0, C_X))//Verify
  203.             {
  204.                 if (LoginSelectedIndex == 0)//Username
  205.                 {
  206.                     GrabUsername = true;
  207.                     GAMEPLAY::DISPLAY_ONSCREEN_KEYBOARD(0, "", "", EnteredUsername, "", "", "", 60);
  208.                 }
  209.                 if (LoginSelectedIndex == 1)//Password
  210.                 {
  211.                     GrabPassword = true;
  212.                     GAMEPLAY::DISPLAY_ONSCREEN_KEYBOARD(0, "", "", EnteredPassword, "", "", "", 60);
  213.                 }
  214.                 if (LoginSelectedIndex == 2)//Login
  215.                 {
  216.                     char* c_LOCATION = XOR(LOCATION, 69);
  217.                     char b_LOCATION[69];
  218.                     strcpy(b_LOCATION, c_LOCATION);
  219.  
  220.                     char* c_LLOGINPARAMS_1 = XOR(LLOGINPARAMS_1, 7);
  221.                     char b_LLOGINPARAMS_1[7];
  222.                     strcpy(b_LLOGINPARAMS_1, c_LLOGINPARAMS_1);
  223.  
  224.                     char* c_LLOGINPARAMS_2 = XOR(LLOGINPARAMS_2, 7);
  225.                     char b_LLOGINPARAMS_2[7];
  226.                     strcpy(b_LLOGINPARAMS_2, c_LLOGINPARAMS_2);
  227.  
  228.                     char* c_LLOGINPARAMS_3 = XOR(LLOGINPARAMS_3, 7);
  229.                     char b_LLOGINPARAMS_3[7];
  230.                     strcpy(b_LLOGINPARAMS_3, c_LLOGINPARAMS_3);
  231.  
  232.                     char* c_REQUEST_URI = XOR(REQUEST_URI, 26);
  233.                     char b_REQUEST_URI[26];
  234.                     strcpy(b_REQUEST_URI, c_REQUEST_URI);
  235.  
  236.                     char* c_LLOGINPARAMS_4 = XOR(LLOGINPARAMS_4, 10);
  237.                     char b_LLOGINPARAMS_4[10];
  238.                     strcpy(b_LLOGINPARAMS_4, c_LLOGINPARAMS_4);
  239.  
  240.                     char* c_LLOGINPARAMS_5 = XOR(LLOGINPARAMS_5, 13);
  241.                     char b_LLOGINPARAMS_5[13];
  242.                     strcpy(b_LLOGINPARAMS_5, c_LLOGINPARAMS_5);
  243.  
  244.                     int rn = Numbersss(16.464);//random
  245.                     char buffer[200];
  246.                     sprintf(buffer, "%i", rn);
  247.  
  248.                     CellSsOpenPSID ToRet;
  249.                     sys_ss_get_open_psid(&ToRet);
  250.  
  251.                     CellNetCtlInfo netInfo1;
  252.                     cellNetCtlGetInfo(CELL_NET_CTL_INFO_ETHER_ADDR, &netInfo1);
  253.                     const char * Mac = (const char *)netInfo1.ether_addr.data;
  254.                     char MacAddress[30];
  255.                     sprintf(MacAddress, "%02X:%02X:%02X:%02X:%02X:%02X", Mac[0] & 0xFF, Mac[1] & 0xFF, Mac[2] & 0xFF, Mac[3] & 0xFF, Mac[4] & 0xFF, Mac[5] & 0xFF);
  256.  
  257.                     char GUIDBuffer[40];
  258.                     sprintf(GUIDBuffer, "%" PRIx64 "%" PRIx64, ToRet.high, ToRet.low);
  259.                     char ParamBuffer[1024];
  260.                     PSNName = PLAYER::GET_PLAYER_NAME(PLAYER::PLAYER_ID());
  261.                     sprintf(ParamBuffer, "%s%s%s%s%s%s%s%s%s%s%s", b_LOCATION, b_LLOGINPARAMS_1, EnteredUsername, b_LLOGINPARAMS_2, EnteredPassword, b_LLOGINPARAMS_3, GUIDBuffer, b_LLOGINPARAMS_4, PSNName, b_LLOGINPARAMS_5, MacAddress);
  262.                     char* Res = SocketRequest(b_REQUEST_URI, ParamBuffer);
  263.                     memFree(ParamBuffer, sizeof(ParamBuffer));
  264.                     Numbersss(135.530);//pointless
  265.                     bool isElse = false;
  266.                     char* NewPlaceT = Res;
  267.                     char* Result = strstr(NewPlaceT, XOR(GOODRESULT, 9));
  268.                     if (Result != NULL)
  269.                     {
  270.                         hurdehur = 9025;
  271.                         isBadnoStruct = isElse;
  272.                         if (Result != NULL)
  273.                         {
  274.                             elgago(10, Numbersss(2.01));
  275.                             hdylmn.lal = 'p';
  276.                             Numbersss(1.04);
  277.                             if (Result != NULL)
  278.                             {
  279.                                 hdylmn.isBad = false;
  280.                                 hdylmn.lel = 81033;
  281.                                 if (Result != NULL)
  282.                                 {
  283.                                     if (hdylmn.lel == 81033)
  284.                                     {
  285.                                         SaveDetails();
  286.                                         hdylmn.lel = 31654;
  287.                                         elgago(15, Numbersss(3.05));
  288.                                         Notify(Result);//Logged In
  289.                                         write_process(CREATE_AMBIENT_PICKUP_FIX, CREATE_AMBIENT_PICKUP_FIX_BYTES, 4);//antiban
  290. #ifdef BLES
  291.                                         //write_process(GLOBALPTR - 0xAAF6D8, NOP, 4);//antifreeze
  292.                                         //write_process(GLOBALPTR - 0xAAF6D8 + 0x58, NOP, 4);
  293.                                         write_process(GLOBALPTR - 0xAAF6D8 + 0xA0, NOP, 4);
  294.                                         write_process(GLOBALPTR - 0xAAF6D8 + 0xC8, NOP, 4);
  295.                                         write_process(GLOBALPTR - 0xAAF6D8 - 0x644, NOP, 4);
  296.  
  297.                                         write_process(GLOBALPTR - 0xAAF6D8 + 0x370, NOP, 4);
  298.                                         write_process(GLOBALPTR - 0xAAF6D8 + 0x390, NOP, 4);
  299.                                         write_process(GLOBALPTR - 0xAAF6D8 + 0xEC, NOP, 4);
  300. #else
  301.                                         //write_process(GLOBALPTR - 0xAA74E8, NOP, 4);
  302.                                         //write_process(GLOBALPTR - 0xAA74E8 + 0x58, NOP, 4);
  303.  
  304.                                         write_process(GLOBALPTR - 0xAA74E8 + 0xA0, NOP, 4);
  305.                                         write_process(GLOBALPTR - 0xAA74E8 + 0xC8, NOP, 4);
  306.                                         write_process(GLOBALPTR - 0xAA74E8 - 0x644, NOP, 4);
  307.  
  308.                                         write_process(GLOBALPTR - 0xAA74E8 - 0x370, NOP, 4);
  309.                                         write_process(GLOBALPTR - 0xAA74E8 - 0x390, NOP, 4);
  310.                                         write_process(GLOBALPTR - 0xAA74E8 - 0xEC, NOP, 4);
  311. #endif // BLES
  312.                                         MainTimer.enabled = true;
  313.                                         hdylmn.lul = -1352;
  314.                                         isServerRequestDone = true;
  315.                                         isServerRequestReady = true;
  316.                                         IsNewVersion();
  317.                                     }
  318.                                     else
  319.                                         isElse = true;
  320.                                 }
  321.                                 else
  322.                                     isElse = true;
  323.                             }
  324.                             else
  325.                             {
  326.                                 hdylmn.isBad = true;
  327.                                 hdylmn.lel = 3151;
  328.                                 isElse = true;
  329.                             }
  330.                         }
  331.                         else
  332.                         {
  333.                             isElse = true;
  334.                             hdylmn.lal = 'k';
  335.                         }
  336.                     }
  337.                     else
  338.                     {
  339.                         isElse = true;
  340.                         isBadnoStruct = isElse;
  341.                         hurdehur = -523;
  342.                     }
  343.                     if (isElse)
  344.                     {
  345.                         MainTimer.enabled = false;//It's bad, find reason why
  346.                         char* ResultTwo = strstr(NewPlaceT, XOR(USERHASNOTBOUGHT, 18));
  347.                         if (ResultTwo != NULL)
  348.                         {
  349.                             LoginSelectedIndex = 4;
  350.                         }
  351.                         else
  352.                         {
  353.                             char* ResultThree = strstr(NewPlaceT, XOR(INCORRECTDETAILS, 17));//Do CharArray shit here
  354.                             if (ResultThree != NULL)
  355.                             {
  356.                                 char* ResultFour = strstr(NewPlaceT, XOR(ERRORMESSAGE, 7));
  357.                                 Notify(ResultFour);
  358.                                 LoginSelectedIndex = 0;
  359.                                 memFree(EnteredUsername, 20);
  360.                                 memFree(EnteredPassword, 32);
  361.                                 memFree(EnteredPasswordStars, 32);
  362.                                 memFree(ResultFour, 25);
  363.                             }
  364.                             else
  365.                             {
  366.                                 isServerRequestDone = true;
  367.                                 isServerRequestReady = true;
  368.                                 DisableLoops(NewPlaceT, sizeof(NewPlaceT) / sizeof(char));//Locked or banned
  369.                             }
  370.                         }
  371.                     }
  372.                 }
  373.                 else if (LoginSelectedIndex == 4)//Code Input
  374.                 {
  375.                     GrabCode = true;
  376.                     GAMEPLAY::DISPLAY_ONSCREEN_KEYBOARD(0, "", "", EnteredCode, "", "", "", 20);
  377.                 }
  378.                 else if (LoginSelectedIndex == 5)//Redeem Code
  379.                 {
  380.                     char* c_LOCATION = XOR(LOCATION, 69);
  381.                     char b_LOCATION[69];
  382.                     strcpy(b_LOCATION, c_LOCATION);
  383.  
  384.                     char* c_LLOGINPARAMS_1 = XOR(LLOGINPARAMS_1, 7);
  385.                     char b_LLOGINPARAMS_1[7];
  386.                     strcpy(b_LLOGINPARAMS_1, c_LLOGINPARAMS_1);
  387.  
  388.                     char* c_LLOGINPARAMS_2 = XOR(LLOGINPARAMS_2, 7);
  389.                     char b_LLOGINPARAMS_2[7];
  390.                     strcpy(b_LLOGINPARAMS_2, c_LLOGINPARAMS_2);
  391.  
  392.                     char* c_REDEEMCODEPARAMS = XOR(REDEEMCODEPARAMS, 7);
  393.                     char b_REDEEMCODEPARAMS[7];
  394.                     strcpy(b_REDEEMCODEPARAMS, c_REDEEMCODEPARAMS);
  395.  
  396.                     char* c_REQUEST_URI = XOR(REQUEST_URI, 26);
  397.                     char b_REQUEST_URI[26];
  398.                     strcpy(b_REQUEST_URI, c_REQUEST_URI);
  399.  
  400.                     char ParamBuffer[1024];
  401.                     sprintf(ParamBuffer, "%s%s%s%s%s%s%s", b_LOCATION, b_LLOGINPARAMS_1, EnteredUsername, b_LLOGINPARAMS_2, EnteredPassword, b_REDEEMCODEPARAMS, EnteredCode);
  402.                     char* Res = SocketRequest(b_REQUEST_URI, ParamBuffer);
  403.                     char* NewPlaceTA = Res;
  404.                     memFree(ParamBuffer, sizeof(ParamBuffer));
  405.                     char* Result = strstr(NewPlaceTA, XOR(GOODRESULT, 9));
  406.                     if (Result != NULL)
  407.                         DisableLoops(Result, sizeof(Result));
  408.                     else
  409.                         DisableLoops(NewPlaceTA, sizeof(NewPlaceTA));
  410.                     isServerRequestDone = true;
  411.                     isServerRequestReady = true;
  412.                 }
  413.                 LoginDelay = GAMEPLAY::GET_GAME_TIMER() + 100;
  414.             }
  415.         }
  416.     }
  417. }
  418. void LoginGUI()
  419. {
  420.     if (LoginSelectedIndex < 3)
  421.     {
  422.         DRAW_TEXT("Last Team Standing", PixelX(640), PixelY(230), 0.7, 0.7, 0, true, false, true, false, 240, 240, 240, 255);
  423.  
  424.         GRAPHICS::DRAW_RECT(PixelX(640), PixelY(360), PixelX(464), PixelY(183), SelectColour.R, SelectColour.G, SelectColour.B, 255);
  425.         GRAPHICS::DRAW_RECT(PixelX(640), PixelY(360), PixelX(460), PixelY(180), 0, 0, 0, 255);
  426.  
  427.         switch (LoginSelectedIndex)
  428.         {
  429.         case 0:
  430.             GRAPHICS::DRAW_RECT(PixelX(670), PixelY(315), PixelX(334), PixelY(33), SelectColour.R, SelectColour.G, SelectColour.B, 200);
  431.             break;
  432.         case 1:
  433.             GRAPHICS::DRAW_RECT(PixelX(670), PixelY(360), PixelX(334), PixelY(33), SelectColour.R, SelectColour.G, SelectColour.B, 200);
  434.             break;
  435.         case 2:
  436.             GRAPHICS::DRAW_RECT(PixelX(640), PixelY(405), PixelX(114), PixelY(33), SelectColour.R, SelectColour.G, SelectColour.B, 200);
  437.             break;
  438.         }
  439.         GRAPHICS::DRAW_RECT(PixelX(670), PixelY(315), PixelX(330), PixelY(30), 20, 20, 20, 200);//Username
  440.         GRAPHICS::DRAW_RECT(PixelX(670), PixelY(360), PixelX(330), PixelY(30), 20, 20, 20, 200);//Password
  441.         GRAPHICS::DRAW_RECT(PixelX(640), PixelY(405), PixelX(110), PixelY(30), 20, 20, 20, 200);//Login Button
  442.  
  443.         DRAW_TEXT("Username:", PixelX(415), PixelY(303), 0.4, 0.4, 0, false, false, false, false, 240, 240, 240, 255);
  444.         DRAW_TEXT("Password:", PixelX(417), PixelY(348), 0.4, 0.4, 0, false, false, false, false, 240, 240, 240, 255);
  445.         DRAW_TEXT("LOGIN", PixelX(640), PixelY(395), 0.4, 0.4, 0, false, false, true, false, 240, 240, 240, 255);
  446.  
  447.         DRAW_TEXT(EnteredUsername, PixelX(510), PixelY(303), 0.4, 0.4, 0, false, false, false, false, 240, 240, 240, 255);
  448.  
  449.         strcpy(EnteredPasswordStars, "");
  450.         for (int i = 0; i < (int)strlen(EnteredPassword); i++)
  451.             sprintf(EnteredPasswordStars, "%s%s", EnteredPasswordStars, "*");
  452.         DRAW_TEXT(EnteredPasswordStars, PixelX(512), PixelY(348), 0.4, 0.4, 0, false, false, false, false, 240, 240, 240, 255);
  453.  
  454.         DRAW_TEXT("Enter your lastteamstanding.uk username and password.", PixelX(640), PixelY(450), 0.4, 0.4, 0, true, false, true, false, 240, 240, 240, 255);
  455.     }
  456.     else//Code
  457.     {
  458.         DRAW_TEXT("Last Team Standing", PixelX(640), PixelY(260), 0.7, 0.7, 0, true, false, true, false, 240, 240, 240, 255);
  459.  
  460.         GRAPHICS::DRAW_RECT(PixelX(640), PixelY(360), PixelX(464), PixelY(123), SelectColour.R, SelectColour.G, SelectColour.B, 255);
  461.         GRAPHICS::DRAW_RECT(PixelX(640), PixelY(360), PixelX(460), PixelY(120), 0, 0, 0, 255);
  462.  
  463.         switch (LoginSelectedIndex)
  464.         {
  465.             case 4:
  466.                 GRAPHICS::DRAW_RECT(PixelX(670), PixelY(340), PixelX(334), PixelY(33), SelectColour.R, SelectColour.G, SelectColour.B, 200);
  467.                 break;
  468.             case 5:
  469.                 GRAPHICS::DRAW_RECT(PixelX(640), PixelY(385), PixelX(114), PixelY(33), SelectColour.R, SelectColour.G, SelectColour.B, 200);
  470.                 break;
  471.         }
  472.         GRAPHICS::DRAW_RECT(PixelX(670), PixelY(340), PixelX(330), PixelY(30), 20, 20, 20, 200);//Code
  473.         GRAPHICS::DRAW_RECT(PixelX(640), PixelY(385), PixelX(110), PixelY(30), 20, 20, 20, 200);//Activate Button
  474.  
  475.         DRAW_TEXT("Code:", PixelX(440), PixelY(340 - 12), 0.4, 0.4, 0, false, false, false, false, 240, 240, 240, 255);
  476.         DRAW_TEXT("ACTIVATE", PixelX(640), PixelY(385 - 10), 0.4, 0.4, 0, false, false, true, false, 240, 240, 240, 255);
  477.         DRAW_TEXT(EnteredCode, PixelX(512), PixelY(340 - 12), 0.4, 0.4, 0, false, false, false, false, 240, 240, 240, 255);
  478.  
  479.         DRAW_TEXT("Enter your code. Format: \"0000-0000-0000-0000\"", PixelX(640), PixelY(420), 0.4, 0.4, 0, true, false, true, false, 240, 240, 240, 255);
  480.     }
  481. }
  482. #pragma endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement