Guest User

Untitled

a guest
Dec 6th, 2017
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. case 1:
  2. var user, pass;
  3. user=readstring();
  4. pass=readstring();
  5. if(file_exists(string(user) + ".ini")) {
  6. ini_open(user);
  7. p=ini_read_string("Account Info","Password",string_decrypt());
  8. if(p!=pass)
  9. {
  10. clearbuffer();
  11. writebyte(4);
  12. writestring("Your password is wrong");
  13. sendmessage(connections[i]);
  14. console_add_line("User was diconnected, due the wrong password, named "+string(user));
  15. }
  16. ini_close();
  17.  
  18. }
  19. if(file_exists(string(user) + ".ini")) {
  20. ini_open(user);
  21. p=ini_read_string("Account Info","Password",string_decrypt());
  22. if(p==pass)
  23. {
  24. clearbuffer();
  25. writebyte(5);
  26. writestring("Logging in was sucefull, welcome "+string(user)+".");
  27. sendmessage(connections[i]);
  28. console_add_line(string(user)+"has been sucefully connected to server");
  29. }
  30. ini_close();
  31. break;
  32. }
Add Comment
Please, Sign In to add comment