Advertisement
Guest User

logowanie

a guest
Jan 17th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. ShowAdminLogged(playerid)
  2. {
  3. if(!strcmp(pData[playerid][AdminPass], "NULL", true)) Dialog_Show(playerid, DIALOG_ADMIN_PASS, DIALOG_STYLE_INPUT, ""GREEN"Ustalanie Hasla Do Logowania Na Admina", ""WHITE"Ustal hasło którym będziesz się logować przy każdym wejściu na "GOLD"Konto Administracyjne.\n"LIGHTRED"Znaki: "YELLOW"A-Z 1-9", "Ustal", "Anuluj");
  4. else Dialog_Show(playerid, DIALOG_ADMIN_LOGIN, DIALOG_STYLE_PASSWORD, ""GREEN"Logowanie Na Admina", ""LIGHTRED"Podaj hasło:", ""YELLOW"Zaloguj", ""YELLOW"Anuluj");
  5. }
  6.  
  7. Dialog:DIALOG_ADMIN_PASS(playerid, response, listitem, inputtext[])
  8. {
  9. if(!response) return Kick(playerid);
  10.  
  11. if(!IsPasswordCorrect(inputtext) || isnull(inputtext))
  12. {
  13. SCM(playerid, COLOR_GREEN3, "[ADMIN LOGIN]: "YELLOW"Hasło od 3 do 25 znaków. "LIGHTRED"Wymyśl dobre hasło!");
  14. ShowAdminLogged(playerid);
  15.  
  16. return 1;
  17. }
  18.  
  19. format(pData[playerid][AdminPass], 40, inputtext);
  20. SCM(playerid, COLOR_GREEN, "[ADMIN LOGIN]: "YELLOW"Ustaliłeś Hasło Do Logowania Na Admina Na: "LIGHTRED">> %s <<", inputtext);
  21.  
  22. new inputtext2[50];
  23. mysql_real_escape_string(inputtext, inputtext2);
  24. SetPlayerAccountDataString(playerid, "admin_pass", inputtext2);
  25.  
  26. ShowAdminLogged(playerid);
  27.  
  28. return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement