Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_LOGIN1:
- {
- if(!response) return Kick(playerid);
- else
- {
- new pwlenght = strlen(inputtext);
- if(pwlenght > 0)
- {
- new pw[200];
- format(pw, sizeof(pw), "%s", dini_Get(path, "password"));
- if(strcmp(inputtext, pw) == 0)
- {
- pInfo[playerid][sex] = dini_Int(path, "sex");
- pInfo[playerid][age] = dini_Int(path, "age");
- pInfo[playerid][US] = dini_Int(path, "US");
- pInfo[playerid][UN] = dini_Int(path, "UN");
- pInfo[playerid][LevelAdmin] = dini_Int(path, "LevelAdmin");
- if(pInfo[playerid][UN] == 1)
- {
- SetSpawnInfo(playerid, 0, 121, -1445.0745,501.4274,3.0414,266.8651,32,600,21,600,0,0);
- SpawnPlayer(playerid);
- SetPlayerSkin(playerid, 121);
- }
- else if(pInfo[playerid][US] == 1)
- {
- SetSpawnInfo(playerid, 0, 0, 248.2483,1800.9001,7.4141,358.4626,31,600,21,600,0,0);
- SpawnPlayer(playerid);
- SetPlayerSkin(playerid, 287);
- }
- else
- {
- SetSpawnInfo(playerid, 0, 0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- SpawnPlayer(playerid);
- SetPlayerSkin(playerid, 46);
- }
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_WRONGPW, DIALOG_STYLE_MSGBOX, "Connection", "Mauvais Mot de passe", "OK", "Annuler");
- }
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_NOPW2, DIALOG_STYLE_MSGBOX, "Connection", "Vous devez entrer un mot de passe :", "OK", "Annuler");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement