Password Question
#1

Hi all,i wonder what can couse problem of password i have.

When i ban player and he try to login he's banned everything is fine.
But when i unban him and he try to write his password and login his account password is not same and server close connection.
I made "getkey" on register/login so i can see password and i check password in file and i write same password from file and they told me they used but server say password incorrect and they can't login,
I wonder what can couse this problem?
Reply
#2

Quote:
Originally Posted by ***Niko***
Посмотреть сообщение
Hi all,i wonder what can couse problem of password i have.

When i ban player and he try to login he's banned everything is fine.
But when i unban him and he try to write his password and login his account password is not same and server close connection.
I made "getkey" on register/login so i can see password and i check password in file and i write same password from file and they told me they used but server say password incorrect and they can't login,
I wonder what can couse this problem?
Post your login command and maybe ban/unban commands too? Might be faulty logic.
Reply
#3

Okay,

pawn Код:
if(strcmp(cmd, "/ban", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new playersip[64];
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ban [playerid/PartOfName] <reason>");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            new string3[256];
            if (PlayerInfo[playerid][pAdmin] >= 3 || IsPlayerAdmin(playerid))
            {
                if(IsPlayerConnected(giveplayerid))
                {
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        GetPlayerIp(giveplayerid,playersip,sizeof(playersip));
                        new length = strlen(cmdtext);
                        while ((idx < length) && (cmdtext[idx] <= ' '))
                        {
                            idx++;
                        }
                        new offset = idx;
                        new result[128];
                        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                        {
                            result[idx - offset] = cmdtext[idx];
                            idx++;
                        }
                        result[idx - offset] = EOS;
                        if(!strlen(result))
                        {
                            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ban [playerid/PartOfName] [reason]");
                            return 1;
                        }
                        if(giveplayerid != playerid && Untouchable[giveplayerid]) return SendClientMessage(playerid, COLOR_GREY, " Nice try dude...");
                        new targetlevel = PlayerInfo[giveplayerid][pAdmin];
                        new playerlevel = PlayerInfo[playerid][pAdmin];
                        if(targetlevel > playerlevel) return SendClientMessage(playerid, COLOR_GREY, "[ERP-AC] - You can't use this command on that person!");
                        new y, m, d;
                        new h,mi,s;
                        getdate(y,m,d);
                        gettime(h,mi,s);
                        format(string3,sizeof(string3), "(%d/%d/%d)[%d:%d:%d] %s Has been banned by %s for: %s",d,m,y,h,mi,s,giveplayer,sendername, (result));
                        BanLog(string3);
                        format(string3,sizeof(string3), "(%d/%d/%d)[%d:%d:%d] Banned by %s - Reason: %s",d,m,y,h,mi,s,sendername,(result));
                        AddPunishment(giveplayerid, string3);
                        format(string3, sizeof(string3), "%s (%d), Has been Banned by Administrator %s for %s", giveplayer, giveplayerid, sendername, (result));
                        SendClientMessageToAll(COLOR_NICERED, string3);
                        format(string3, sizeof(string3), "[ADMIN]: %s Has Been Added to the Ban list by %s", playersip, sendername);
                        SendAdminMessage(COLOR_WHITE, string3);
                        format(string3, sizeof(string3), "You have Been Banned by Administrator %s for %s", sendername, (result));
                        SendClientMessage(giveplayerid,COLOR_NICERED, string3);
                        SendClientMessage(giveplayerid,COLOR_BLUE, "If You Feel that This has Been an Error, Report the Admin to www.europe-roleplay.info");
                        SendClientMessage(giveplayerid,COLOR_BLUE, "To Get Unbanned Post an Unban Request at Our Forums www.europe-roleplay.info");
                        SendClientMessage(giveplayerid,COLOR_LIGHTRED, "Don't Evade, Otherwise you wont get unbanned");
                        SafeSetPlayerPos(giveplayerid,264.6288,77.5742,1001.0391);
                        SafeSetPlayerInterior(giveplayerid, 6);
                        PlayerInfo[giveplayerid][pJailTime] = 300;
                        PlayerInfo[giveplayerid][pJailed] = 1;
                        format(string3, sizeof(string3), "~r~~h~Admin Ban: ~n~~r~%s",(result));
                        GameTextForPlayer(giveplayerid, string3, 6000, 3);
                        PlayerInfo[giveplayerid][pPending] = 0;
                        ScriptBan(giveplayerid, playerid, reason);
                        return 1;
                    }
                }
            }
            else
            {
                format(string, sizeof(string), " %d is not an active player.", giveplayerid);
                SendClientMessage(playerid, COLOR_ORANGE, string);
            }
        }
        return 1;
    }
pawn Код:
dcmd_unban(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 5)
        return SendClientMessage(playerid, COLOR_GREY, "   [ERP-Info] -  You are not autorized to use this command!");

    new rcmsg[80], acct[24], file[64],name[24],string[128],otherfile[64];
    GetPlayerName(playerid, name, sizeof(name));

    if(sscanf(params, "s", acct))
        return SendClientMessage(playerid, COLOR_GREY, "Usage: /unban <account name>");

    format(file, sizeof(file),"ERP/Users/%s.ini", acct);

    if(!dini_Exists(file))
        return SendClientMessage(playerid, COLOR_LIGHTRED,"Error: account doesn't exists!");

    format(ipFILE, 128, "ERP/Users/Aliases/%s.txt", acct);

    format(rcmsg, sizeof(rcmsg), "unbanip %s", dini_Get(ipFILE,"NameIp"));
    SendRconCommand(rcmsg);
    SendRconCommand("reloadbans");

    format(otherfile,sizeof(otherfile),"ERP/Users/Bans/%s.ban",dini_Get(ipFILE,"NameIp"));
    fremove(otherfile);

    format(string, sizeof(string), "[ADMIN]: %s has unbanned The account of %s.", name,acct);
    ABroadCast(COLOR_LIGHTRED,string, 5);
    format(string, sizeof(string), "[ADMIN]: IP %s has been removed by the ban list by %s.", dini_Get(ipFILE,"NameIp"), name);
    ABroadCast(COLOR_WHITE,string, 5);
    format(string, sizeof(string), "* Administrator %s Has Unbanned the account of %s", name,acct);
    SendClientMessageToAll(COLOR_NICERED,string);
    format(string, sizeof(string), "* Successfuly Unbanned %s's account & removed %s from the ban list", name,dini_Get(ipFILE,"NameIp"));
    SendClientMessage(playerid,TEAM_GROVE_COLOR,string);

    new y, m, d;
    new h,mi,s;
    getdate(y,m,d);
    gettime(h,mi,s);
    format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Unbanned the Account of %s (%s)",d,m,y,h,mi,s,name,acct,dini_Get(ipFILE,"NameIp"));
    LoginLog(string);
    return 1;
}
Script ban function
pawn Код:
forward ScriptBan(playerid,adminid,reason[]);
public ScriptBan(playerid,adminid,reason[])
{
    new string[128],file[64];
    new y,m,d,h,mi,s;
    getdate(y,m,d);
    gettime(h,mi,s);
    new playersip[34];
    GetPlayerIp(playerid,playersip,sizeof(playersip));

    format(file, sizeof(file),"ERP/Users/Bans/%s.ban",playersip);

    dini_Create(file);

    if(adminid != 999)
    {
        dini_Set(file,"BannedBy",PlayerName(adminid));
    }
    else
    {
        dini_Set(file,"BannedBy","[ERP-AC]");
    }
    format(string, sizeof(string),"%d/%d/%d at %d:%d:%d",d,m,y,h,mi,s);
    dini_Set(file,"BanDate",string);
    dini_Set(file,"BanReason",reason);
    dini_Set(file,"BanName",PlayerName(playerid));

    format(file, sizeof(file),"ERP/Users/%s.ini",PlayerName(playerid));
    Kick(playerid);
    return 1;
}
And last one OnPlayerLogin

pawn Код:
public OnPlayerLogin(playerid,password[]) /
{
    new tmp2[256];
    new string2[64];
    new string[128];
    new playersip[24];
    new playername2[MAX_PLAYER_NAME];
    new playernamesplit[3][MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    GetPlayerIp(playerid, playersip, sizeof(playersip));
    split(playername2, playernamesplit, '_');
    format(string2, sizeof(string2), "ERP/Users/%s.ini", playername2);
    new File: UserFile = fopen(string2, io_read);
    if ( UserFile )
    {
        new PassData[256];
        new keytmp[256], valtmp[256];
        fread( UserFile , PassData , sizeof( PassData ) );
        keytmp = ini_GetKey( PassData );
        if( strcmp( keytmp , "Key" , true ) == 0 )
        {
            valtmp = ini_GetValue( PassData );
            strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
        }
        if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
        {
                new key[ 256 ] , val[ 256 ];
                new Data[ 256 ];
                while ( fread( UserFile , Data , sizeof( Data ) ) )
                {
                    key = ini_GetKey( Data );
                    if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }
                    if( strcmp( key , "Spawn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpawn] = strval( val ); }
                    if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
                    if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
                    if( strcmp( key , "RegularRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRegularRank] = strval( val ); }
                    if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }
                    if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
                    if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
                    if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); }
                    if( strcmp( key , "GPS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGPS] = strval( val ); }
                    if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
                    if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }
                    if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
                    if( strcmp( key , "Blind" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBlind] = strval( val ); }
                    if( strcmp( key , "Frozen" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFrozen] = strval( val ); }
                    if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
                    if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
                    if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); }
                    if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
                    if( strcmp( key , "CrimeReason" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReason], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Wanted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWanted] = strval( val ); }
                    if( strcmp( key , "WantedLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedLevel] = strval( val ); }
                    if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
                    if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
                    if( strcmp( key , "WhyLeft" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWhyLeft] = strval( val ); }
                    if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); }
                    if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }
                    if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }
                    if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
                    if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }
                    if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }
                    if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }
                    if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }
                    if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
                    if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
                    if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
                    if( strcmp( key , "CanRobTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRobTime] = strval( val ); }
                    if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
                    if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); }
                    if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }
                    if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }
                    if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); }
                    if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }
                    if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }
                    if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
                    if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }
                    if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }
                    if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); }
                    if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }
                    if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }
                    if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); }
                    if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); }
                    if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }
                    if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); }
                    if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }
                    if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); }
                    if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); }
                    if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
                    if( strcmp( key , "pArmour" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArmour] = floatstr( val ); }
                    if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
                    if( strcmp( key , "InteriorNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInteriorNr] = strval( val ); }
                    if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }
                    if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
                    if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }
                    if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
                    if( strcmp( key , "Car" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey] = strval( val ); }
                    if( strcmp( key , "Car2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey2] = strval( val ); }
                    if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); }
                    if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); }
                    if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
                    if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
                    if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
                    if( strcmp( key , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strval( val ); }
                    if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
                    if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
                    if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
                    if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }
                    if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }
                    if( strcmp( key , "CopLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCopLic] = strval( val ); }
                    if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }
                    if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }
                    if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); }
                    if( strcmp( key , "Watch" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWatch] = strval( val ); }
                    if( strcmp( key , "Crashed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrashed] = strval( val ); }
                    if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
                    if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
                    if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }
                    if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
                    if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }
                    if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }
                    if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); }
                    if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
                    if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
                    if( strcmp( key , "VirWorld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVirWorld] = strval( val ); }
                    if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }
                    if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
                    if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "FishTool" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishTool] = strval( val ); }
                    if( strcmp( key , "WhyLeft" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pWhyLeft], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Note1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote1], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Note1s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote1s] = strval( val ); }
                    if( strcmp( key , "Note2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote2], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Note2s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote2s] = strval( val ); }
                    if( strcmp( key , "Note3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote3], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Note3s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote3s] = strval( val ); }
                    if( strcmp( key , "Note4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote4], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Note4s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote4s] = strval( val ); }
                    if( strcmp( key , "Note5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote5], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Note5s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote5s] = strval( val ); }
                    if( strcmp( key , "InvWeapon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon] = strval( val ); }
                    if( strcmp( key , "InvAmmo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo] = strval( val ); }
                    if( strcmp( key , "InvWeapon2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon2] = strval( val ); }
                    if( strcmp( key , "InvAmmo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo2] = strval( val ); }
                    if( strcmp( key , "InvWeapon3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon3] = strval( val ); }
                    if( strcmp( key , "InvAmmo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo3] = strval( val ); }
                    if( strcmp( key , "InvWeapon4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon4] = strval( val ); }
                    if( strcmp( key , "InvAmmo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo4] = strval( val ); }
                    if( strcmp( key , "InvWeapon5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon5] = strval( val ); }
                    if( strcmp( key , "InvAmmo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo5] = strval( val ); }
                    if( strcmp( key , "InvWeapon6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon6] = strval( val ); }
                    if( strcmp( key , "InvAmmo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo6] = strval( val ); }
                    if( strcmp( key , "Lighter" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLighter] = strval( val ); }
                    if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarettes] = strval( val ); }
                    if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarned] = strval( val ); }
                    if( strcmp( key , "Swat" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSwat] = strval( val ); }
                    if( strcmp( key , "Tactical" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTactical] = strval( val ); }
                    if( strcmp( key , "SpecialF" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpecialF] = strval( val ); }
                    if( strcmp( key , "DutyBanned" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDBanned] = strval( val ); }
                    if( strcmp( key , "OnDuty" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDuty] = strval( val ); }
                    if( strcmp( key , "DDManager" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDM] = strval( val ); }
                    if( strcmp( key , "DDTicket" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDTK] = strval( val ); }
                    if( strcmp( key , "DDSTicket" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDSTK] = strval( val ); }
                    if( strcmp( key , "Fighting" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFS] = strval( val ); }
                    if( strcmp( key , "Boxing" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxiSkill] = strval( val ); }
                    if( strcmp( key , "KneeHead" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKneeSkill] = strval( val ); }
                    if( strcmp( key , "KungFu" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKungSkill] = strval( val ); }
                    if( strcmp( key , "GrabKick" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGrabSkill] = strval( val ); }
                    if( strcmp( key , "Elbow" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pElbowSkill] = strval( val ); }
                    if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCD] = strval( val ); }
                    if( strcmp( key , "Helper" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
                    if( strcmp( key , "HydraDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHydraR] = strval( val ); }
                    if( strcmp( key , "HunterDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHunterR] = strval( val ); }
                    if( strcmp( key , "RhinoDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRhinoR] = strval( val ); }
                    if( strcmp( key , "PredatorDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPredR] = strval( val ); }
                    if( strcmp( key , "ViewPms" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pViewPms] = strval( val ); }
                    if( strcmp( key , "AppearList" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAppearList] = strval( val ); }
                    if( strcmp( key , "PistolSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPistSkill] = strval( val ); }
                    if( strcmp( key , "SilencedSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSilenSkill] = strval( val ); }
                    if( strcmp( key , "DesertSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDesertSkill] = strval( val ); }
                    if( strcmp( key , "ShotgunSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pShotgSkill] = strval( val ); }
                    if( strcmp( key , "SawnoffSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSawnSkill] = strval( val ); }
                    if( strcmp( key , "CombatSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCombSkill] = strval( val ); }
                    if( strcmp( key , "UziSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pUziSkill] = strval( val ); }
                    if( strcmp( key , "SmgSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSmgSkill] = strval( val ); }
                    if( strcmp( key , "Ak47Skill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAkSkill] = strval( val ); }
                    if( strcmp( key , "M4Skill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pM4Skill] = strval( val ); }
                    if( strcmp( key , "TutorialDone" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTutDone] = strval( val ); }
                    if( strcmp( key , "RegularCount" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRegularCount] = strval( val ); }
                    if( strcmp( key , "PassportTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassportTime] = strval( val ); }
                    if( strcmp( key , "OfficerTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOfficerTime] = strval( val ); }
                    if( strcmp( key , "Achievement0" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement0] = strval( val ); }
                    if( strcmp( key , "Achievement1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement1] = strval( val ); }
                    if( strcmp( key , "Achievement2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement2] = strval( val ); }
                    if( strcmp( key , "Achievement3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement3] = strval( val ); }
                    if( strcmp( key , "Achievement4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement4] = strval( val ); }
                    if( strcmp( key , "Achievement5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement5] = strval( val ); }
                    if( strcmp( key , "Achievement6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement6] = strval( val ); }
                    if( strcmp( key , "Achievement7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement7] = strval( val ); }
                    if( strcmp( key , "Achievement8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement8] = strval( val ); }
                    if( strcmp( key , "Achievement9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement9] = strval( val ); }
                    if( strcmp( key , "Achievement10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement10] = strval( val ); }
                    if( strcmp( key , "Achievement11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement11] = strval( val ); }
                    if( strcmp( key , "Achievement12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement12] = strval( val ); }
                    if( strcmp( key , "Achievement13" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement13] = strval( val ); }
                    if( strcmp( key , "Achievement14" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement14] = strval( val ); }
                    if( strcmp( key , "Achievement15" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement15] = strval( val ); }
                    if( strcmp( key , "Achievement16" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement16] = strval( val ); }
                    if( strcmp( key , "Achievement17" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement17] = strval( val ); }
                    if( strcmp( key , "Achievement18" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement18] = strval( val ); }
                    if( strcmp( key , "Achievement19" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement19] = strval( val ); }
                    if( strcmp( key , "Achievement20" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement20] = strval( val ); }
                    if( strcmp( key , "ShiftName" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pShiftName] = strval( val ); }
                    if( strcmp( key , "Weapon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon] = strval( val ); }
                    if( strcmp( key , "Ammo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo] = strval( val ); }
                    if( strcmp( key , "Weapon2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon2] = strval( val ); }
                    if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
                    if( strcmp( key , "Weapon3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon3] = strval( val ); }
                    if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
                    if( strcmp( key , "Weapon4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon4] = strval( val ); }
                    if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
                    if( strcmp( key , "Weapon5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon5] = strval( val ); }
                    if( strcmp( key , "Ammo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo5] = strval( val ); }
                    if( strcmp( key , "Weapon6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon6] = strval( val ); }
                    if( strcmp( key , "Ammo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo6] = strval( val ); }
                    if( strcmp( key , "Weapon7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon7] = strval( val ); }
                    if( strcmp( key , "Ammo7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo7] = strval( val ); }
                    if( strcmp( key , "Weapon8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon8] = strval( val ); }
                    if( strcmp( key , "Ammo8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo8] = strval( val ); }
                    if( strcmp( key , "Weapon9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon9] = strval( val ); }
                    if( strcmp( key , "Ammo9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo9] = strval( val ); }
                    if( strcmp( key , "Weapon10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon10] = strval( val ); }
                    if( strcmp( key , "Ammo10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo10] = strval( val ); }
                    if( strcmp( key , "Weapon11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon11] = strval( val ); }
                    if( strcmp( key , "Ammo11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo11] = strval( val ); }
                    if( strcmp( key , "Weapon12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon12] = strval( val ); }
                    if( strcmp( key , "Ammo12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo12] = strval( val ); }
                    if( strcmp( key , "Atc" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAtc] = strval( val ); }
                    if( strcmp( key , "AtcRadio" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAtcRadio] = strval( val ); }
                    if( strcmp( key , "Pending" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPending] = strval( val ); }
                    if( strcmp( key , "PendingInfo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPendingInfo], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "ChatMode" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChatMode] = strval( val ); }
                    if( strcmp( key , "Punishment1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment1], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Punishment2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment2], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Punishment3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment3], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Punishment4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment4], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Punishment5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment5], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Punishment6" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment6], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Punishment7" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment7], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "Punishment8" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment8], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "NextPunishment" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNextPunishment] = strval( val ); }
                    if( strcmp( key , "Punished" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPunished] = strval( val ); }
                    if( strcmp( key , "TazerBullets" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTazerBullets] = strval( val ); }
                    if( strcmp( key , "Changed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChanged] = strval( val ); }
                    if( strcmp( key , "IP" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pIP], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "LastSeen" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastSeen], val, 0, strlen(val)-1, 255); }
                    if( strcmp( key , "RegistredDate" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pRegistredDate], val, 0, strlen(val)-1, 255); }
                }
                fclose(UserFile);
        }
        else
        {
            fclose(UserFile);
            gPlayerLogTries[playerid] += 1;
            ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_PASSWORD,"Try again, Please Log-In","Wrong password\nWrite your pasword down in order to Log-In","Log-in","Quit");
            if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
            return 1;
        }
        RingTone[playerid] = 20;
        SetRealMoney(playerid, ScriptMoney[playerid]);
        TextDrawShowForPlayer(playerid, Textdraw44);
        TextDrawShowForPlayer(playerid, Textdraw45);
        TextDrawShowForPlayer(playerid, Textdraw49[playerid]);
        TextDrawShowForPlayer(playerid, Textdraw51[playerid]);
        TextDrawShowForPlayer(playerid, Textdraw53[playerid]);
        TextDrawShowForPlayer(playerid, Textdraw55);
        if(CountdownRunning == 1)
        {
            TextDrawShowForPlayer(playerid, Textdraw46);
        }
        if(PlayerInfo[playerid][pReg] == 0)
        {
            PlayerInfo[playerid][pLevel] = 1;
            PlayerInfo[playerid][pHealth] = 50.0;
            PlayerInfo[playerid][pArmour] = 0.0;
            PlayerInfo[playerid][pCash] = 0;
            PlayerInfo[playerid][pPassportTime] = 500;
            PlayerInfo[playerid][pRegularCount] = 144000;
            PlayerInfo[playerid][pInt] = 0;
            PlayerInfo[playerid][pLocal] = 255;
            PlayerInfo[playerid][pTeam] = 3;
            PlayerInfo[playerid][pModel] = 135;
            new randphone = 100000 + random(899999);
            PlayerInfo[playerid][pPnumber] = randphone;
            PlayerInfo[playerid][pPhousekey] = 9999;
            PlayerInfo[playerid][pPcarkey] = 9999;
            PlayerInfo[playerid][pPcarkey2] = 9999;
            PlayerInfo[playerid][pPcarkey3] = 9999;
            PlayerInfo[playerid][pPbiskey] = 9999;
            PlayerInfo[playerid][pAccount] = 0;
            PlayerInfo[playerid][pReg] = 1;
            SafeGivePlayerMoney(playerid, 300);
            new d,m,y;
            new h,mi,s;
            getdate(y,m,d);
            gettime(h,mi,s);
            format(string,sizeof(string),  "%d/%d/%d at %d:%d:%d",d,m,y,h,mi,s);
            strmid(PlayerInfo[playerid][pRegistredDate], string, 0, strlen(string), 255);
        }
        new PlayerNamee[MAX_PLAYER_NAME];
        GetPlayerName(playerid, PlayerNamee, MAX_PLAYER_NAME);
        format(string,sizeof(string),"ERP/Users/AccBans/%s.ban", PlayerNamee);
        if(dini_Exists(string))
        {
            SendClientMessage(playerid, COLOR_YELLOW2, "   [ERP-AC] - Your Are Ban Evading.IF you continue like this.You will never get unbanned.");
            Kick(playerid);
            return 1;
        }
        if(PlayerInfo[playerid][pAddict] == 1)
        {
            Addicttimer = SetTimerEx("Addicttimerr",1200000,false,"d",playerid);
        }
        SetPlayerSkills(playerid);
        if(PlayerInfo[playerid][pPending] == 1)
        {
            format(string, sizeof(string), "[ERP-Info]: %s has just logged in with a pending ban, take action on him!!",playername2);
            SendAdminMessage(COLOR_RLRPGBLUE, string);
        }
        else if(PlayerInfo[playerid][pCK] > 0)
        {
            Kick(playerid);
        }
        if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            admins ++;
        }
        SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
        SafeSetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
        SafeResetPlayerMoney(playerid);
        SafeGivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
        ClearChatbox(playerid, 8);
        SendClientMessage(playerid, COLOR_RLRPGBLUE, "=======================================================================");
        format(string2, sizeof(string2), "Welcome to Europe Roleplay, %s.",playername2);
        SendClientMessage(playerid, COLOR_RLRPGBLUE,string2);
        strmid(PlayerInfo[playerid][pIP], playersip, 0, strlen(playersip), 255);
        if (PlayerInfo[playerid][pRegularRank] > 0)
        {
            SendClientMessage(playerid, COLOR_RLRPGBLUE,"");
        }
        SendClientMessage(playerid, COLOR_RLRPGBLUE, "=======================================================================");
        strmid(PlayerInfo[playerid][pIP], playersip, 0, strlen(playersip), 255);
        if (PlayerInfo[playerid][pAdmin] == 1)
        {
            format(string2, sizeof(string2), "You are logged in as a Trial Admin Assistant",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Admin)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 2)
        {
            format(string2, sizeof(string2), "You are logged in as a Admin Assistant",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Admin)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 3)
        {
            format(string2, sizeof(string2), "You are logged in as an {FF0000}Administrator{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Admin)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 4)
        {
            format(string2, sizeof(string2), "You are logged in as an {FF0000}Senior Administrator{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Admin)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 5)
        {
            format(string2, sizeof(string2), "You are logged in as an {FF0000}Main Administrator{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Admin)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 6)
        {
            format(string2, sizeof(string2), "You are logged in as the {FF0000}Server Head Administrator{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Admin)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 1335)
        {
            format(string2, sizeof(string2), "You are logged in as the {FF0000}Server Co Owner{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Developer)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 1336)
        {
            format(string2, sizeof(string2), "You are logged in as the {458E1D}Server Co Scripter{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Developer)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 1337)
        {
            format(string2, sizeof(string2), "You are logged in as the {458E1D}Server Scripter{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Developer)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        if (PlayerInfo[playerid][pAdmin] == 1338)
        {
            format(string2, sizeof(string2), "You are logged in as the {FF0000}Server Creator{FFFFFF}",PlayerInfo[playerid]);
            SendClientMessage(playerid, COLOR_WHITE,string2);
            format(string, sizeof(string), "((Rank: %d Developer)).",PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        SendClientMessage(playerid, COLOR_RLRPGBLUE, "=======================================================================");
        SendClientMessage(playerid, COLOR_WHITE, " ");

        SetTimerEx("UnsetFirstSpawn", 5000, false, "i", playerid);

        SetTimerEx("UnsetCrash", 5000, false, "i", playerid);
        SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
        if(gTeam[playerid] == 0)
        {
            gTeam[playerid] = 3;
        }
        else
        {
            gTeam[playerid] = PlayerInfo[playerid][pTeam];
        }
        gPlayerLogged[playerid] = 1;
        SpawnPlayer(playerid);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1000);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 0);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 0);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 0);
        if(PlayerInfo[playerid][pAdmin] >= 1336 && PlayerInfo[playerid][pAdmin] != 1337)
        {
            PlayerInfo[playerid][pAppearList] = 1;
        }
        else
        {
            PlayerInfo[playerid][pAppearList] = 1;
        }
        SafeSetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
        SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirWorld]);
        SpawnWorld[playerid] = GetPlayerVirtualWorld(playerid);
        SpawnInterior[playerid] = GetPlayerInterior(playerid);
        if(PlayerInfo[playerid][pBlind] == 1)
        {
            TextDrawShowForPlayer(playerid, Textdraw5);
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "You were Blinded by an administrator in your last session; Use /atalk if need help from Admins.");
        }
        if(PlayerInfo[playerid][pFrozen] == 1)
        {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "You were Freezed by an administrator in your last session; Use /atalk if need help from Admins.");
        }
        if(PlayerInfo[playerid][pMuted] == 1)
        {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "You were Muted by an administrator in your last session; Use /atalk if need help from Admins.");
        }
        if(PlayerInfo[playerid][pNmuted] == 1)
        {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "You where Muted from the Newbie Channel by an administrator in your last session, Use /atalk if need help from Admins.");
        }
        if(PlayerInfo[playerid][pJailed] == 1)
        {
            format(string, sizeof(string), "You are jailed for %d Seconds; Use /atalk if need help from Admins.", PlayerInfo[playerid][pJailTime]);
            SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
            TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
        }
        if(PlayerInfo[playerid][pJailed] == 2)
        {
            format(string, sizeof(string), "You are Prisoned for %d Seconds; Use /atalk if need help from Admins.", PlayerInfo[playerid][pJailTime]);
            SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
            TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
        }
        if(PlayerInfo[playerid][pCrashed] == 0)
        {
            format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~y~   %s", playername2);
        }
        GameTextForPlayer(playerid, tmp2, 5000, 1);
        SendClientMessage(playerid, COLOR_YELLOW, textmotd);
        if(PlayerInfo[playerid][pFMember] < 255)

        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[i][pMaskuse] == 1)
                {
                    ShowPlayerNameTagForPlayer(playerid, i, 0);
                }
            }
        }
        if(!strcmp(playername2, "TheDon", true))
        {
            Untouchable[playerid] = 1;
        }
        if(!strcmp(playername2, "Niko", true))
        {
            Untouchable[playerid] = 1;
        }
        if(PlayerInfo[playerid][pWanted] == 1)
        {
            SetPlayerColor(playerid,0xFFFFFF00);
            WantedPoints[playerid] = PlayerInfo[playerid][pWantedLevel];
            SetPlayerCriminal(playerid, 255, PlayerInfo[playerid][pCrimeReason]);
        }

        if(strlen(dini_Get("ERP/Users/Aliases/alias.txt", playersip)) == 0)
        {
            dini_Set("ERP/Users/Aliases/alias.txt", playersip, playername2);
        }
        else
        {
            if( strfind( dini_Get("ERP/Users/Aliases/alias.txt", playersip), playername2, true) == -1 )
            {
                format(string,sizeof(string),"%s, %s", dini_Get("ERP/Users/Aliases/alias.txt",playersip), playername2);
                dini_Set("ERP/Users/Aliases/alias.txt", playersip, string);
            }
        }

        new y, m, d;
        new h,mi,s;
        getdate(y,m,d);
        gettime(h,mi,s);
        format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has logged in under IP %s.",d,m,y,h,mi,s,playername2,playersip);
        LoginLog(string);
    }
    return 1;
}
Reply
#4

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)