06.06.2015, 14:12
PHP код:
if (udb_CheckLogin(PlayerName(playerid),inputtext))
{
BankCash[playerid] =dUserINT(PlayerName(playerid)).("Bankcash");
GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("Money")-GetPlayerMoney(playerid));
SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("Score")-GetPlayerScore(playerid));
CanUseArmy[playerid] =dUserINT(PlayerName(playerid)).("Army");
CanUseCIA[playerid] =dUserINT(PlayerName(playerid)).("CIA");
AdminLevel[playerid] =dUserINT(PlayerName(playerid)).("Adminlevel");
IsRegularPlayer[playerid] =dUserINT(PlayerName(playerid)).("RegularPlayer");
NameBanned[playerid] =dUserINT(PlayerName(playerid)).("Nameban");
DrugHouseOwner[playerid] =dUserINT(PlayerName(playerid)).("DrugHouseOwner");
OttoOwner[playerid] =dUserINT(PlayerName(playerid)).("OttoOwner");
TerroristSkill[playerid] =dUserINT(PlayerName(playerid)).("TSkill");
RobSkill[playerid] =dUserINT(PlayerName(playerid)).("RobSkill");
HasPackC4[playerid] =dUserINT(PlayerName(playerid)).("HasPackC4");
HasPackRope[playerid] =dUserINT(PlayerName(playerid)).("HasPackRope");
HasPackMoney[playerid] =dUserINT(PlayerName(playerid)).("HasPackMoney");
SavedWantedLevel[playerid] =dUserINT(PlayerName(playerid)).("SavedWantedLevel");
SavedJailTime[playerid] =dUserINT(PlayerName(playerid)).("SavedJailTime");
new pIp[16];
GetPlayerIp(playerid, pIp, sizeof(pIp));
dUserSet(PlayerName(playerid)).("IP", pIp);
PLAYERLIST_authed[playerid]=true;
return SendClientMessage(playerid,COLOR_LIGHTBLUE,"You have successfully logged in! Your previous stats have been restored.");
}
ShowLoginScreen(playerid);
CheckPasswordAttempts(playerid);
}
return 1;