18.03.2012, 10:17
pawn Код:
if(dialogid == 667)
{
if(response)
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
gPlayerLogged[playerid] = 1;
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
SCM(playerid, COLOR_RED, "You have logged in. You may now spawn.");
}
else
{
gPlayer[playerid] += 1;
if(gPlayer[playerid] == 1)
{
SCM(playerid, COLOR_RED, "Wrong Password. 1/3");
}else if(gPlayer[playerid] == 2)
{
SCM(playerid ,COLOR_RED, "Wrong Password. 2/3");
}else if(gPlayer[playerid] == 3){
SCM(playerid, COLOR_RED, "Wrong Password. 3/3. You have been kicked.");
Kick(playerid);
}
}
}
}