Добро пожаловать на Pro Pawn - Портал о PAWN-скриптинге.
Страница 1 из 3 1 2 3 ПоследняяПоследняя
Показано с 1 по 10 из 29
  1. #1
    Аватар для kala4iks
    Пользователь

    Статус
    Оффлайн
    Регистрация
    27.02.2015
    Сообщений
    317
    Репутация:
    0 ±

    Авторизация администратора.

    Добрый день, столкнулся с такой проблемой, сделал админ авторизацию все работает но есть одно но. Игрок должен вводить свой пароль и только тогда его должно пускать но игрок вводит любое число или любой пароль и его пускает в чем может быть проблема? раньше такого не было.

    PHP код:
    CMD:aduty(playerid,params[])
    {
        new 
    string[124];
        if(
    Player[playerid][pAdmin] == 0)return NoRights;
        if(
    Player[playerid][pADostup] == false)return SPD(playerid,DIALOG_ADOSTUP,DIALOG_STYLE_INPUT,"{33CCFF}Администраторские права","{FFE4B5}У тебя еще не указан пароль к администраторским правам.\nПридумай и введи пароль отличающийся от основного пароля и нажми ''ОК''.","ОК","Закрыть");
        if(
    AdminDuty[playerid] == false)
        {
            
    SPD(playerid,DIALOG_ADUTY,DIALOG_STYLE_PASSWORD,"{33CCFF}Администраторские права","{FFE4B5}Введи свой пароль для получения администраторских прав.","ОК","Закрыть");
            }
            else
            {
            switch(
    GetPVarInt(playerid,"Sex"))
            {
                case 
    1f(string,"%s %s[%d] завершил дежурство.",NameAdmin[Player[playerid][pAdmin]-1],sendername(playerid),playerid);
                case 
    2f(string,"%s %s[%d] завершила дежурство.",NameAdmin[Player[playerid][pAdmin]-1],sendername(playerid),playerid);
            }
            
    ABroadCast(COLOR_YELLOW,string,1);
            
    AdutyPas[playerid] = 0;
            
    AdminDuty[playerid] = false;
        }
        return 
    true;

    PHP код:
        case DIALOG_ADOSTUP:
        {
            if(!
    response)return 1;
            if(!
    strlen(inputtext))return SPD(playerid,DIALOG_ADOSTUP,DIALOG_STYLE_INPUT,"{33CCFF}Администраторские права","{FFE4B5}У тебя еще не указан пароль к администраторским правам.\nПридумай и введи пароль отличающийся от основного пароля и нажми ''ОК''.","ОК","Закрыть");
            if(
    strlen(inputtext) < || strlen(inputtext) > 32)
            {
                
    send(playerid,0xFF0000AA,"[ОШИБКА] {FFFFFF}Длина пароля должна быть в пределах от 6 и до 32 символов.");
                
    ShowPlayerDialog(playerid,DIALOG_ADOSTUP,DIALOG_STYLE_INPUT,"{33CCFF}Администраторские права","{FFE4B5}У тебя еще не указан пароль к администраторским правам.\nПридумай и введи пароль отличающийся от основного пароля и нажми ''ОК''.","ОК","Закрыть");
            }
            else
            {
                
    strmid(Player[playerid][pApass],inputtext,0,32,255);
                
    f(string,"Твой администраторский пароль: %s. Не забывай его, а лучше запиши.",inputtext);
                
    send(playerid,COLOR_GREEN,string);
                switch(
    GetPVarInt(playerid,"Sex"))
                {
                case 
    1f(string,"%s %s[%d] заступил на дежурство.",NameAdmin[Player[playerid][pAdmin]-1],sendername(playerid),playerid);
                case 
    2f(string,"%s %s[%d] заступила на дежурство.",NameAdmin[Player[playerid][pAdmin]-1],sendername(playerid),playerid);
                }
                
    ABroadCast(COLOR_YELLOW,string,1);
                
    send(playerid,COLOR_YELLOW,string);
                
    AdminDuty[playerid] = true;
                
    Player[playerid][pADostup] = true;
            }
        } 

    PHP код:
        case DIALOG_ADUTY:
        {
            if(
    response)
            {
                if(!
    strlen(inputtext))return ShowPlayerDialog(playerid,DIALOG_ADUTY,DIALOG_STYLE_PASSWORD,"{33CCFF}Администраторские права","{FFE4B5}Введи свой пароль для получения администраторских прав.","ОК","Закрыть");
                if(!
    strcmp(inputtext,Player[playerid][pApass],true))
                {
                    switch(
    GetPVarInt(playerid,"Sex"))
                    {
                    case 
    1f(string,"%s %s[%d] заступил на дежурство.",NameAdmin[Player[playerid][pAdmin]-1],sendername(playerid),playerid);
                    case 
    2f(string,"%s %s[%d] заступила на дежурство.",NameAdmin[Player[playerid][pAdmin]-1],sendername(playerid),playerid);
                    }
                    
    ABroadCast(COLOR_YELLOW,string,1);
                    
    send(playerid,COLOR_YELLOW,string);
                    
    AdminDuty[playerid] = true;
                }
                else
                {
                    
    AdutyPas[playerid]++;
                    
    f(string,"[ОШИБКА] {FFFFFF}Неверный пароль от ''/aduty''. Осталось попыток {FF0000}%d{FFFFFF}.",3-AdutyPas[playerid]);
                    
    send(playerid,0xFF0000AA,string);
                    if(
    AdutyPas[playerid] >= 3)
                    {
                        
    f(string,"Античит: %s[%d] был(а) кикнут(а). Причина: Подбор пароля к ''/aduty''.",Player[playerid][pName],playerid);
                        
    ABroadCast(COLOR_YELLOW,string,1);
                        
    send(playerid,COLOR_YELLOW,"Ты был(а) кикнут(а) античитом. Причина: Подбор пароля к ''/aduty''.");
                        
    Kick(playerid);
                    }
                }
                return 
    1;
            }
        } 

  2. #2
    Аватар для DeimoS
    Модератор?

    Статус
    Оффлайн
    Регистрация
    27.01.2014
    Адрес
    Восточный Мордор
    Сообщений
    5,588
    Репутация:
    1984 ±
    Покажи как ты выгружаешь пароль из базы данных.
    pApass, скорее всего, просто пуста (данные не загружены)
    Связаться со мной в VK можно через личные сообщения этой группы
    Заказы не принимаю

    Широко известно, что идеи стоят 0.8333 цента каждая (исходя из рыночной цены 10 центов за дюжину).
    Великих идей полно, на них нет спроса.
    Воплощение идеи в законченную игру требует долгой работы,
    таланта, терпения и креативности, не говоря уж о затратах денег, времени и ресурсов.
    Предложить идею просто, воплотить – вот в чём проблема

    Steve Pavlina

  3. #3
    Аватар для qwezert
    Пользователь

    Статус
    Оффлайн
    Регистрация
    13.06.2016
    Адрес
    Одесса, Украина
    Сообщений
    281
    Репутация:
    51 ±
    На будущее - учитесь дебагать все и вся. Дебаг - ваш лучший друг на пути к созданию любой системы

  4. Пользователь сказал cпасибо:
    _lizard (25.11.2016)
  5. #4
    Аватар для kala4iks
    Пользователь

    Статус
    Оффлайн
    Регистрация
    27.02.2015
    Сообщений
    317
    Репутация:
    0 ±
    Цитата Сообщение от DeimoS Посмотреть сообщение
    Покажи как ты выгружаешь пароль из базы данных.
    pApass, скорее всего, просто пуста (данные не загружены)
    PHP код:
    publics LoadAccount(playerid,password[])
    {
        new 
    rowsfields,string[144];
        
    cache_get_data(rowsfields);
        if(
    rows)
        {
            
    Player[playerid][pID] = cache_get_field_content_int(0"ID"mySQLDB);
            
    cache_get_field_content(0"Nickname"Player[playerid][pName]);
            
    cache_get_field_content(0"Password"Player[playerid][pKey]);
            
    SetPVarInt(playerid"pLevel",cache_get_field_content_int(0"Level"mySQLDB));
            
    Player[playerid][pAdmin] = cache_get_field_content_int(0"Admin"mySQLDB);
            
    SetPVarInt(playerid,"Reg",cache_get_field_content_int(0"Reg"mySQLDB));
            
    SetPVarInt(playerid,"Sex",cache_get_field_content_int(0"Sex"mySQLDB));
            
    SetPVarInt(playerid,"pSpawn",cache_get_field_content_int(0"Spawn"mySQLDB));
            
    SetPVarInt(playerid"pExp",cache_get_field_content_int(0"Exp"mySQLDB));
            
    Player[playerid][pBankPass] = cache_get_field_content_int(0"BankPass"mySQLDB);
            
    SetPVarInt(playerid,"pMoney",cache_get_field_content_int(0"Money"mySQLDB));
            
    Player[playerid][pBank] = cache_get_field_content_int(0"Bank"mySQLDB);
            
    Player[playerid][pMuteTime] = cache_get_field_content_int(0"MuteTime"mySQLDB);
            
    Player[playerid][pJob] = cache_get_field_content_int(0"Job"mySQLDB);
            
    Player[playerid][pPayCheck] = cache_get_field_content_int(0"PayCheck"mySQLDB);
            
    Player[playerid][pJailed] = bool:cache_get_field_content_int(0"Jailed"mySQLDB);
            
    Player[playerid][pJailTime] = cache_get_field_content_int(0"JailTime"mySQLDB);
            
    Player[playerid][pMedicTime] = cache_get_field_content_int(0"MedicTime"mySQLDB);
            
    Player[playerid][pMats] = cache_get_field_content_int(0"Mats"mySQLDB);
            
    Player[playerid][pDrugs] = cache_get_field_content_int(0"Drugs"mySQLDB);
            
    Player[playerid][pJobTime] = cache_get_field_content_int(0"JobTime"mySQLDB);
            
    Player[playerid][pMember] = cache_get_field_content_int(0"Member"mySQLDB);
            
    Player[playerid][pLeader] = cache_get_field_content_int(0"Leader"mySQLDB);
            
    Player[playerid][pZam] = cache_get_field_content_int(0"Zam"mySQLDB);
            
    Player[playerid][pRank] = cache_get_field_content_int(0"Rank"mySQLDB);
            
    Player[playerid][pModel] = cache_get_field_content_int(0"Model"mySQLDB);
            
    Player[playerid][pChar] = cache_get_field_content_int(0"Char"mySQLDB);
            
    Player[playerid][pPbiskey] = cache_get_field_content_int(0"Pbiskey"mySQLDB);
            
    Player[playerid][pTWarns] = cache_get_field_content_int(0"TWarns"mySQLDB);
            
    Player[playerid][pCarLic] = bool:cache_get_field_content_int(0"CarLic"mySQLDB);
            
    Player[playerid][pMotoLic] = bool:cache_get_field_content_int(0"MotoLic"mySQLDB);
            
    Player[playerid][pTruckLic] = bool:cache_get_field_content_int(0"TruckLic"mySQLDB);
            
    Player[playerid][pTruckELic] = bool:cache_get_field_content_int(0"TruckELic"mySQLDB);
            
    Player[playerid][pFlyLic] = bool:cache_get_field_content_int(0"FlyLic"mySQLDB);
            
    Player[playerid][pBoatLic] = bool:cache_get_field_content_int(0"BoatLic"mySQLDB);
            
    Player[playerid][pSD] = bool:cache_get_field_content_int(0"SD"mySQLDB);
            
    Player[playerid][pGunLic] = bool:cache_get_field_content_int(0"GunLic"mySQLDB);
            
    Player[playerid][pTaxiLic] = bool:cache_get_field_content_int(0"TaxiLic"mySQLDB);
            
    Player[playerid][pGruzSkill] = cache_get_field_content_int(0"GruzSkill"mySQLDB);
            
    Player[playerid][pDrugSkill] = cache_get_field_content_int(0"DrugSkill"mySQLDB);
            
    Player[playerid][pGunSkill] = cache_get_field_content_int(0"GunSkill"mySQLDB);
            
    Player[playerid][pCarSkill] = cache_get_field_content_int(0"CarSkill"mySQLDB);
            
    Player[playerid][pJackSkill] = cache_get_field_content_int(0"JackSkill"mySQLDB);
            
    Player[playerid][pRobSkill] = cache_get_field_content_int(0"RobSkill"mySQLDB);
            
    Player[playerid][pRobHouseSkill] = cache_get_field_content_int(0"RobHouseSkill"mySQLDB);
            
    Player[playerid][pTimePizdanul] = cache_get_field_content_int(0"TimePizdanul"mySQLDB);
            
    Player[playerid][pRobHouseTime] = cache_get_field_content_int(0"RobHouseTime"mySQLDB);
            
    Player[playerid][pMechSkill] = cache_get_field_content_int(0"MechSkill"mySQLDB);
            
    Player[playerid][pTruckSkill] = cache_get_field_content_int(0"TruckSkill"mySQLDB);
            
    Player[playerid][pDetSkill] = cache_get_field_content_int(0"DetSkill"mySQLDB);
            
    Player[playerid][pHeadValue] = cache_get_field_content_int(0"HeadValue"mySQLDB);
            
    Player[playerid][pHunterValue] = cache_get_field_content_int(0"HunterValue"mySQLDB);
            
    Player[playerid][pTruckETime] = cache_get_field_content_int(0"TruckETime"mySQLDB);
            
    Player[playerid][pPayDay] = cache_get_field_content_int(0"PayDay"mySQLDB);
            
    Player[playerid][pWarns] = cache_get_field_content_int(0"Warns"mySQLDB);
            
    Player[playerid][pBoxing] = bool:cache_get_field_content_int(0"Boxing"mySQLDB);
            
    Player[playerid][pKunfu] = bool:cache_get_field_content_int(0"Kunfu"mySQLDB);
            
    Player[playerid][pKneehead] = bool:cache_get_field_content_int(0"Kneehead"mySQLDB);
            
    Player[playerid][pGrabkick] = bool:cache_get_field_content_int(0"Grabkick"mySQLDB);
            
    Player[playerid][pFStyle] = cache_get_field_content_int(0"FStyle"mySQLDB);
            
    Player[playerid][pRope] = bool:cache_get_field_content_int(0"Rope"mySQLDB);
            
    Player[playerid][pCheatPassword] = bool:cache_get_field_content_int(0"CheatPassword"mySQLDB);
            
    Player[playerid][pGPS] = bool:cache_get_field_content_int(0"GPS"mySQLDB);
            
    Player[playerid][pSigs] = cache_get_field_content_int(0"Sigs"mySQLDB);
            
    Player[playerid][pPivo] = cache_get_field_content_int(0"Pivo"mySQLDB);
            
    Player[playerid][pWanted] = cache_get_field_content_int(0"Wanted"mySQLDB);
            
    Player[playerid][pRobTime] = cache_get_field_content_int(0"RobTime"mySQLDB);
            
    Player[playerid][pJackTime] = cache_get_field_content_int(0"JackTime"mySQLDB);
            
    Player[playerid][pAdminOnline] = cache_get_field_content_int(0"AdminOnline"mySQLDB);
            
    SetPVarInt(playerid,"pVip",cache_get_field_content_int(0"Vip"mySQLDB));
            
    Player[playerid][pDonate] = cache_get_field_content_int(0"Donate"mySQLDB);
            
    Player[playerid][pKvest_1] = bool:cache_get_field_content_int(0"Kvest_1"mySQLDB);
            
    Player[playerid][pKvest_2] = bool:cache_get_field_content_int(0"Kvest_2"mySQLDB);
            
    Player[playerid][pKvest_3] = bool:cache_get_field_content_int(0"Kvest_3"mySQLDB);
            
    Player[playerid][pKvest_4] = bool:cache_get_field_content_int(0"Kvest_4"mySQLDB);
            
    Player[playerid][pKvest_5] = bool:cache_get_field_content_int(0"Kvest_5"mySQLDB);
            
    Player[playerid][pKvest_6] = bool:cache_get_field_content_int(0"Kvest_6"mySQLDB);
            
    Player[playerid][pKvest_7] = bool:cache_get_field_content_int(0"Kvest_7"mySQLDB);
            
    Player[playerid][pKvest_8] = bool:cache_get_field_content_int(0"Kvest_8"mySQLDB);
            
    Player[playerid][pKvest_9] = bool:cache_get_field_content_int(0"Kvest_9"mySQLDB);
            
    Player[playerid][pKvest_10] = bool:cache_get_field_content_int(0"Kvest_10"mySQLDB);
            
    Player[playerid][pKvest_11] = bool:cache_get_field_content_int(0"Kvest_11"mySQLDB);
            
    Player[playerid][pKvest_12] = bool:cache_get_field_content_int(0"Kvest_12"mySQLDB);
            
    cache_get_field_content(0"Repost"Player[playerid][pRepost]);
            
    Player[playerid][pAdminLeader] = bool:cache_get_field_content_int(0"AdmLeader"mySQLDB);
            
    Player[playerid][pAdminBan] = bool:cache_get_field_content_int(0"AdmBan"mySQLDB);
            
    Player[playerid][pAdminSkripter] = bool:cache_get_field_content_int(0"AdmSkript"mySQLDB);
            
    Player[playerid][pJailBlock] = bool:cache_get_field_content_int(0"JailPrice"mySQLDB);
            
    Player[playerid][pFMuteTime] = cache_get_field_content_int(0"Fmute"mySQLDB);
            
    Player[playerid][pFrisk] = cache_get_field_content_int(0"Frisk"mySQLDB);
            
    cache_get_field_content(0"Apass"Player[playerid][pApass]); // Загрузка пароля админа. 
            
    Player[playerid][pADostup] = bool:cache_get_field_content_int(0"ADostup"mySQLDB);
            
    SetPVarInt(playerid,"JoKvestStep",cache_get_field_content_int(0"JoStep"mySQLDB));
            
    SetPVarInt(playerid"pLogged",1);
            
    Logged[playerid] = true;
            
    DisablePlayerCheckpoint(playerid);
            new 
    ip[MAX_PLAYER_NAME];
            
    GetPlayerIp(playerid,ip,sizeof(ip));
            
    ConnectIP[playerid] = ip;
            if (
    Player[playerid][pAdmin] == 0)
            {
                
    f(string"Подключение: %s[%d] || IP: {FFFFFF}%s"sendername(playerid),playerid,ip);
                
    ABroadCast(COLOR_GREY,string,1);
            }
            if (
    Player[playerid][pAdmin] != 0)
            {
                
    f(string"Подключение: %s[%d] || IP: {00D900}%s"sendername(playerid),playerid,ip);
                
    ABroadCast(COLOR_GREY,string,1);
            }
            for(new 
    i=1<= HOMEi++)
            {
                if(!
    strcmp(HouseInfo[i][hOwner],sendername(playerid),true) && HouseInfo[i][hOwned] == 1)
                {
                    
    Player[playerid][pPhousekey] = i;
                    break;
                }
            }
            
    /*mysql_format(mySQLDB,string, sizeof(string), "SELECT ID FROM house WHERE Owner = '%s'", sendername(playerid));
            mysql_function_query(mySQLDB, string, true, "CallbackGiveHouse", "d", playerid);*/
            
    SetPlayerScore(playeridGetPVarInt(playerid"pLevel"));
            
    SetPlayerWantedLevel(playerid,Player[playerid][pWanted]);
            
    TextDrawShowForPlayer(playerid,ServerTime);
            
    TextDrawShowForPlayer(playerid,ServerDate);
            
    TextDrawShowForPlayer(playerid,ServerLogo);
            
    SetPlayerColor(playerid,0xFFFFFF80);
            
    TeleportTime[playerid] = 10;
            
    DisablePlayerCheckpoint(playerid);
            
    PMOnline[playerid] = false;
            
    SpawnPlayer(playerid),OnPlayerReSpawn(playerid);
            if(
    Player[playerid][pAdmin] != 0)send(playerid,0xFFFF00AA,"Для получения администраторских прав, используйте команду ''/aduty''.");
            
    //Проверка на личный кар.
            //new CarCheckString[128];
            //mysql_format(mySQLDB,CarCheckString, sizeof(CarCheckString), "SELECT * FROM "TABLE_VEHICLE_PLAYER" WHERE `Owner` = '%s'", sendername(playerid));
            //mysql_function_query(mySQLDB, string, true, "LoadPlayerAuto", "d", playerid);
            //send(playerid,COLOR_ANTICHEAT,"[UniteD: Guard] {ffffff}Идёт поиск личных авто привязанных к вашему аккаунту...");
            
    return true;
        }
        else
        {
            
    ErrorPas[playerid]++;
            
    f(string,"[ОШИБКА] {FFFFFF}Неверный пароль. Осталось попыток: {FF0000}%d{FFFFFF}.",3-ErrorPas[playerid]);
            
    send(playerid,0xFF0000AA,string);
            if(
    ErrorPas[playerid] >= 3)
            {
                switch(
    GetPVarInt(playerid,"Sex"))
                {
                    case 
    1:f(string,"Античит: %s[%d] был кикнут. Причина: Подбор пароля.",Player[playerid][pName],playerid);
                    case 
    2:f(string,"Античит: %s[%d] была кикнута. Причина: Подбор пароля.",Player[playerid][pName],playerid);
                }
                
    ABroadCast(0xFFFF00AA,string,1);
                
    send(playerid,0xFFFF00AA,"Вы были кикнуты античитом. Причина: Подбор пароля.");
                
    SetTimerEx("KickFix",1000,0,"i",playerid);
                return 
    true;
            }
            
    ShowLogin(playerid);
        }
        return 
    false;


  6. #5
    Аватар для DeimoS
    Модератор?

    Статус
    Оффлайн
    Регистрация
    27.01.2014
    Адрес
    Восточный Мордор
    Сообщений
    5,588
    Репутация:
    1984 ±
    структуру БД покажи + удостоверься, что в БД пароль записан
    Связаться со мной в VK можно через личные сообщения этой группы
    Заказы не принимаю

    Широко известно, что идеи стоят 0.8333 цента каждая (исходя из рыночной цены 10 центов за дюжину).
    Великих идей полно, на них нет спроса.
    Воплощение идеи в законченную игру требует долгой работы,
    таланта, терпения и креативности, не говоря уж о затратах денег, времени и ресурсов.
    Предложить идею просто, воплотить – вот в чём проблема

    Steve Pavlina

  7. #6
    Аватар для kala4iks
    Пользователь

    Статус
    Оффлайн
    Регистрация
    27.02.2015
    Сообщений
    317
    Репутация:
    0 ±
    Цитата Сообщение от DeimoS Посмотреть сообщение
    структуру БД покажи + удостоверься, что в БД пароль записан
    С сахронением что-то не понятное оно вроде сохроняется но стоит зайти выйти еще раз зайти и выйти бывает просто напросто слетает.


  8. #7
    Аватар для DeimoS
    Модератор?

    Статус
    Оффлайн
    Регистрация
    27.01.2014
    Адрес
    Восточный Мордор
    Сообщений
    5,588
    Репутация:
    1984 ±
    Показывай как сохраняешь
    Связаться со мной в VK можно через личные сообщения этой группы
    Заказы не принимаю

    Широко известно, что идеи стоят 0.8333 цента каждая (исходя из рыночной цены 10 центов за дюжину).
    Великих идей полно, на них нет спроса.
    Воплощение идеи в законченную игру требует долгой работы,
    таланта, терпения и креативности, не говоря уж о затратах денег, времени и ресурсов.
    Предложить идею просто, воплотить – вот в чём проблема

    Steve Pavlina

  9. #8
    Аватар для kala4iks
    Пользователь

    Статус
    Оффлайн
    Регистрация
    27.02.2015
    Сообщений
    317
    Репутация:
    0 ±
    Цитата Сообщение от DeimoS Посмотреть сообщение
    Показывай как сохраняешь
    enum pInfo

    PHP код:
    pApass[MAX_PLAYER_NAME
    PHP код:
            case DIALOG_ADOSTUP:
        {
            if(!
    response)return 1;
            if(!
    strlen(inputtext))return SPD(playerid,DIALOG_ADOSTUP,DIALOG_STYLE_INPUT,"{33CCFF}Администраторские права","{FFE4B5}У тебя еще не указан пароль к администраторским правам.\nПридумай и введи пароль отличающийся от основного пароля и нажми ''ОК''.","ОК","Закрыть");
            if(
    strlen(inputtext) < || strlen(inputtext) > 32)
            {
                
    send(playerid,0xFF0000AA,"[ОШИБКА] {FFFFFF}Длина пароля должна быть в пределах от 6 и до 32 символов.");
                
    ShowPlayerDialog(playerid,DIALOG_ADOSTUP,DIALOG_STYLE_INPUT,"{33CCFF}Администраторские права","{FFE4B5}У тебя еще не указан пароль к администраторским правам.\nПридумай и введи пароль отличающийся от основного пароля и нажми ''ОК''.","ОК","Закрыть");
            }
            else
            {
                
    strmid(Player[playerid][pApass],inputtext,0,strlen(inputtext),255);
                
    f(string,"Твой администраторский пароль: %s. Не забывай его, а лучше запиши.",inputtext);
                
    send(playerid,COLOR_GREEN,string);
                switch(
    GetPVarInt(playerid,"Sex"))
                {
                case 
    1f(string,"%s %s[%d] заступил на дежурство.",NameAdmin[Player[playerid][pAdmin]-1],sendername(playerid),playerid);
                case 
    2f(string,"%s %s[%d] заступила на дежурство.",NameAdmin[Player[playerid][pAdmin]-1],sendername(playerid),playerid);
                }
                
    ABroadCast(COLOR_YELLOW,string,1);
                
    send(playerid,COLOR_YELLOW,string);
                
    AdminDuty[playerid] = true;
                
    Player[playerid][pADostup] = true;
                
    SaveAccount(playerid);
            }
        } 
    PHP код:
    stock SaveAccount(playerid)
    {
        if(
    GetPVarInt(playerid"pLogged") == 1)
        {
            
    //CheckMySQLConnection();
            
    new str[2028];
            
    mysql_format(mySQLDB,str,sizeof(str),"UPDATE "TABLE_ACCOUNT" SET ");
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Level`= '%i', ",str,GetPVarInt(playerid,"pLevel"));
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Admin`= '%i', ",str,Player[playerid][pAdmin]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Reg`= '%i', ",str,GetPVarInt(playerid,"Reg"));
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Sex`= '%i', ",str,GetPVarInt(playerid,"Sex"));
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Spawn`= '%i', ",str,GetPVarInt(playerid"pSpawn"));
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Exp`= '%i', ",str,GetPVarInt(playerid,"pExp"));
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`BankPass`= '%i', ",str,Player[playerid][pBankPass]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Money`= '%i', ",str,GetPVarInt(playerid,"pMoney"));
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Bank`= '%i', ",str,Player[playerid][pBank]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`MuteTime`= '%i', ",str,Player[playerid][pMuteTime]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Job`= '%i', ",str,Player[playerid][pJob]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`PayCheck`= '%i', ",str,Player[playerid][pPayCheck]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Jailed`= '%i', ",str,Player[playerid][pJailed]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`JailTime`= '%i', ",str,Player[playerid][pJailTime]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`MedicTime`= '%i', ",str,Player[playerid][pMedicTime]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Mats`= '%i', ",str,Player[playerid][pMats]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Drugs`= '%i', ",str,Player[playerid][pDrugs]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`JobTime`= '%i', ",str,Player[playerid][pJobTime]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Member`= '%i', ",str,Player[playerid][pMember]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Leader`= '%i', ",str,Player[playerid][pLeader]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Zam`= '%i', ",str,Player[playerid][pZam]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Rank`= '%i', ",str,Player[playerid][pRank]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Model`= '%i', ",str,Player[playerid][pModel]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Char`= '%i', ",str,Player[playerid][pChar]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Pbiskey`= '%i', ",str,Player[playerid][pPbiskey]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`TWarns`= '%i', ",str,Player[playerid][pTWarns]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`CarLic`= '%i', ",str,Player[playerid][pCarLic]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`MotoLic`= '%i', ",str,Player[playerid][pMotoLic]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`TruckLic`= '%i', ",str,Player[playerid][pTruckLic]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`TruckELic`= '%i', ",str,Player[playerid][pTruckELic]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`FlyLic`= '%i', ",str,Player[playerid][pFlyLic]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`BoatLic`= '%i', ",str,Player[playerid][pBoatLic]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`SD`= '%i', ",str,Player[playerid][pSD]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`GunLic`= '%i', ",str,Player[playerid][pGunLic]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`TaxiLic`= '%i', ",str,Player[playerid][pTaxiLic]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`GruzSkill`= '%i', ",str,Player[playerid][pGruzSkill]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`DrugSkill`= '%i', ",str,Player[playerid][pDrugSkill]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`GunSkill`= '%i', ",str,Player[playerid][pGunSkill]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`CarSkill`= '%i', ",str,Player[playerid][pCarSkill]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`JackSkill`= '%i', ",str,Player[playerid][pJackSkill]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`RobSkill`= '%i', ",str,Player[playerid][pRobSkill]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`RobHouseSkill`= '%i', ",str,Player[playerid][pRobHouseSkill]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`TimePizdanul`= '%i', ",str,Player[playerid][pTimePizdanul]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`RobHouseTime`= '%i', ",str,Player[playerid][pRobHouseTime]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`MechSkill`= '%i', ",str,Player[playerid][pMechSkill]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`TruckSkill`= '%i', ",str,Player[playerid][pTruckSkill]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`DetSkill`= '%i', ",str,Player[playerid][pDetSkill]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`HeadValue`= '%i', ",str,Player[playerid][pHeadValue]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`HunterValue`= '%i', ",str,Player[playerid][pHunterValue]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`TruckETime`= '%i', ",str,Player[playerid][pTruckETime]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`PayDay`= '%i', ",str,Player[playerid][pPayDay]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Warns`= '%i', ",str,Player[playerid][pWarns]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Boxing`= '%i', ",str,Player[playerid][pBoxing]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kunfu`= '%i', ",str,Player[playerid][pKunfu]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kneehead`= '%i', ",str,Player[playerid][pKneehead]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Grabkick`= '%i', ",str,Player[playerid][pGrabkick]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`FStyle`= '%i', ",str,Player[playerid][pFStyle]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Rope`= '%i', ",str,Player[playerid][pRope]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`CheatPassword`= '%i', ",str,Player[playerid][pCheatPassword]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`GPS`= '%i', ",str,Player[playerid][pGPS]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Sigs`= '%i', ",str,Player[playerid][pSigs]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Pivo`= '%i', ",str,Player[playerid][pPivo]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Wanted`= '%i', ",str,Player[playerid][pWanted]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`RobTime`= '%i', ",str,Player[playerid][pRobTime]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`JackTime`= '%i', ",str,Player[playerid][pJackTime]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`AdminOnline`= '%i', ",str,Player[playerid][pAdminOnline]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Vip`= '%i', ",str,GetPVarInt(playerid,"pVip"));
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Donate`= '%i', ",str,Player[playerid][pDonate]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_1`= '%i', ",str,Player[playerid][pKvest_1]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_2`= '%i', ",str,Player[playerid][pKvest_2]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_3`= '%i', ",str,Player[playerid][pKvest_3]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_4`= '%i', ",str,Player[playerid][pKvest_4]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_5`= '%i', ",str,Player[playerid][pKvest_5]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_6`= '%i', ",str,Player[playerid][pKvest_6]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_7`= '%i', ",str,Player[playerid][pKvest_7]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_8`= '%i', ",str,Player[playerid][pKvest_8]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_9`= '%i', ",str,Player[playerid][pKvest_9]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_10`= '%i', ",str,Player[playerid][pKvest_10]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_11`= '%i', ",str,Player[playerid][pKvest_11]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Kvest_12`= '%i', ",str,Player[playerid][pKvest_12]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Repost`= '%s', ",str,Player[playerid][pRepost]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`AdmLeader`= '%i', ",str,Player[playerid][pAdminLeader]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`AdmBan`= '%i', ",str,Player[playerid][pAdminBan]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`AdmSkript`= '%i', ",str,Player[playerid][pAdminSkripter]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`JailBlock`= '%i', ",str,Player[playerid][pJailBlock]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Fmute`= '%i', ",str,Player[playerid][pFMuteTime]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Frisk`= '%i', ",str,Player[playerid][pFrisk]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`ADostup`= '%i', ",str,Player[playerid][pADostup]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`Apass`= '%s', ",str,Player[playerid][pApass]);
            
    mysql_format(mySQLDB,str,sizeof(str),"%s`JoStep` = '%i' WHERE `Nickname` = '%s'",str,GetPVarInt(playerid,"JoKvestStep"),sendername(playerid));
            
    mysql_function_query(mySQLDBstrfalse"""");
            
    //mysql_query(str);
        
    }
        return 
    true;

    publics LoadAccount(playerid,password[])

    PHP код:
    publics LoadAccount(playerid,password[])
    {
        new 
    rowsfields,string[144];
        
    cache_get_data(rowsfields);
        if(
    rows)
        {
            
    Player[playerid][pID] = cache_get_field_content_int(0"ID"mySQLDB);
            
    cache_get_field_content(0"Nickname"Player[playerid][pName]);
            
    cache_get_field_content(0"Password"Player[playerid][pKey]);
            
    SetPVarInt(playerid"pLevel",cache_get_field_content_int(0"Level"mySQLDB));
            
    Player[playerid][pAdmin] = cache_get_field_content_int(0"Admin"mySQLDB);
            
    SetPVarInt(playerid,"Reg",cache_get_field_content_int(0"Reg"mySQLDB));
            
    SetPVarInt(playerid,"Sex",cache_get_field_content_int(0"Sex"mySQLDB));
            
    SetPVarInt(playerid,"pSpawn",cache_get_field_content_int(0"Spawn"mySQLDB));
            
    SetPVarInt(playerid"pExp",cache_get_field_content_int(0"Exp"mySQLDB));
            
    Player[playerid][pBankPass] = cache_get_field_content_int(0"BankPass"mySQLDB);
            
    SetPVarInt(playerid,"pMoney",cache_get_field_content_int(0"Money"mySQLDB));
            
    Player[playerid][pBank] = cache_get_field_content_int(0"Bank"mySQLDB);
            
    Player[playerid][pMuteTime] = cache_get_field_content_int(0"MuteTime"mySQLDB);
            
    Player[playerid][pJob] = cache_get_field_content_int(0"Job"mySQLDB);
            
    Player[playerid][pPayCheck] = cache_get_field_content_int(0"PayCheck"mySQLDB);
            
    Player[playerid][pJailed] = bool:cache_get_field_content_int(0"Jailed"mySQLDB);
            
    Player[playerid][pJailTime] = cache_get_field_content_int(0"JailTime"mySQLDB);
            
    Player[playerid][pMedicTime] = cache_get_field_content_int(0"MedicTime"mySQLDB);
            
    Player[playerid][pMats] = cache_get_field_content_int(0"Mats"mySQLDB);
            
    Player[playerid][pDrugs] = cache_get_field_content_int(0"Drugs"mySQLDB);
            
    Player[playerid][pJobTime] = cache_get_field_content_int(0"JobTime"mySQLDB);
            
    Player[playerid][pMember] = cache_get_field_content_int(0"Member"mySQLDB);
            
    Player[playerid][pLeader] = cache_get_field_content_int(0"Leader"mySQLDB);
            
    Player[playerid][pZam] = cache_get_field_content_int(0"Zam"mySQLDB);
            
    Player[playerid][pRank] = cache_get_field_content_int(0"Rank"mySQLDB);
            
    Player[playerid][pModel] = cache_get_field_content_int(0"Model"mySQLDB);
            
    Player[playerid][pChar] = cache_get_field_content_int(0"Char"mySQLDB);
            
    Player[playerid][pPbiskey] = cache_get_field_content_int(0"Pbiskey"mySQLDB);
            
    Player[playerid][pTWarns] = cache_get_field_content_int(0"TWarns"mySQLDB);
            
    Player[playerid][pCarLic] = bool:cache_get_field_content_int(0"CarLic"mySQLDB);
            
    Player[playerid][pMotoLic] = bool:cache_get_field_content_int(0"MotoLic"mySQLDB);
            
    Player[playerid][pTruckLic] = bool:cache_get_field_content_int(0"TruckLic"mySQLDB);
            
    Player[playerid][pTruckELic] = bool:cache_get_field_content_int(0"TruckELic"mySQLDB);
            
    Player[playerid][pFlyLic] = bool:cache_get_field_content_int(0"FlyLic"mySQLDB);
            
    Player[playerid][pBoatLic] = bool:cache_get_field_content_int(0"BoatLic"mySQLDB);
            
    Player[playerid][pSD] = bool:cache_get_field_content_int(0"SD"mySQLDB);
            
    Player[playerid][pGunLic] = bool:cache_get_field_content_int(0"GunLic"mySQLDB);
            
    Player[playerid][pTaxiLic] = bool:cache_get_field_content_int(0"TaxiLic"mySQLDB);
            
    Player[playerid][pGruzSkill] = cache_get_field_content_int(0"GruzSkill"mySQLDB);
            
    Player[playerid][pDrugSkill] = cache_get_field_content_int(0"DrugSkill"mySQLDB);
            
    Player[playerid][pGunSkill] = cache_get_field_content_int(0"GunSkill"mySQLDB);
            
    Player[playerid][pCarSkill] = cache_get_field_content_int(0"CarSkill"mySQLDB);
            
    Player[playerid][pJackSkill] = cache_get_field_content_int(0"JackSkill"mySQLDB);
            
    Player[playerid][pRobSkill] = cache_get_field_content_int(0"RobSkill"mySQLDB);
            
    Player[playerid][pRobHouseSkill] = cache_get_field_content_int(0"RobHouseSkill"mySQLDB);
            
    Player[playerid][pTimePizdanul] = cache_get_field_content_int(0"TimePizdanul"mySQLDB);
            
    Player[playerid][pRobHouseTime] = cache_get_field_content_int(0"RobHouseTime"mySQLDB);
            
    Player[playerid][pMechSkill] = cache_get_field_content_int(0"MechSkill"mySQLDB);
            
    Player[playerid][pTruckSkill] = cache_get_field_content_int(0"TruckSkill"mySQLDB);
            
    Player[playerid][pDetSkill] = cache_get_field_content_int(0"DetSkill"mySQLDB);
            
    Player[playerid][pHeadValue] = cache_get_field_content_int(0"HeadValue"mySQLDB);
            
    Player[playerid][pHunterValue] = cache_get_field_content_int(0"HunterValue"mySQLDB);
            
    Player[playerid][pTruckETime] = cache_get_field_content_int(0"TruckETime"mySQLDB);
            
    Player[playerid][pPayDay] = cache_get_field_content_int(0"PayDay"mySQLDB);
            
    Player[playerid][pWarns] = cache_get_field_content_int(0"Warns"mySQLDB);
            
    Player[playerid][pBoxing] = bool:cache_get_field_content_int(0"Boxing"mySQLDB);
            
    Player[playerid][pKunfu] = bool:cache_get_field_content_int(0"Kunfu"mySQLDB);
            
    Player[playerid][pKneehead] = bool:cache_get_field_content_int(0"Kneehead"mySQLDB);
            
    Player[playerid][pGrabkick] = bool:cache_get_field_content_int(0"Grabkick"mySQLDB);
            
    Player[playerid][pFStyle] = cache_get_field_content_int(0"FStyle"mySQLDB);
            
    Player[playerid][pRope] = bool:cache_get_field_content_int(0"Rope"mySQLDB);
            
    Player[playerid][pCheatPassword] = bool:cache_get_field_content_int(0"CheatPassword"mySQLDB);
            
    Player[playerid][pGPS] = bool:cache_get_field_content_int(0"GPS"mySQLDB);
            
    Player[playerid][pSigs] = cache_get_field_content_int(0"Sigs"mySQLDB);
            
    Player[playerid][pPivo] = cache_get_field_content_int(0"Pivo"mySQLDB);
            
    Player[playerid][pWanted] = cache_get_field_content_int(0"Wanted"mySQLDB);
            
    Player[playerid][pRobTime] = cache_get_field_content_int(0"RobTime"mySQLDB);
            
    Player[playerid][pJackTime] = cache_get_field_content_int(0"JackTime"mySQLDB);
            
    Player[playerid][pAdminOnline] = cache_get_field_content_int(0"AdminOnline"mySQLDB);
            
    SetPVarInt(playerid,"pVip",cache_get_field_content_int(0"Vip"mySQLDB));
            
    Player[playerid][pDonate] = cache_get_field_content_int(0"Donate"mySQLDB);
            
    Player[playerid][pKvest_1] = bool:cache_get_field_content_int(0"Kvest_1"mySQLDB);
            
    Player[playerid][pKvest_2] = bool:cache_get_field_content_int(0"Kvest_2"mySQLDB);
            
    Player[playerid][pKvest_3] = bool:cache_get_field_content_int(0"Kvest_3"mySQLDB);
            
    Player[playerid][pKvest_4] = bool:cache_get_field_content_int(0"Kvest_4"mySQLDB);
            
    Player[playerid][pKvest_5] = bool:cache_get_field_content_int(0"Kvest_5"mySQLDB);
            
    Player[playerid][pKvest_6] = bool:cache_get_field_content_int(0"Kvest_6"mySQLDB);
            
    Player[playerid][pKvest_7] = bool:cache_get_field_content_int(0"Kvest_7"mySQLDB);
            
    Player[playerid][pKvest_8] = bool:cache_get_field_content_int(0"Kvest_8"mySQLDB);
            
    Player[playerid][pKvest_9] = bool:cache_get_field_content_int(0"Kvest_9"mySQLDB);
            
    Player[playerid][pKvest_10] = bool:cache_get_field_content_int(0"Kvest_10"mySQLDB);
            
    Player[playerid][pKvest_11] = bool:cache_get_field_content_int(0"Kvest_11"mySQLDB);
            
    Player[playerid][pKvest_12] = bool:cache_get_field_content_int(0"Kvest_12"mySQLDB);
            
    cache_get_field_content(0"Repost"Player[playerid][pRepost]);
            
    Player[playerid][pAdminLeader] = bool:cache_get_field_content_int(0"AdmLeader"mySQLDB);
            
    Player[playerid][pAdminBan] = bool:cache_get_field_content_int(0"AdmBan"mySQLDB);
            
    Player[playerid][pAdminSkripter] = bool:cache_get_field_content_int(0"AdmSkript"mySQLDB);
            
    Player[playerid][pJailBlock] = bool:cache_get_field_content_int(0"JailPrice"mySQLDB);
            
    Player[playerid][pFMuteTime] = cache_get_field_content_int(0"Fmute"mySQLDB);
            
    Player[playerid][pFrisk] = cache_get_field_content_int(0"Frisk"mySQLDB);
            
    cache_get_field_content(0"Apass"Player[playerid][pApass]);
            
    Player[playerid][pADostup] = bool:cache_get_field_content_int(0"ADostup"mySQLDB);
            
    SetPVarInt(playerid,"JoKvestStep",cache_get_field_content_int(0"JoStep"mySQLDB));
            
    SetPVarInt(playerid"pLogged",1);
            
    Logged[playerid] = true;
            
    DisablePlayerCheckpoint(playerid);
            new 
    ip[MAX_PLAYER_NAME];
            
    GetPlayerIp(playerid,ip,sizeof(ip));
            
    ConnectIP[playerid] = ip;
            if (
    Player[playerid][pAdmin] == 0)
            {
                
    f(string"Ïîäêëþ÷åíèå: %s[%d] || IP: {FFFFFF}%s"sendername(playerid),playerid,ip);
                
    ABroadCast(COLOR_GREY,string,1);
            }
            if (
    Player[playerid][pAdmin] != 0)
            {
                
    f(string"Ïîäêëþ÷åíèå: %s[%d] || IP: {00D900}%s"sendername(playerid),playerid,ip);
                
    ABroadCast(COLOR_GREY,string,1);
            }
            for(new 
    i=1<= HOMEi++)
            {
                if(!
    strcmp(HouseInfo[i][hOwner],sendername(playerid),true) && HouseInfo[i][hOwned] == 1)
                {
                    
    Player[playerid][pPhousekey] = i;
                    break;
                }
            }
            
    /*mysql_format(mySQLDB,string, sizeof(string), "SELECT ID FROM house WHERE Owner = '%s'", sendername(playerid));
            mysql_function_query(mySQLDB, string, true, "CallbackGiveHouse", "d", playerid);*/
            
    SetPlayerScore(playeridGetPVarInt(playerid"pLevel"));
            
    SetPlayerWantedLevel(playerid,Player[playerid][pWanted]);
            
    TextDrawShowForPlayer(playerid,ServerTime);
            
    TextDrawShowForPlayer(playerid,ServerDate);
            
    TextDrawShowForPlayer(playerid,ServerLogo);
            
    SetPlayerColor(playerid,0xFFFFFF80);
            
    TeleportTime[playerid] = 10;
            
    DisablePlayerCheckpoint(playerid);
            
    PMOnline[playerid] = false;
            
    SpawnPlayer(playerid),OnPlayerReSpawn(playerid);
            if(
    Player[playerid][pAdmin] != 0)send(playerid,0xFFFF00AA,"Äëÿ ïîëó÷åíèÿ àäìèíèñòðàòîðñêèõ ïðàâ, èñïîëüçóéòå êîìàíäó ''/aduty''.");
            
    //Ïðîâåðêà íà ëè÷íûé êàð.
            //new CarCheckString[128];
            //mysql_format(mySQLDB,CarCheckString, sizeof(CarCheckString), "SELECT * FROM "TABLE_VEHICLE_PLAYER" WHERE `Owner` = '%s'", sendername(playerid));
            //mysql_function_query(mySQLDB, string, true, "LoadPlayerAuto", "d", playerid);
            //send(playerid,COLOR_ANTICHEAT,"[UniteD: Guard] {ffffff}Èä¸ò ïîèñê ëè÷íûõ àâòî ïðèâÿçàííûõ ê âàøåìó àêêàóíòó...");
            
    return true;
        }
        else
        {
            
    ErrorPas[playerid]++;
            
    f(string,"[ÎØÈÁÊÀ] {FFFFFF}Íåâåðíûé ïàðîëü. Îñòàëîñü ïîïûòîê: {FF0000}%d{FFFFFF}.",3-ErrorPas[playerid]);
            
    send(playerid,0xFF0000AA,string);
            if(
    ErrorPas[playerid] >= 3)
            {
                switch(
    GetPVarInt(playerid,"Sex"))
                {
                    case 
    1:f(string,"Àíòè÷èò: %s[%d] áûë êèêíóò. Ïðè÷èíà: Ïîäáîð ïàðîëÿ.",Player[playerid][pName],playerid);
                    case 
    2:f(string,"Àíòè÷èò: %s[%d] áûëà êèêíóòà. Ïðè÷èíà: Ïîäáîð ïàðîëÿ.",Player[playerid][pName],playerid);
                }
                
    ABroadCast(0xFFFF00AA,string,1);
                
    send(playerid,0xFFFF00AA,"Âû áûëè êèêíóòû àíòè÷èòîì. Ïðè÷èíà: Ïîäáîð ïàðîëÿ.");
                
    SetTimerEx("KickFix",1000,0,"i",playerid);
                return 
    true;
            }
            
    ShowLogin(playerid);
        }
        return 
    false;


  10. #9
    Аватар для DeimoS
    Модератор?

    Статус
    Оффлайн
    Регистрация
    27.01.2014
    Адрес
    Восточный Мордор
    Сообщений
    5,588
    Репутация:
    1984 ±
    PHP код:
    cache_get_field_content(0"Apass"Player[playerid][pApass]); 
    на
    PHP код:
    cache_get_field_content(0"Apass"Player[playerid][pApass], 32); 
    Связаться со мной в VK можно через личные сообщения этой группы
    Заказы не принимаю

    Широко известно, что идеи стоят 0.8333 цента каждая (исходя из рыночной цены 10 центов за дюжину).
    Великих идей полно, на них нет спроса.
    Воплощение идеи в законченную игру требует долгой работы,
    таланта, терпения и креативности, не говоря уж о затратах денег, времени и ресурсов.
    Предложить идею просто, воплотить – вот в чём проблема

    Steve Pavlina

  11. #10
    Аватар для kala4iks
    Пользователь

    Статус
    Оффлайн
    Регистрация
    27.02.2015
    Сообщений
    317
    Репутация:
    0 ±
    Цитата Сообщение от DeimoS Посмотреть сообщение
    PHP код:
    cache_get_field_content(0"Apass"Player[playerid][pApass]); 
    на
    PHP код:
    cache_get_field_content(0"Apass"Player[playerid][pApass], 32); 
    Когда первый раз придумываю пароль и не выходя из игры снова пытаюсь авторизоваться, но ввожу пароль не правильно то пишет что я ввел не правильно но если перезайти и при авторизации вести любой пароль то пускает.

    И пароль в этот раз как перезайти и авторизоваться под любым паролем просто напросто с базы данных слетает.

 

 
Страница 1 из 3 1 2 3 ПоследняяПоследняя

Информация о теме

Пользователи, просматривающие эту тему

Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •