Advertisement
Guest User

Source

a guest
Jan 23rd, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.  
  10. string username = "Exceed";
  11. int password = 990;
  12. string u;
  13. int p;
  14.  
  15. cout << "Welcome to Project Soar, brought you by Exceed!";
  16.  
  17. Sleep(
  18. 3500);
  19.  
  20. system("cls");
  21.  
  22. cout << "Please login to continue..\n\nUsername: ";
  23. cin >> u;
  24.  
  25. cout << "Password: ";
  26. cin >> p;
  27.  
  28. if(u==username and p==password){
  29. cout << "\n//:Authenticating...\n";
  30. Sleep(1500);
  31. cout << "\n//:Login Succesful!\n";
  32. Sleep(1500);
  33. system("cls");
  34. }
  35.  
  36. if(u!=username or p!=password){
  37. cout << "\n//:Authenticating...\n";
  38. Sleep(3000);
  39. cout << "\n//:Invalid Login...\n";
  40. exit(EXIT_FAILURE);
  41. }
  42.  
  43. string cmd = "cmds";
  44. string cmds;
  45.  
  46. cout << "Welcome to Project Soar!\n\Type in 'cmds' for a list of commands!\n\n";
  47. cin >> cmds;
  48.  
  49. string ctext;
  50.  
  51. if(cmds==cmd){
  52. cout << "\nkill [P] - Kills Player [P]\nkick [P] - Kicks a Player [P]\nws [P] [N] - Set's Player's walkspeed to [N]\nnoclip [P] - Noclips Player [P]\nban [P] - Bans a Player [P]\nexplode [P] - Explodes a Player [P]\nff [P] - Forcefields Player [P]\nfling [P] - Flings a Player [P]\nairwalk - Airwalks local Player\ngod [P] - Gods Player [P]\nungod [P] - Ungods Player [P]\nsethp [P] - Sets local player's health\nclr - clears CMD Box\n\n"; // Change to your cmds, Idgaf.
  53. cin >> ctext;
  54. };
  55.  
  56. while (true){
  57. string cls;
  58. cin >> cls;
  59. if(cls=="cls"){
  60. system("cls");
  61. }
  62. string cmds;
  63. cin >> cmds;
  64. if(cmds=="cmds"){
  65. cout << "\nkill [P] - Kills Player [P]\nkick [P] - Kicks a Player [P]\nws [P] [N] - Set's Player's walkspeed to [N]\nnoclip [P] - Noclips Player [P]\nban [P] - Bans a Player [P]\nexplode [P] - Explodes a Player [P]\nff [P] - Forcefields Player [P]\nfling [P] - Flings a Player [P]\nairwalk - Airwalks local Player\ngod [P] - Gods Player [P]\nungod [P] - Ungods Player [P]\nsethp [P] - Sets local player's health\nclr - clears CMD Box\n\n";
  66. cin >> cmds;
  67. }
  68. }
  69.  
  70.  
  71.  
  72. return 0;
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement