Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == DIALOG_LOGIN)
- {
- new name[MAX_PLAYER_NAME], file[256], str[500];
- GetPlayerName(playerid, name, sizeof(name));
- format(file, sizeof(file), USER_FILE, name);
- if(!response) return Kick(playerid);
- format(str, sizeof(str),"Konto %s jest już zarejestrowane.\nWpisz poniżej hasło, aby się zalogować.", name);
- if (!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Logowanie", str, "Zaloguj", "Anuluj");
- if(strcmp(inputtext, dini_Get(file, "Password"), false))
- {
- Kick(playerid);
- }
- else
- {
- PlayerLogged[playerid] = 1;
- SendClientMessage(playerid, 0xFFFFFFFF, "zalogowany");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment