pawn Код:
if(dialogid == dlogin)
{
if(!response) return Kick(playerid);
if(response)
{
new hashpass[129];
INI_ParseFile(Path(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
WP_Hash(hashpass, sizeof(hashpass), inputtext);
if(!strcmp(hashpass, Info[playerid][pPass], false))
{
SetPlayerScore(playerid, Info[playerid][pLevel]);
GivePlayerMoney(playerid, Info[playerid][pDinero]);
SetPlayerSkin(playerid, Info[playerid][pSkin]);
SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
SendClientMessage(playerid, -1, "Has entrado a Napsix Roleplay.");
}
else
{
ShowPlayerDialog(playerid, dlogin, DIALOG_STYLE_PASSWORD, "Login", "Bienvenido a Napsix Roleplay.\nIngresa tu contraseсa.\nContraseсa Incorrecta!", "Aceptar", "Salir");
return 1;
}
}
}