Guest User

Untitled

a guest
Oct 26th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. if(dialogid == DIALOG_LOGIN)
  2. {
  3. new name[MAX_PLAYER_NAME], file[256], str[500];
  4. GetPlayerName(playerid, name, sizeof(name));
  5. format(file, sizeof(file), USER_FILE, name);
  6. if(!response) return Kick(playerid);
  7. format(str, sizeof(str),"Konto %s jest już zarejestrowane.\nWpisz poniżej hasło, aby się zalogować.", name);
  8. if (!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Logowanie", str, "Zaloguj", "Anuluj");
  9. if(strcmp(inputtext, dini_Get(file, "Password"), false))
  10. {
  11. Kick(playerid);
  12.  
  13. }
  14. else
  15. {
  16. PlayerLogged[playerid] = 1;
  17. SendClientMessage(playerid, 0xFFFFFFFF, "zalogowany");
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment