20.05.2017, 11:24
Now about the money and the skin, you'll have to set them after you confirm that the password is correct.
Something like:
Something like:
Код:
case DIALOG_LOGIN: { if(!response) return Kick(playerid); else { if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Server - Login", "Wrong password\nTry again!", "Login", "Exit"); if(PlayerInfo[playerid][pPass] == udb_hash(inputtext)) { GivePlayerMoney(playerid, PlayerInfo[playerid][Cartera]); SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]); //Other part of your code } else return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Server - Login", "Wrong password\nTry again!", "Login", "Exit"); } }