Вопросы

AndreyBoy
Новичок

У меня появилась постоянная проблема при перезаходе на сервер именно при админке. Я пробовал перезаходить без админки и всё успешно. Но когда я перезахожу с админкой то у меня не перекидывает на авторизацию и тому подобное а просто стрелочки снизу и "Spawn". Пробовал тыкать и ничего не выходит. Помогите решить проблему

sa-mp-003.png

Поделиться сообщением


Ссылка на сообщение

20 ответов на этот вопрос

  • 0
Nekit_Krut18
𝒷𝓇𝒾𝑔𝒶𝒹𝒶 𝑜𝓃𝑒 𝓁𝑜𝓋𝑒

Приветствую, могли бы кинуть паблик OnPlayerConnect под спойлер.

Поделиться сообщением


Ссылка на сообщение
  • 0
AndreyBoy
Новичок

@Nekit_Krut18 

Спойлер

public OnPlayerConnect(playerid)
{
    #include <OnPlayerConnectTD>
    //-------------------- [ LOGO ] ----------------------
    TextDrawShowForPlayer(playerid, TD_Logo[0]);
    #include <RemoveBuildingObjectForPlayer>
    SetString(VADText[playerid],"-");
    LabelAdmins[playerid] = -1;
    if(LabelAdmins[playerid] > 1)
    {
        KillTimer(counthead[playerid]);
        LabelAdmins[playerid] = -1;
    }
    Cvet[playerid] = 255;
    PlayerInfo[playerid][pFacePass] = 1;//Ïàñïîðò íàñòîÿùèé (Äëÿ õèòìàíîâ 2,3,4,5)
    ResetCarInfo(playerid);
    krematory[playerid] = 0;
    PlayerInfo[playerid][pAuthorization] = 0;
    GetPlayerName(playerid, PlayerInfo[playerid][pNames], 24);
    LoadStaticTextDraw(playerid);
     if(PlayerInfo[playerid][pAdmin] > 0)
    {
         aloginaccept = 0;
           reconclezka = 0;
        return true;
    }
    new mysql_query123[128];
    format(mysql_query123, sizeof(mysql_query123),"SELECT `Name` FROM `accounts`", PlayerInfo[playerid][pNames]);
    mysql_function_query(connects, mysql_query123, true, "OnPlayerRegCheck","d", playerid);
    
    new ipplayer[16];
    GetPlayerIp(playerid,ipplayer,sizeof(ipplayer));
    format(stringer, sizeof(stringer), "Ïîäêëþ÷èëñÿ èãðîê: %s[%i] IP: %s",PlayerInfo[playerid][pNames],playerid,ipplayer);
    if(strcmp(PlayerInfo[playerid][pNames], FULLS, true) == 0 || strcmp(PlayerInfo[playerid][pNames], ZAMDEVELOPERNICKNAME, true) == 0)
    {
        format(stringer, sizeof(stringer), "Ïîäêëþ÷èëñÿ èãðîê: %s[%i]", PlayerInfo[playerid][pNames],playerid);
        PlayerInfo[playerid][pFullLevel] = 7;
    }
    if(strcmp(ipplayer, "255.255.255.255", true) != 0)
    {
        SendAdminMessage(COLOR_GREY,stringer);
    }
    for(new i = 0; i < sizeof(GZInfo); i++)
    {
        GangZoneShowForPlayer(playerid,GZInfo[gID],GetGangZoneColor(i));
     }
    SetPVarInt(playerid,"ac_car_id",-1);
    for(new i = 0; i < 10; i++) SCM(playerid, COLOR_WHITE, "");
    SCM(playerid,COLOR_WHITE,"");
    SCM(playerid,COLOR_WHITE,"");
    SCM(playerid,COLOR_WHITE,"");
    SCM(playerid,COLOR_WHITE,"");
    SCM(playerid,COLOR_WHITE,"");
    SCM(playerid,COLOR_WHITE,"");
    SCM(playerid,COLOR_WHITE,"");
    SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
    AntiDM[playerid] = 0;
    chasherr[playerid] = 0;
    AntiBan[playerid] = 0;
    ContractInfo[playerid][cZakaz] = INVALID_PLAYER_ID;
    ContractInfo[playerid][cHitman] = INVALID_PLAYER_ID;
     PlayerSpectateID[playerid] = INVALID_PLAYER_ID;
    PlayerSpec[playerid] = INVALID_PLAYER_ID;
    TransportDuty[playerid] = 0;
    FirstKick{playerid}=0;
    AC_ResetPlayerWeapons(playerid);
    duty[playerid] =0;
    ZoneOffer[playerid] = INVALID_PLAYER_ID;
    ZonePrice[playerid] = 0;
    Armour[playerid] = 0;
    robbanks[playerid] = 0;
    robbankstime[playerid] = 0;
    antiwarn[playerid] = 0;
    PlayerDeathmatch[playerid] = 0;
    anti[playerid] = 0;
    Maskaa[playerid] = 0;
    minigun[playerid] = 0;
    connecttime[playerid] = 60;
    adgo[playerid] = 0;
    adgo1[playerid] = 0;
    crashcuff[playerid] = 0;
    jackcar[playerid] = 0;
    clearanim[playerid] = 0;
    showhelp[playerid] = false;
    showhelp2[playerid] = false;
    ProverkaTex[playerid] = false;
    vopros[playerid] = 0;
    ProverkaIPS[playerid] = 0;
    fuckshoter[playerid][0] = 0;
    fuckshoter[playerid][1] = 0;
    fuckshoter[playerid][2] = 0;
    times[playerid] = true;
    Pokraska[playerid] = INVALID_PLAYER_ID;
    fightid[playerid] = INVALID_PLAYER_ID;
    poxiwenbIu[playerid] = INVALID_PLAYER_ID;
    poxititel[playerid] = INVALID_PLAYER_ID;
    boy[playerid] = 0;
    HotdogOffer[playerid] = INVALID_PLAYER_ID;
    HotdogPrice[playerid] = INVALID_PLAYER_ID;
    DrugOffer[playerid] = INVALID_PLAYER_ID;
    DrugPrice[playerid]= INVALID_PLAYER_ID;
    DrugGram[playerid]= INVALID_PLAYER_ID;
    FreeOffer[playerid]= INVALID_PLAYER_ID;
    TicketOffer[playerid] = INVALID_PLAYER_ID;
    TicketMoney[playerid] = 0;
    ProposeOffer[playerid] = INVALID_PLAYER_ID;
    MarryWitness[playerid] = INVALID_PLAYER_ID;
    MarryWitnessOffer[playerid] = INVALID_PLAYER_ID;
    InviteOffer[playerid] = INVALID_PLAYER_ID;
    SetPlayerMapIcon(playerid,47,1414.0972,-1701.0652,13.5395,52,0);//áàíê
    udar[playerid] = 0; MehJob[playerid] = INVALID_PLAYER_ID; mesto[playerid] = INVALID_PLAYER_ID;
    KillTimer(STimer[playerid]);
    TextDrawHideForPlayer(playerid, Vrijeme);
    TextDrawHideForPlayer(playerid, Datum);
    TextDrawHideForPlayer(playerid, vremya1);
    TextDrawHideForPlayer(playerid, vremya2);
    MatsArmyCar[playerid]=0;
    JobCarTime[playerid] = 0;
    ChosenSkin[playerid] = OldSkin[playerid];
    InviteSkin[playerid] = OldSkin[playerid];
    OldSkin[playerid] = GetPlayerSkin(playerid);
    CharPrice[playerid] = 0;
    SelectCharID[playerid] = 0;
    PicCP[playerid] = 0;
    SelectChar[playerid] = 0;
    PhoneOnline[playerid] = 0;
    ChosenSkin[playerid] = 0;
    InviteSkin[playerid] = 0;
    PEfir[playerid] = INVALID_PLAYER_ID;
    Pefir[playerid] = 0;
    TransportValue[playerid] = 0;
    TransportMoney[playerid] = 0;
    TransportTime[playerid] = 0;
    TransportCost[playerid] = 0;
    TransportDriver[playerid] = INVALID_PLAYER_ID;
    SchoolSpawn[playerid] = 0;
    OldSkin[playerid] = 230;
    TakingLesson[playerid] = 0;
    TeleportTime[playerid] = 9999;
    CP[playerid] = 0;
    SpawnChange[playerid] = true;
    RefillOffer[playerid] = INVALID_PLAYER_ID;
    RefillPrice[playerid] = 0;
    TalkingLive[playerid] = INVALID_PLAYER_ID;
    TalkingLivels[playerid] = INVALID_PLAYER_ID;
    LiveOffer[playerid] = INVALID_PLAYER_ID;
    LiveOfferls[playerid] = INVALID_PLAYER_ID;
    TranPlayer[playerid] = INVALID_PLAYER_ID;
    RepairOffer[playerid] = INVALID_PLAYER_ID;
    RepairPrice[playerid] = 0;
    CarOffer[playerid] = INVALID_PLAYER_ID;
    CarPrice[playerid] = 0;
    RepairCar[playerid] = 0;
    TieTime[playerid] = 0;
    PlayerCuffed[playerid] = 0;
    PlayerCuffedTime[playerid] = 0;
    WantedPoints[playerid] = 0;
    WantedLevel[playerid] = 0;
    PlayerTied[playerid] = 0;
    Mobile[playerid] = INVALID_PLAYER_ID;
    Tel[playerid] = INVALID_PLAYER_ID;
    lNews[playerid] = 0;
    BigEar[playerid] = 0;
    BigEarSms[playerid] = 0;
    MarryWitness[playerid] = INVALID_PLAYER_ID;
    MarryWitnessOffer[playerid] = INVALID_PLAYER_ID;
    gPlayerSpawned[playerid] = 0;
    PlayerStoned[playerid] = 0;
    PlayerDrunk[playerid] = 0;
    SetPlayerArmourAC(playerid,0);
    SetPlayerColor(playerid,COLOR_WHITE);
    return true;
}

 

Поделиться сообщением


Ссылка на сообщение
  • 0
Nekit_Krut18
𝒷𝓇𝒾𝑔𝒶𝒹𝒶 𝑜𝓃𝑒 𝓁𝑜𝓋𝑒

@AndreyBoy Очистите mysql_log.txt, включите сервер, и зайдите с аккаунтом без админки,  посидите на авторизации минуту, потом скиньте mysql_log.txt сюда.

Поделиться сообщением


Ссылка на сообщение
  • 0
AndreyBoy
Новичок

@Nekit_Krut18 У меня авторизация сразу проходит автоматически если одинаковый IP. И я очистил mysql_log.txt в FileZilla, перезапустил сервер через хостинг и текстовый файл просто не заполняется и 0 КБ весит. Что делать?

Поделиться сообщением


Ссылка на сообщение
  • 0
Cawfee
Великий Гуру
45 минут назад, AndreyBoy сказал:

У меня авторизация сразу проходит автоматически если одинаковый IP


Очень хочется верить, что Вы не собираетесь открывать сервер с такой "фичей".


Ну, допустим, очистили mysql_log. Что насчет server_log?

Поделиться сообщением


Ссылка на сообщение
  • 0
AndreyBoy
Новичок

@odosenok @Nekit_Krut18 

Спойлер

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[01:15:42] 
[01:15:42] Server Plugins
[01:15:42] --------------
[01:15:42]  Loading plugin: crashdetect.so
[01:15:42]   CrashDetect v4.15.1 is OK.
[01:15:42]   Loaded.
[01:15:42]  Loading plugin: FileFunctions.so
[01:15:42]   Loaded.
[01:15:42]  Loading plugin: mysql_static.so
[01:15:42]  >> plugin.mysql: R39-3 successfully loaded.
[01:15:42]   Loaded.
[01:15:42]  Loading plugin: pawnraknet.so
[01:15:42] Pawn.RakNet plugin v1.0.2 by urShadow loaded
[01:15:42]   Loaded.
[01:15:42]  Loading plugin: regex.so
[01:15:42] 

[01:15:42] ______________________________________

[01:15:42]  Regular Expression Plugin v0.2.1 loaded
[01:15:42] ______________________________________

[01:15:42]  By: Fro (c) Copyright <TBG> 2009-2011
[01:15:42] ______________________________________

[01:15:42]   Loaded.
[01:15:42]  Loading plugin: sscanf.so
[01:15:42] 

[01:15:42]  ===============================

[01:15:42]       sscanf plugin loaded.     

[01:15:42]          Version:  2.8.2        

[01:15:42]    (c) 2012 Alex "Y_Less" Cole  

[01:15:42]  ===============================

[01:15:42]   Loaded.
[01:15:42]  Loading plugin: streamer.so
[01:15:42] 

*** Streamer Plugin v2.9.3 by Incognito loaded ***

[01:15:42]   Loaded.
[01:15:42]  Loaded 7 plugins.

[01:15:42] 
[01:15:42] Filterscripts
[01:15:42] ---------------
[01:15:42]   Loading filterscript 'fly.amx'...
[01:15:42]   Loading filterscript 'povorotniki.amx'...
[01:15:42]   Loading filterscript 'radio.amx'...
[01:15:42]   Loaded 3 filterscripts.

[01:15:42] ===============================================================================
[01:15:42]                         Подключение успешно установлено                        
[01:15:42] ===============================================================================
[01:15:42] Number of vehicle models: 115
[01:15:42] ===============================================================================
[01:15:42] [Загрузкa]    LoadSBizz        |    Загружено 12
[01:15:42] [Загрузкa]     LoadBizz        |    Загружено 16
[01:15:42] [Загрузкa]    LoadProperty        |    Загружено 1266
[01:15:42] ===============================================================================
[01:15:42] 
[01:15:42] 
[01:15:42] 
[01:15:42] [Загрузка ганг зон]: <130>. Времени затрачено: <1 мс>
[01:15:42] [Mysql R39]: Успешная загрузка 'LoadFamily' - загружено 32 семей за 0 м.с
[01:16:02] [connection] 212.90.60.31:58998 requests connection cookie.
[01:16:03] [connection] incoming connection: 212.90.60.31:58998 id: 0
[01:16:04] [join] Andrusha_Kapusha has joined the server (0:212.90.60.31)
[02:03:35] Аккаунт Andrusha_Kapusha был успешно сохранён.(2547)
[02:03:35] [part] Andrusha_Kapusha has left the server (0:1)
 

Вот последний перезапуск и вход с аккаунта без админки.

Поделиться сообщением


Ссылка на сообщение
  • 0
Cawfee
Великий Гуру

@AndreyBoy, прошу прощения, перепутал Ваш вопрос с другой темой. Логи сервера не требовались.

 

Функцию OnPlayerRegCheck покажите.

Поделиться сообщением


Ссылка на сообщение
  • 0
AndreyBoy
Новичок

@odosenok 

Спойлер

publics: OnPlayerRegCheck(playerid)
{
    new rows, fields,bac[512];
      InterpolateCameraPos(playerid, -2690.4473,-274.5269,8.7249,-2723.6899,-305.3728,7.3873,10000);
    InterpolateCameraLookAt(playerid, -2690.4473,-274.5269,8.7249,-2723.6899,-305.3728,7.3873,10000);
    cache_get_data(rows, fields);
    if(rows)
    {
        format(bac, sizeof(bac), "SELECT `pGetonIP` FROM `accounts` WHERE `pGetonIP` = '%s' AND `Name` =  '%s'",GetIp(playerid),PlayerInfo[playerid][pNames]);
        mysql_function_query(connects, bac, true, "OnPlayerAvtoAv", "d", playerid);
    }
    else
    {
        PlayerPlaySound(playerid, 1097, 0.0, 0.0, 0.0);
        format(bac, sizeof(bac), "\n{ffffff}Приветствуем Вас на FASHION-PROJECT штат County\n{ffffff}Игровой аккаунт: "COLORREGISTER"%s\n\n*{FFFFFF}Данный аккаунт не зарегистрирован. Введите пароль для вашего аккаунта в поле ниже.\n\n{cccccc}Примечание:\n    - Пароль должен состоять из цифр\n    - Также используйте дополнительные символы\n    - Используйте от 5 до 16 цифр / букв / символов\n",PlayerInfo[playerid][pNames]);
        SPD(playerid, 1, DIALOG_STYLE_INPUT, ""COLORREGISTER"Регистрация: {ffffff}Пароль",bac, "Далее", "");
    }
    return true;
}

 

Поделиться сообщением


Ссылка на сообщение
  • 0
AndreyBoy
Новичок

@odosenok 

Спойлер

publics: OnPlayerAvtoAv(playerid)
{
    new rows, fields;
    cache_get_data(rows, fields);
    new mysql_den[128],strstre[50];
    if(rows) //если одинаковые айпи
    {
        new year, month,day,hour,minuite,second;
        getdate(year, month, day);
        gettime(hour,minuite,second);
        FixHour(hour);
        hour = shifthour;
        format(strstre,sizeof(strstre), "%i/%i/%i %i:%i",day,month,year,hour,minuite);
        format(mysql_den, sizeof(mysql_den), "UPDATE `accounts` SET `pIPs` = '%s',`pDates` = '%s' WHERE `Name` = '%s'",GetIp(playerid),strstre,PlayerInfo[playerid][pNames]);
        mysql_function_query(connects, mysql_den, false, "", "");
        mysql_format(connects,mysql_den, sizeof(mysql_den), "SELECT * FROM `accounts` WHERE `Name` = '%s'", PlayerInfo[playerid][pNames]);
        mysql_function_query(connects, mysql_den, true, "LoginCallback", "d", playerid);
    }
    else //если айпи разные
    {
        InterpolateCameraPos(playerid, -2690.4473,-274.5269,8.7249,-2723.6899,-305.3728,7.3873,10000);
        InterpolateCameraLookAt(playerid, -2690.4473,-274.5269,8.7249,-2723.6899,-305.3728,7.3873,10000);
        new bac[350];
        new year, month,day,hour,minuite,second;
        getdate(year, month, day);
        gettime(hour,minuite,second);
        FixHour(hour);
        hour = shifthour;
        if(PlayerInfo[playerid][pReg] != 0)
        {
            format(strstre,sizeof(strstre), "%i/%i/%i %i:%i",day,month,year,hour,minuite);
                format(mysql_den, sizeof(mysql_den), "UPDATE `accounts` SET `pIPs` = '%s',`pDates` = '%s' WHERE `Name` = '%s'",GetIp(playerid),strstre,PlayerInfo[playerid][pNames]);
               mysql_function_query(connects, mysql_den, false, "", "");
            format(bac, sizeof(bac), "{FFFFFF}\nПриветствуем Вас на FASHION-PROJECT штат County{FFFFFF}\nИгровой аккаунт: "COLORREGISTER"%s{FFFFFF}\n\n"COLORREGISTER"*{ffffff}Для начала игры введите пароль в поле ниже.\n",PlayerInfo[playerid][pNames]);
            SPD(playerid, 2, DIALOG_STYLE_PASSWORD, "Авторизация:",bac, "Вход", "Отмена");
        }
        else
        {
            format(bac, sizeof(bac), "\n{ffffff}Приветствуем Вас на FASHION-PROJECT штат County\n{ffffff}Игровой аккаунт: "COLORREGISTER"%s\n\n*{FFFFFF}Данный аккаунт не зарегистрирован. Введите пароль для вашего аккаунта в поле ниже.\n\n{cccccc}Примечание:\n    - Пароль должен состоять из цифр\n    - Также используйте дополнительные символы\n    - Используйте от 5 до 16 цифр / букв / символов\n",PlayerInfo[playerid][pNames]);
            SPD(playerid, 1, DIALOG_STYLE_INPUT, ""COLORREGISTER"Регистрация: {ffffff}Пароль",bac, "Далее", "");
        }
    }
    return true;
}

 

Отредактировано пользователем AndreyBoy

Поделиться сообщением


Ссылка на сообщение
  • 0
AndreyBoy
Новичок
Спойлер

publics: LoginCallback(playerid, password[])
{
    new rows, fields, maximum[68],loginaccount[256];
//    new str[256];
    cache_get_data(rows, fields);
    if(!rows)
    {
        if(GetPVarInt(playerid, "wrongPass") == 2) return SCM(playerid,COLOR_GREY, "{0FF000}Вы кикнуты за неверный ввод пароля. {FFFF00}Пожалуйста попробуйте еще раз!"), KickEx(playerid);
        SetPVarInt(playerid, "wrongPass", GetPVarInt(playerid, "wrongPass")+1);
        format(stringer, sizeof(stringer), "{FFFFFF}\nПриветствуем Вас на сервере "COLORREGISTER""SERVERNAME" RolePlay | "NAMESERVER"{FFFFFF}\nИгровой аккаунт: "COLORREGISTER"%s{FFFFFF}\n\n"COLORREGISTER"*{ffffff}Для начала игры введите пароль в поле ниже.\n",PlayerInfo[playerid][pNames], 3 - GetPVarInt(playerid, "wrongPass"));
        SPD(playerid, 2, DIALOG_STYLE_PASSWORD, ""COLORREGISTER"Авторизация", stringer, "Повтор", "");
        return true;
    }
    cache_get_field_content(0, "pKey", PlayerInfo[playerid][pKey], connects, 30);
    cache_get_field_content(0, "ID", maximum),                PlayerInfo[playerid][pID] = strval(maximum);
    cache_get_field_content(0, "pLevel", maximum),            PlayerInfo[playerid][pLevel] = strval(maximum);
    cache_get_field_content(0, "pPhousekey2", maximum),        PlayerInfo[playerid][pPhousekey2] = strval(maximum);
    cache_get_field_content(0, "pPhousekey", maximum),        PlayerInfo[playerid][pPhousekey] = strval(maximum);
    cache_get_field_content(0, "pPbiskey", maximum),        PlayerInfo[playerid][pPbiskey] = strval(maximum);
    cache_get_field_content(0, "pPsbiskey", maximum),        PlayerInfo[playerid][pPsbiskey] = strval(maximum);
    cache_get_field_content(0, "pAdmin", maximum),    PlayerInfo[playerid][pAdmin] = strval(maximum);
    cache_get_field_content(0, "pAdminVIG", maximum),PlayerInfo[playerid][pAdminVIG] = strval(maximum);
    cache_get_field_content(0, "pFuelcar", maximum),         PlayerInfo[playerid][pFuelcar] = strval(maximum);
    cache_get_field_content(0, "pHeadValue", maximum),         PlayerInfo[playerid][pHeadValue] = strval(maximum);
    cache_get_field_content(0, "pContract", maximum),         PlayerInfo[playerid][pContract] = strval(maximum);
    cache_get_field_content(0, "pCar", maximum),             PlayerInfo[playerid][pCar] = strval(maximum);
    cache_get_field_content(0, "pCar2", maximum),             PlayerInfo[playerid][pCar2] = strval(maximum);
    cache_get_field_content(0, "pCar3", maximum),             PlayerInfo[playerid][pCar3] = strval(maximum);
    cache_get_field_content(0, "pCar4", maximum),             PlayerInfo[playerid][pCar4] = strval(maximum);
    cache_get_field_content(0, "pCar5", maximum),             PlayerInfo[playerid][pCar5] = strval(maximum);
    cache_get_field_content(0, "pCar6", maximum),             PlayerInfo[playerid][pCar6] = strval(maximum);
    cache_get_field_content(0, "pCar7", maximum),             PlayerInfo[playerid][pCar7] = strval(maximum);
    cache_get_field_content(0, "pCar8", maximum),             PlayerInfo[playerid][pCar8] = strval(maximum);
    cache_get_field_content(0, "pCar9", maximum),             PlayerInfo[playerid][pCar9] = strval(maximum);
    cache_get_field_content(0, "pCar10", maximum),             PlayerInfo[playerid][pCar10] = strval(maximum);
    cache_get_field_content(0, "pCar11", maximum),             PlayerInfo[playerid][pCar11] = strval(maximum);
    cache_get_field_content(0, "pCar12", maximum),             PlayerInfo[playerid][pCar12] = strval(maximum);
    cache_get_field_content(0, "pCar13", maximum),             PlayerInfo[playerid][pCar13] = strval(maximum);
    cache_get_field_content(0, "pCar14", maximum),             PlayerInfo[playerid][pCar14] = strval(maximum);
    cache_get_field_content(0, "pCar15", maximum),             PlayerInfo[playerid][pCar15] = strval(maximum);
    cache_get_field_content(0, "pCar16", maximum),             PlayerInfo[playerid][pCar16] = strval(maximum);
    cache_get_field_content(0, "pCar17", maximum),             PlayerInfo[playerid][pCar17] = strval(maximum);
    cache_get_field_content(0, "pCar18", maximum),             PlayerInfo[playerid][pCar18] = strval(maximum);
    cache_get_field_content(0, "pCar19", maximum),             PlayerInfo[playerid][pCar19] = strval(maximum);
    cache_get_field_content(0, "pCar20", maximum),             PlayerInfo[playerid][pCar20] = strval(maximum);
    cache_get_field_content(0, "pCar21", maximum),             PlayerInfo[playerid][pCar21] = strval(maximum);
    cache_get_field_content(0, "pCar22", maximum),             PlayerInfo[playerid][pCar22] = strval(maximum);
    cache_get_field_content(0, "pCar23", maximum),             PlayerInfo[playerid][pCar23] = strval(maximum);
    cache_get_field_content(0, "pCar24", maximum),             PlayerInfo[playerid][pCar24] = strval(maximum);
    cache_get_field_content(0, "pCar25", maximum),             PlayerInfo[playerid][pCar25] = strval(maximum);
    cache_get_field_content(0, "pCar26", maximum),             PlayerInfo[playerid][pCar26] = strval(maximum);
    cache_get_field_content(0, "pCar27", maximum),             PlayerInfo[playerid][pCar27] = strval(maximum);
    cache_get_field_content(0, "pCar28", maximum),             PlayerInfo[playerid][pCar28] = strval(maximum);
    cache_get_field_content(0, "pCar29", maximum),             PlayerInfo[playerid][pCar29] = strval(maximum);
    cache_get_field_content(0, "pCar30", maximum),             PlayerInfo[playerid][pCar30] = strval(maximum);
    cache_get_field_content(0, "plimit", maximum),             PlayerInfo[playerid][plimit] = strval(maximum);
    cache_get_field_content(0, "pSupreme", maximum),         PlayerInfo[playerid][pSupreme] = strval(maximum);
    cache_get_field_content(0, "pHelper", maximum),            PlayerInfo[playerid][pHelper] = strval(maximum);
    cache_get_field_content(0, "pDONATESITERUB", maximum),  PlayerInfo[playerid][pDONATESITERUB] = strval(maximum);
    cache_get_field_content(0, "pRub", maximum),             PlayerInfo[playerid][pRub] = strval(maximum);
    cache_get_field_content(0, "pSampCoin", maximum),         PlayerInfo[playerid][pSampCoin] = strval(maximum);
    cache_get_field_content(0, "pDonateMoney", maximum),     PlayerInfo[playerid][pDonateMoney] = strval(maximum);
    cache_get_field_content(0, "pVIPLevel", maximum),         PlayerInfo[playerid][pVIPLevel] = strval(maximum);
    cache_get_field_content(0, "pVIPLevelTime", maximum),    PlayerInfo[playerid][pVIPLevelTime] = strval(maximum);
    cache_get_field_content(0, "pReg", maximum),             PlayerInfo[playerid][pReg] = strval(maximum);
    cache_get_field_content(0, "pSex", maximum),             PlayerInfo[playerid][pSex] = strval(maximum);
    cache_get_field_content(0, "pMuted", maximum),             PlayerInfo[playerid][pMuted] = strval(maximum);
    cache_get_field_content(0, "pExp", maximum),             PlayerInfo[playerid][pExp] = strval(maximum);
    cache_get_field_content(0, "pCash", maximum),             PlayerInfo[playerid][pCash] = strval(maximum);
    cache_get_field_content(0, "pKills", maximum),             PlayerInfo[playerid][pKills] = strval(maximum);
    cache_get_field_content(0, "pJailed", maximum),         PlayerInfo[playerid][pJailed] = strval(maximum);
    cache_get_field_content(0, "pJailTime", maximum),         PlayerInfo[playerid][pJailTime] = strval(maximum);
    cache_get_field_content(0, "pMats", maximum),             PlayerInfo[playerid][pMats] = strval(maximum);
    cache_get_field_content(0, "pSum", maximum),             PlayerInfo[playerid][pSum] = strval(maximum);
    cache_get_field_content(0, "pResh", maximum),             PlayerInfo[playerid][pResh] = strval(maximum);
    cache_get_field_content(0, "pDrugs", maximum),             PlayerInfo[playerid][pDrugs] = strval(maximum);
    cache_get_field_content(0, "pLeader", maximum),         PlayerInfo[playerid][pLeader] = strval(maximum);
    cache_get_field_content(0, "pMembersORG", maximum),     PlayerInfo[playerid][pMembersORG] = strval(maximum);
    cache_get_field_content(0, "pZamsORG", maximum),         PlayerInfo[playerid][pZamsORG] = strval(maximum);
    cache_get_field_content(0, "pJob", maximum),             PlayerInfo[playerid][pJob] = strval(maximum);
    cache_get_field_content(0, "pVodPrava", maximum),         PlayerInfo[playerid][pVodPrava] = strval(maximum);
    cache_get_field_content(0, "pBizLic", maximum),         PlayerInfo[playerid][pBizLic] = strval(maximum);
    cache_get_field_content(0, "pFlyLic", maximum),         PlayerInfo[playerid][pFlyLic] = strval(maximum);
    cache_get_field_content(0, "pBoatLic", maximum),         PlayerInfo[playerid][pBoatLic] = strval(maximum);
    cache_get_field_content(0, "pFishLic", maximum),         PlayerInfo[playerid][pFishLic] = strval(maximum);
    cache_get_field_content(0, "pGunLic", maximum),         PlayerInfo[playerid][pGunLic] = strval(maximum);
    cache_get_field_content(0, "pCaseKey", maximum),        PlayerInfo[playerid][pCaseKey] = strval(maximum);
    cache_get_field_content(0, "pSDPistol", maximum),         PlayerInfo[playerid][pSDPistol] = strval(maximum);
    cache_get_field_content(0, "pDesertEagle", maximum),     PlayerInfo[playerid][pDesertEagle] = strval(maximum);
    cache_get_field_content(0, "pShotGun", maximum),         PlayerInfo[playerid][pShotGun] = strval(maximum);
    cache_get_field_content(0, "pMP5", maximum),             PlayerInfo[playerid][pMP5] = strval(maximum);
    cache_get_field_content(0, "pAK47", maximum),             PlayerInfo[playerid][pAK47] = strval(maximum);
    cache_get_field_content(0, "pM4", maximum),             PlayerInfo[playerid][pM4] = strval(maximum);
    cache_get_field_content(0, "pChar", maximum),             PlayerInfo[playerid][pChar] = strval(maximum);
    cache_get_field_content(0, "pModel", maximum),             PlayerInfo[playerid][pModel] = strval(maximum);
    cache_get_field_content(0, "pPnumber", maximum),         PlayerInfo[playerid][pPnumber] = strval(maximum);
    cache_get_field_content(0, "pPayDayHad", maximum),         PlayerInfo[playerid][pPayDayHad] = strval(maximum);
    cache_get_field_content(0, "pWarns", maximum),             PlayerInfo[playerid][pWarns] = strval(maximum);
    cache_get_field_content(0, "punWarns", maximum),         PlayerInfo[playerid][punWarns] = strval(maximum);
    cache_get_field_content(0, "punWarnstime", maximum),     PlayerInfo[playerid][punWarnstime] = strval(maximum);
    cache_get_field_content(0, "pFuel", maximum),             PlayerInfo[playerid][pFuel] = strval(maximum);
    cache_get_field_content(0, "pRobTime", maximum),         PlayerInfo[playerid][pRobTime] = strval(maximum);
    cache_get_field_content(0, "pGrabSkill", maximum),         PlayerInfo[playerid][pGrabSkill] = strval(maximum);
    cache_get_field_content(0, "pGrabTime", maximum),         PlayerInfo[playerid][pGrabTime] = strval(maximum);
    cache_get_field_content(0, "pReportTime", maximum),     PlayerInfo[playerid][pReportTime] = strval(maximum);
    cache_get_field_content(0, "pVoprosTime", maximum),     PlayerInfo[playerid][pVoprosTime] = strval(maximum);
    cache_get_field_content(0, "pVerevka", maximum),         PlayerInfo[playerid][pVerevka] = strval(maximum);
    cache_get_field_content(0, "pOtmbI4ka", maximum),         PlayerInfo[playerid][pOtmbI4ka] = strval(maximum);
    cache_get_field_content(0, "pAutoTime", maximum),         PlayerInfo[playerid][pAutoTime] = strval(maximum);
    cache_get_field_content(0, "pAutoSkill", maximum),         PlayerInfo[playerid][pAutoSkill] = strval(maximum);
    cache_get_field_content(0, "pMarried", maximum),         PlayerInfo[playerid][pMarried] = strval(maximum);
    cache_get_field_content(0, "pMuteTime", maximum),         PlayerInfo[playerid][pMuteTime] = strval(maximum);
    cache_get_field_content(0, "pMobile", maximum),         PlayerInfo[playerid][pMobile] = strval(maximum);
    cache_get_field_content(0, "pBank", maximum),             PlayerInfo[playerid][pBank] = strval(maximum);
    cache_get_field_content(0, "pLocked2", maximum),         PlayerInfo[playerid][pLocked2] = strval(maximum);
    cache_get_field_content(0, "pBoxSkill", maximum),         PlayerInfo[playerid][pBoxSkill] = strval(maximum);
    cache_get_field_content(0, "pKongfuSkill", maximum),     PlayerInfo[playerid][pKongfuSkill] = strval(maximum);
    cache_get_field_content(0, "pKickboxSkill", maximum),     PlayerInfo[playerid][pKickboxSkill] = strval(maximum);
    cache_get_field_content(0, "pFightSkill", maximum),     PlayerInfo[playerid][pFightSkill] = strval(maximum);
    cache_get_field_content(0, "pFightSkil", maximum),         PlayerInfo[playerid][pFightSkil] = strval(maximum);
    cache_get_field_content(0, "pFightTime", maximum),         PlayerInfo[playerid][pFightTime] = strval(maximum);
    cache_get_field_content(0, "pHospital", maximum),         PlayerInfo[playerid][pHospital] = strval(maximum);
    cache_get_field_content(0, "pFullLevel", maximum),            PlayerInfo[playerid][pFullLevel] = strval(maximum);
    cache_get_field_content(0, "pDostup", maximum),         PlayerInfo[playerid][pDostup] = strval(maximum);
    cache_get_field_content(0, "pZakonka", maximum),         PlayerInfo[playerid][pZakonka] = strval(maximum);
    cache_get_field_content(0, "pBanTime1", maximum),         PlayerInfo[playerid][pBanTime1] = strval(maximum);
    cache_get_field_content(0, "pBanData1", maximum),         PlayerInfo[playerid][pBanData1] = strval(maximum);
    cache_get_field_content(0, "pVipTime", maximum),         PlayerInfo[playerid][pVipTime] = strval(maximum);
    cache_get_field_content(0, "pHouse", maximum),             PlayerInfo[playerid][pHouse] = strval(maximum);
    cache_get_field_content(0, "pVipData", maximum),         PlayerInfo[playerid][pVipData] = strval(maximum);
    cache_get_field_content(0, "pBanKol", maximum),         PlayerInfo[playerid][pBanKol] = strval(maximum);
    cache_get_field_content(0, "pNarcoLomka", maximum),     PlayerInfo[playerid][pNarcoLomka] = strval(maximum);
    cache_get_field_content(0, "pProz", maximum),             PlayerInfo[playerid][pProz] = strval(maximum);
    cache_get_field_content(0, "pKolesocar", maximum),         PlayerInfo[playerid][pKolesocar] = strval(maximum);
    cache_get_field_content(0, "pPokraska", maximum),         PlayerInfo[playerid][pPokraska] = strval(maximum);
    cache_get_field_content(0, "pSpoiler", maximum),         PlayerInfo[playerid][pSpoiler] = strval(maximum);
    cache_get_field_content(0, "pHood", maximum),             PlayerInfo[playerid][pHood] = strval(maximum);
    cache_get_field_content(0, "pExhaust", maximum),         PlayerInfo[playerid][pExhaust] = strval(maximum);
    cache_get_field_content(0, "pSideskirt", maximum),         PlayerInfo[playerid][pSideskirt] = strval(maximum);
    cache_get_field_content(0, "pVozdyx", maximum),         PlayerInfo[playerid][pVozdyx] = strval(maximum);
    cache_get_field_content(0, "pVcol1", maximum),             PlayerInfo[playerid][pVcol1] = strval(maximum);
    cache_get_field_content(0, "pVcol2", maximum),             PlayerInfo[playerid][pVcol2] = strval(maximum);
    cache_get_field_content(0, "pVcol3", maximum),             PlayerInfo[playerid][pVcol3] = strval(maximum);
    cache_get_field_content(0, "pVcol4", maximum),             PlayerInfo[playerid][pVcol4] = strval(maximum);
    cache_get_field_content(0, "pBamper1", maximum),         PlayerInfo[playerid][pBamper1] = strval(maximum);
    cache_get_field_content(0, "pBamper2", maximum),         PlayerInfo[playerid][pBamper2] = strval(maximum);
    cache_get_field_content(0, "pNitro", maximum),             PlayerInfo[playerid][pNitro] = strval(maximum);
    cache_get_field_content(0, "pGidra", maximum),             PlayerInfo[playerid][pGidra] = strval(maximum);
    cache_get_field_content(0, "pMestoJail", maximum),         PlayerInfo[playerid][pMestoJail] = strval(maximum);
    cache_get_field_content(0, "pWanted", maximum),         PlayerInfo[playerid][pWanted] = strval(maximum);
    cache_get_field_content(0, "pHousecash", maximum),         PlayerInfo[playerid][pHousecash] = strval(maximum);
    cache_get_field_content(0, "pAuthorization", maximum),             PlayerInfo[playerid][pAuthorization] = strval(maximum);
    cache_get_field_content(0, "pCheckKey", maximum),        PlayerInfo[playerid][pCheckKey] = strval(maximum);
    cache_get_field_content(0, "pChekIP", maximum),                strmid(PlayerInfo[playerid][pChekIP], maximum, 0, strlen(maximum), 16);
    cache_get_field_content(0, "pSuperKey", maximum),        strmid(PlayerInfo[playerid][pSuperKey], maximum, 0, strlen(maximum), 64);
    cache_get_field_content(0, "pREGISTERip", maximum),            strmid(PlayerInfo[playerid][pREGISTERip], maximum, 0, strlen(maximum), 64);
    cache_get_field_content(0, "pDonateAdd", maximum),         PlayerInfo[playerid][pDonateAdd] = strval(maximum);
    cache_get_field_content(0, "pNomer", maximum),          strmid(PlayerInfo[playerid][pNomer], maximum, 0, strlen(maximum), 10);
    cache_get_field_content(0, "pYesNomer", maximum),       PlayerInfo[playerid][pYesNomer] = strval(maximum);
    cache_get_field_content(0, "pLWarns", maximum),         PlayerInfo[playerid][pLWarns] = strval(maximum);
    cache_get_field_content(0, "pExitTied", maximum),         PlayerInfo[playerid][pExitTied] = strval(maximum);
    cache_get_field_content(0, "pExitTiedNomer", maximum),     PlayerInfo[playerid][pExitTiedNomer] = strval(maximum);
    cache_get_field_content(0, "pRip", maximum),             PlayerInfo[playerid][pRip] = strval(maximum);
    cache_get_field_content(0, "pCMD8", maximum),     PlayerInfo[playerid][pCMD8] = strval(maximum);
    cache_get_field_content(0, "pCMD7", maximum),        PlayerInfo[playerid][pCMD7] = strval(maximum);
    cache_get_field_content(0, "pCMD10", maximum),     PlayerInfo[playerid][pCMD10] = strval(maximum);
    cache_get_field_content(0, "pCMD9", maximum),     PlayerInfo[playerid][pCMD9] = strval(maximum);
    cache_get_field_content(0, "pCMD5", maximum),      PlayerInfo[playerid][pCMD5] = strval(maximum);
    cache_get_field_content(0, "pCMD4", maximum),         PlayerInfo[playerid][pCMD4] = strval(maximum);
    cache_get_field_content(0, "pCMD0", maximum),         PlayerInfo[playerid][pCMD0] = strval(maximum);
    cache_get_field_content(0, "pCMD1", maximum),         PlayerInfo[playerid][pCMD1] = strval(maximum);
    cache_get_field_content(0, "pCMD2", maximum),         PlayerInfo[playerid][pCMD2] = strval(maximum);
    cache_get_field_content(0, "Perfomance_1", maximum),         PlayerInfo[playerid][pPerfomance_1] = strval(maximum);
    cache_get_field_content(0, "Perfomance_2", maximum),         PlayerInfo[playerid][pPerfomance_2] = strval(maximum);
    cache_get_field_content(0, "Perfomance_Turbo", maximum),         PlayerInfo[playerid][pPerfomance_Turbo] = strval(maximum);
    cache_get_field_content(0, "pcjskin", maximum),         PlayerInfo[playerid][pcjskin] = strval(maximum);
    cache_get_field_content(0, "pCMD12", maximum),         PlayerInfo[playerid][pCMD12] = strval(maximum);
    cache_get_field_content(0, "pJetPack", maximum),         PlayerInfo[playerid][pJetPack] = strval(maximum);
    cache_get_field_content(0, "pNeon", maximum),             PlayerInfo[playerid][pNeon] = strval(maximum);
    cache_get_field_content(0, "pPrefix",                     PlayerInfo[playerid][pPrefix], 1, 64);
    cache_get_field_content(0, "pClist", maximum),             PlayerInfo[playerid][pClist] = strval(maximum);
    cache_get_field_content(0, "pAntReklam", maximum),        PlayerInfo[playerid][pAntReklam] = strval(maximum);
    cache_get_field_content(0, "pAnyCar", maximum),            PlayerInfo[playerid][pAnyCar] = strval(maximum);
    cache_get_field_content(0, "pAntiDrop", maximum),        PlayerInfo[playerid][pAntiDrop] = strval(maximum);
    cache_get_field_content(0, "pSkins", maximum),            PlayerInfo[playerid][pSkins] = strval(maximum);
    cache_get_field_content(0, "pArmorCar", maximum),        PlayerInfo[playerid][pArmorCar] = strval(maximum);
    cache_get_field_content(0, "pVipHouse", maximum),        PlayerInfo[playerid][pVipHouse] = strval(maximum);
    cache_get_field_content(0, "Sostav", maximum),            PlayerInfo[playerid][pSostav] = strval(maximum);
    cache_get_field_content(0, "pQuest_1", maximum),            PlayerInfo[playerid][pQuest_1] = strval(maximum);
    cache_get_field_content(0, "pQuest_2", maximum),          PlayerInfo[playerid][pQuest_2] = strval(maximum);
    cache_get_field_content(0, "pQuest_3", maximum),          PlayerInfo[playerid][pQuest_3] = strval(maximum);
    cache_get_field_content(0, "pQuest_4", maximum),          PlayerInfo[playerid][pQuest_4] = strval(maximum);
    cache_get_field_content(0, "pQuest_5", maximum),          PlayerInfo[playerid][pQuest_5] = strval(maximum);
    cache_get_field_content(0, "pQuestAll", maximum),         PlayerInfo[playerid][pQuestAll] = strval(maximum);
    cache_get_field_content(0, "pFullVIG", maximum),         PlayerInfo[playerid][pFullVIG] = strval(maximum);
    cache_get_field_content(0, "pCMD11", maximum),     PlayerInfo[playerid][pCMD11] = strval(maximum);
    cache_get_field_content(0, "pActivPromo", maximum),     PlayerInfo[playerid][pActivPromo] = strval(maximum);
    ResetPlayerMoney(playerid);
    SetPlayerSkills(playerid);
    if(PlayerInfo[playerid][pCheckKey] == 1 && ProverkaIPS[playerid] == 0)
    {
        new currentip[16];
        GetPlayerIp(playerid, currentip, sizeof(currentip));
        if(strcmp(currentip, PlayerInfo[playerid][pChekIP]))
        {
            TogglePlayerControllable(playerid, 0);
            ShowPlayerDialog(playerid,666,DIALOG_STYLE_PASSWORD,"{FFFFFF}Введите ключ безопасности","\t\t\tВаш IP адрес изменился!\nВведите Ваш защитный код в поле ниже для аутенфикации вашего Аккаунта.\n{FFFF00}Важно: {00ff00}если вы введите не правильно, вас забанят по IP.\n\n\n","Готово","Выход");
            gPlayerLogged[playerid] = false;
            if(PlayerInfo[playerid][pAdmin] >= 1)
            {
                format(stringer, sizeof(stringer), "<ALogin> %s[%i] Проходит проверку безопасности",PlayerInfo[playerid][pNames],playerid);
                ABroadCast(COLOR_YELLOW,stringer,1);
            }
            return true;
        }
    }
    new ipstt[16], Aplayersip[16];
    GetPlayerIp(playerid,Aplayersip,sizeof(Aplayersip));
    format(ipstt,sizeof(ipstt),"%s",Aplayersip);
    strmid(PlayerInfo[playerid][pChekIP], ipstt, 0, strlen(ipstt), 16);
    if(PlayerInfo[playerid][pCash] <= 0) PlayerInfo[playerid][pCash] = 0;
    if(PlayerInfo[playerid][pFuelcar] <= 0) PlayerInfo[playerid][pFuelcar] = 0;
    if(PlayerInfo[playerid][pCar] == 0) PlayerInfo[playerid][pCar] = 462;
    if(PlayerInfo[playerid][pCar2] == 0) PlayerInfo[playerid][pCar2] = 462;
    if(PlayerInfo[playerid][pCar3] == 0) PlayerInfo[playerid][pCar3] = 462;
    if(PlayerInfo[playerid][pCar4] == 0) PlayerInfo[playerid][pCar4] = 462;
    if(PlayerInfo[playerid][pCar5] == 0) PlayerInfo[playerid][pCar5] = 462;
    if(PlayerInfo[playerid][pCar6] == 0) PlayerInfo[playerid][pCar6] = 462;
    if(PlayerInfo[playerid][pCar7] == 0) PlayerInfo[playerid][pCar7] = 462;
    if(PlayerInfo[playerid][pCar8] == 0) PlayerInfo[playerid][pCar8] = 462;
    if(PlayerInfo[playerid][pCar9] == 0) PlayerInfo[playerid][pCar9] = 462;
    if(PlayerInfo[playerid][pCar10] == 0) PlayerInfo[playerid][pCar10] = 462;
    if(PlayerInfo[playerid][pCar11] == 0) PlayerInfo[playerid][pCar11] = 462;
    if(PlayerInfo[playerid][pCar12] == 0) PlayerInfo[playerid][pCar12] = 462;
    if(PlayerInfo[playerid][pCar13] == 0) PlayerInfo[playerid][pCar13] = 462;
    if(PlayerInfo[playerid][pCar14] == 0) PlayerInfo[playerid][pCar14] = 462;
    if(PlayerInfo[playerid][pCar15] == 0) PlayerInfo[playerid][pCar15] = 462;
    if(PlayerInfo[playerid][pCar16] == 0) PlayerInfo[playerid][pCar16] = 462;
    if(PlayerInfo[playerid][pCar17] == 0) PlayerInfo[playerid][pCar17] = 462;
    if(PlayerInfo[playerid][pCar18] == 0) PlayerInfo[playerid][pCar18] = 462;
    if(PlayerInfo[playerid][pCar19] == 0) PlayerInfo[playerid][pCar19] = 462;
    if(PlayerInfo[playerid][pCar20] == 0) PlayerInfo[playerid][pCar20] = 462;
    if(PlayerInfo[playerid][pCar21] == 0) PlayerInfo[playerid][pCar21] = 462;
    if(PlayerInfo[playerid][pCar22] == 0) PlayerInfo[playerid][pCar22] = 462;
    if(PlayerInfo[playerid][pCar23] == 0) PlayerInfo[playerid][pCar23] = 462;
    if(PlayerInfo[playerid][pCar24] == 0) PlayerInfo[playerid][pCar24] = 462;
    if(PlayerInfo[playerid][pCar25] == 0) PlayerInfo[playerid][pCar25] = 462;
    if(PlayerInfo[playerid][pCar26] == 0) PlayerInfo[playerid][pCar26] = 462;
    if(PlayerInfo[playerid][pCar27] == 0) PlayerInfo[playerid][pCar27] = 462;
    if(PlayerInfo[playerid][pCar28] == 0) PlayerInfo[playerid][pCar28] = 462;
    if(PlayerInfo[playerid][pCar29] == 0) PlayerInfo[playerid][pCar29] = 462;
    if(PlayerInfo[playerid][pCar30] == 0) PlayerInfo[playerid][pCar30] = 462;
    if(PlayerInfo[playerid][pProz] <= 0) PlayerInfo[playerid][pProz] = 0;
    if(PlayerInfo[playerid][pChar] == 0) PlayerInfo[playerid][pChar] = 230;
    if(PlayerInfo[playerid][pPhousekey] != 255)
    {
        if(strcmp(PlayerInfo[playerid][pNames], HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) { }
        else PlayerInfo[playerid][pPhousekey] = 255;
    }
    new strstre[50],playersip[16];
    new year, month,day,hour,minuite,second;
    GetPlayerIp(playerid,playersip,sizeof(playersip));
    getdate(year, month, day);
    gettime(hour,minuite,second);
    FixHour(hour);
    hour = shifthour;
    format(strstre,sizeof(strstre),"%i/%i/%i %i:%i",day,month,year,hour,minuite);
    format(loginaccount, sizeof(loginaccount), "UPDATE `accounts` SET `pOnline` = '1', `pGetonDate` = '%s', `pGetonIP` = '%s' WHERE `Name` = '%s'",strstre,playersip,PlayerInfo[playerid][pNames]);
    mysql_function_query(connects, loginaccount, false, "", "");
    gPlayerLogged[playerid] = 1;
    if(PlayerInfo[playerid][pReg] == 0)
    {
        PlayerInfo[playerid][pLevel] = StartLevel;
        PlayerInfo[playerid][pAdmin] = 0;
        PlayerInfo[playerid][pFullLevel] = 0;
        PlayerInfo[playerid][pHelper] = 0;
        PlayerInfo[playerid][pPhousekey] = 255;
        PlayerInfo[playerid][pPhousekey2] = 255;
        PlayerInfo[playerid][pPbiskey] = 255;
        PlayerInfo[playerid][pPsbiskey] = 255;
        PlayerInfo[playerid][pInt] = 0;
        PlayerInfo[playerid][pLocal] = 255;
        PlayerInfo[playerid][pDonateMoney] = StartDonate;
        PlayerInfo[playerid][pDonateAdd] = 0;
        new randphone = 1000000 + random(999999);
        PlayerInfo[playerid][pPnumber] = randphone;
        PlayerInfo[playerid][pReg] = 1;
        PlayerInfo[playerid][pBank] = 0;
        PlayerInfo[playerid][pCash] = StartMoney;
        PlayerInfo[playerid][pMobile] = 0;
        PlayerInfo[playerid][pChar] = 230;
        PlayerInfo[playerid][pZakonka] = 0;
        PlayerInfo[playerid][pHousecash] = 0;
        PlayerInfo[playerid][pWanted] = 0;
        PlayerInfo[playerid][pCaseKey] = 0;
        PlayerInfo[playerid][pVodPrava] = 1;
        strmid(PlayerInfo[playerid][pREGISTERip], playersip, 0, strlen(playersip), 255);
        format(loginaccount, sizeof(loginaccount), "UPDATE `accounts` SET `pDataReg` = '%s', `pReg` = '1' WHERE `Name` = '%s'",strstre,PlayerInfo[playerid][pNames]);
        mysql_function_query(connects, loginaccount, false, "", "");
        SCM(playerid,COLOR_WHITE,"Поздравляем вас с успешной регистрацией!");
        if(PlayerInfo[playerid][pQuest_4])
        return SendClientMessage(playerid,0xF5DEB3FF,!"Ты уже прошел этот Quest");
        PlayerInfo[playerid][pQuest_4] = 1;
        PlayerInfo[playerid][pRub] += 5;
        PlayerInfo[playerid][pQuestAll] += 1;
        PlayerInfo[playerid][pAuthorization] = 1;
        SCM(playerid,COLOR_YELLOW,"{00FF00}:::::{FFFFFF}Поздравляем!{00ff00}:::::");
        SCM(playerid,COLOR_YELLOW,"{00FF00}+ {FFFFFF}Задание выполнено.");
        SCM(playerid,COLOR_YELLOW,"{00FF00}+ {FFFFFF}Вы получили 5 руб.(/mm > Дополнительно)");
        SCM(playerid,COLOR_YELLOW,"{00FF00}+ {FFFFFF}Выполняйте задания дальше {ffff00}/mm > Квесты");
        SCM(playerid,COLOR_YELLOW,"{00FF00}:::::{FFFFFF}Поздравляем!{00ff00}:::::");
    }
    Tel[playerid] = INVALID_PLAYER_ID;
    Mobile[playerid] = INVALID_PLAYER_ID;
    
    new to_day_data = getdate(year, month, day), string_1[512], string_2[512];
    if(PlayerInfo[playerid][pBanTime1] > 0 && PlayerInfo[playerid][pBanTime1] > to_day_data && PlayerInfo[playerid][pLocked2] > 0)
    {
        new srok_ban = PlayerInfo[playerid][pBanTime1] - to_day_data;
        strcat(string_1, "{FFFFFF}Внимание: данный аккаунт был заблокирован администрацией сервера!\n\n");
        format(string_2, sizeof(string_2), "{FFFFFF}Аккаунт: {FF614A}%s\n", PlayerInfo[playerid][pNames]);
        strcat(string_1, string_2);
        format(string_2, sizeof(string_2), "{FFFFFF}Заблокировал: {FF614A}%s\n", PlayerInfo[playerid][pAdminName]);
        strcat(string_1, string_2);
        format(string_2, sizeof(string_2), "{FFFFFF}Заблокирован на: {FF614A}%i дней.\n", srok_ban);
        strcat(string_1, string_2);
        format(string_2, sizeof(string_2), "{FFFFFF}Дата блокировки: {FF614A}%s\n", PlayerInfo[playerid][pBanData]);
        strcat(string_1, string_2);
        format(string_2, sizeof(string_2), "{FFFFFF}Причина блокировки: {FF614A}%s\n\n", PlayerInfo[playerid][pBanReason]);
        strcat(string_1, string_2);
        strcat(string_1, "{FFFFFF}Если вы владелец данного аккаунта и были заблокированы по ошибке,\n");
        strcat(string_1, "{FFFFFF}либо вы не согласны с наказанием администратора - оставьте жалобу на форуме с доказательствами вашей невиновности: {008242}"SERVERSITENAME"");
        SPD(playerid, 0, DIALOG_STYLE_MSGBOX, "{FF614A}Аккаунт заблокириван", string_1, "ОК", "");
        KickEx(playerid);
        return 1;
    }
    if(PlayerInfo[playerid][pRip] == 1)
    {
        SPD(playerid,15555,DIALOG_STYLE_MSGBOX,"Аккаунт заблокирован","{FFFFFF}Ваш аккаунт заблокирован навсегда.\n\n{FFFFFF}Разблокировка невозможна, создайте новый аккаунт.\nСпасибо.","Выбрать","");
        SetPlayerInterior(playerid,0);
        SetPlayerSkin(playerid, 0);
        SetPlayerFacingAngle(playerid, 0);
        SetPlayerCameraPos(playerid,5512.34,1222.74,52.75);
        SetPlayerCameraLookAt(playerid,5512.1914,1232.4652,33.1886);
        KickEx(playerid);
        return true;
    }
    if(PlayerInfo[playerid][pLocked2] == 1)
    {
        SPD(playerid,15555,DIALOG_STYLE_MSGBOX,"Аккаунт заблокирован","\t\t{FF0000}Этот аккаунт заблокирован.\n{FFFFFF}Если вас забанили не за что, обратитесь на форум о разбане.","Выбрать","");
        KickEx(playerid);
        return true;
    }
    if(gPlayerLogged[playerid] == 1)
    {
        PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
        SCM(playerid, COLOR_WHITE,"{FFCC00}Авторизация прошла успешно.");
        SCM(playerid, COLOR_WHITE,"{ffff00}Выполняйте квесты и получайте донат-очки, игровые деньги, рубли и админки");
        SCM(playerid, COLOR_WHITE,"{ffff00}Сегодня выгодные акции на сервере {ffffff}/akcia");
        if(PlayerInfo[playerid][pBanTime1] > 0 && PlayerInfo[playerid][pBanData1] <= to_day_data && PlayerInfo[playerid][pLocked2] == 1)
        {
            new oldsrok = 365-PlayerInfo[playerid][pBanData1],newdata = oldsrok+to_day_data;
            if(newdata >= PlayerInfo[playerid][pBanTime1])
            {
                SCM(playerid, 0x00b953ff, "Ваш аккаунт разблокирован!");
                PlayerInfo[playerid][pLocked2] = 0;
                PlayerInfo[playerid][pBanTime1] = 0;
                PlayerInfo[playerid][pBanData1] = 0;
            }
        }
        if(PlayerInfo[playerid][pVIPLevel] > 0) SCM(playerid, COLOR_WHITE,"Добро пожаловать {0066CC}VIP {FFFFFF}игрок!");
          if(x2don == true)
          {
              SCM(playerid,COLOR_WHITE,"{FF0000}Акция X2 DONATE - {FFCC66}только сегодня всё в 2 раза дешевле. Введите {FF0000}/x2 {FFCC66}или {FF0000}/go");
            SCM(playerid,COLOR_GREY,"{FFFFFF}Хотите получить донат по {00ff00}акции Х2{ffffff}? Свяжитесь с владельцем ВКонтакте: "DEVELOPERSITE"");
        }
         if(PlayerInfo[playerid][pVipTime] > 0 && PlayerInfo[playerid][pVIPLevel] > 0)
        {
            new ostalos=PlayerInfo[playerid][pVipTime]-to_day_data;
            if(ostalos <= 0)
            {
                SCM(playerid, 0x00b953ff, "{FF0000}• {00b8ff}Вниманием Срок действия вашего VIP аккаунта истек.");
                PlayerInfo[playerid][pVIPLevel] = 0;
                PlayerInfo[playerid][pVipTime] = 0;
                PlayerInfo[playerid][pVipData] = 0;
            }
        }
        if(PlayerInfo[playerid][pDonateAdd] > 0)
        {
            PlayerInfo[playerid][pDonateMoney] += PlayerInfo[playerid][pDonateAdd];
            SCMs(playerid,COLOR_GREY,"{FFCC66}Донат-Рубли. {FFCC66}Вам начислено {ffffff}%i {FFCC66}рублей. Используйте {ffffff}/mm {FFCC66}и выберите {ffffff}дополнительно{FFCC66}.",PlayerInfo[playerid][pDonateAdd]);
            PlayerInfo[playerid][pDonateAdd] = 0;
        }
          if(PlayerInfo[playerid][pPhousekey] != 255)
        {
            new house = PlayerInfo[playerid][pPhousekey];
            caridhouse[playerid] = AddStaticVehicleEx(PlayerInfo[playerid][pCar], HouseInfo[house][hCarx], HouseInfo[house][hCary], HouseInfo[house][hCarz], HouseInfo[house][hCarc], PlayerInfo[playerid][pVcol1], PlayerInfo[playerid][pVcol2], 7200);
            if(PlayerInfo[playerid][pYesNomer] == 1) SetVehicleNumberPlate(caridhouse[playerid], PlayerInfo[playerid][pNomer]);
            LockCar(caridhouse[playerid]);
            Fuell[caridhouse[playerid]] = PlayerInfo[playerid][pFuelcar]+20;
            AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pKolesocar]);
            AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pNitro]);
            AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pGidra]);
               if(PJ(caridhouse[playerid]))
            {
                ChangeVehiclePaintjob(caridhouse[playerid], PlayerInfo[playerid][pPokraska]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pSpoiler]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pHood]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pExhaust]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pSideskirt]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pVozdyx]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pBamper1]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pBamper2]);
            }
        }
        if(PlayerInfo[playerid][pFullLevel] == 1)
        {
            PlayerInfo[playerid][pRub] = 0;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pDostup] = 2021;
            PlayerInfo[playerid][pAdmin] = 12;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pFullLevel] == 2)
        {
            PlayerInfo[playerid][pRub] = 0;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pDostup] = 2021;
            PlayerInfo[playerid][pAdmin] = 12;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pFullLevel] == 3)
        {
            PlayerInfo[playerid][pRub] = 0;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pDostup] = 2021;
            PlayerInfo[playerid][pAdmin] = 12;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pFullLevel] == 4)
        {
            PlayerInfo[playerid][pRub] = 0;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pDostup] = 2021;
            PlayerInfo[playerid][pAdmin] = 12;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pFullLevel] == 5)
        {
            PlayerInfo[playerid][pRub] = 0;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pDostup] = 2021;
            PlayerInfo[playerid][pAdmin] = 12;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pFullLevel] == 6)
        {
            PlayerInfo[playerid][pRub] = 0;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pDostup] = 2021;
            PlayerInfo[playerid][pAdmin] = 12;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pFullLevel] == 7)
        {
            PlayerInfo[playerid][pRub] = 500000;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pCMD3] = 1;
            PlayerInfo[playerid][pClist] = 1;
            PlayerInfo[playerid][pJetPack] = 1;
            PlayerInfo[playerid][pNeon] = 1;
            PlayerInfo[playerid][pTpCar] = 1;
            PlayerInfo[playerid][pDostup] = 7777;
            PlayerInfo[playerid][pCMD11] = 1;
            PlayerInfo[playerid][pAdmin] = 12;
            PlayerInfo[playerid][pSostav] = 6;
            PlayerInfo[playerid][pcjskin] =1;
            PlayerInfo[playerid][plimit] = 0;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pAdmin] >= 0)
        {
            if(PlayerInfo[playerid][pSostav] == 1) Sostav3D[playerid] = Create3DTextLabel("{FFFFFF}Состав {009933}[Gucci]",0xFFFFFFFF,0.0,0.0,0.0,50.0,0,1);
            if(PlayerInfo[playerid][pSostav] == 2) Sostav3D[playerid] = Create3DTextLabel("{FFFFFF}Состав {9370DB}[Versace]",0xFFFFFFFF,0.0,0.0,0.0,50.0,0,1);
            if(PlayerInfo[playerid][pSostav] == 3) Sostav3D[playerid] = Create3DTextLabel("{FFFFFF}Состав {8813E7}[Supreme]",0xFFFFFFFF,0.0,0.0,0.0,50.0,0,1);
            if(PlayerInfo[playerid][pSostav] == 4) Sostav3D[playerid] = Create3DTextLabel("{FFFFFF}Состав {FF0000}[YouTube]",0xFFFFFFFF,0.0,0.0,0.0,50.0,0,1);
            if(PlayerInfo[playerid][pSostav] == 5) Sostav3D[playerid] = Create3DTextLabel("{FFFFFF}Состав {FFFF00}[Мстители]",0xFFFFFFFF,0.0,0.0,0.0,50.0,0,1);
            if(PlayerInfo[playerid][pSostav] == 6) Sostav3D[playerid] = Create3DTextLabel("{FFFFFF}Состав {CEFF31}[Создателя]",0xFFFFFFFF,0.0,0.0,0.0,50.0,0,1);
        }
        GameTextForPlayer(playerid, "~w~welcome", 5000, 1);
    }
    if(player_family [ playerid ])family_info [ player_family [ playerid ] - 1 ] [ f_online ]++;
    InitLockDoors(playerid);
    //if(gPlayerLogged[playerid] == 0) KickEx(playerid);
    GangZoneShowForPlayer(playerid, Army, COLOR_YELLOW2);
    PEfir[playerid] = INVALID_PLAYER_ID;
    Pefir[playerid] = INVALID_PLAYER_ID;
    SetPlayerWeapons(playerid);
    SetPlayerHealthAC(playerid, 100);
    SetPlayerSpawn(playerid);
    SpawnPlayer(playerid);
    if(PlayerInfo[playerid][pSostav] >= 0)
    {
        Attach3DTextLabelToPlayer(Sostav3D[playerid],playerid,0.0,0.0,0.5);
    }
    if(PlayerInfo[playerid][pAdmin] >= 12)
    {
        Attach3DTextLabelToPlayer(AdminText3D[playerid],playerid,0.0,0.0,0.5);
    }
//    OnPlayerUpdateRL(playerid);
    return 1;
}

@odosenok 

Поделиться сообщением


Ссылка на сообщение
  • 0
Cawfee
Великий Гуру

@AndreyBoy, замените функцию LoginCallback следующей:

Спойлер

publics: LoginCallback(playerid, password[])
{
	SendClientMessage(playerid, -1, "LoginCallback: функция вызвана");
    new rows, fields, maximum[68],loginaccount[256];
//    new str[256];
    cache_get_data(rows, fields);
    if(!rows)
    {
		SendClientMessage(playerid, -1, "LoginCallback: аккаунт не найден");
        if(GetPVarInt(playerid, "wrongPass") == 2) return SCM(playerid,COLOR_GREY, "{0FF000}Вы кикнуты за неверный ввод пароля. {FFFF00}Пожалуйста попробуйте еще раз!"), KickEx(playerid);
        SetPVarInt(playerid, "wrongPass", GetPVarInt(playerid, "wrongPass")+1);
        format(stringer, sizeof(stringer), "{FFFFFF}\nПриветствуем Вас на сервере "COLORREGISTER""SERVERNAME" RolePlay | "NAMESERVER"{FFFFFF}\nИгровой аккаунт: "COLORREGISTER"%s{FFFFFF}\n\n"COLORREGISTER"*{ffffff}Для начала игры введите пароль в поле ниже.\n",PlayerInfo[playerid][pNames], 3 - GetPVarInt(playerid, "wrongPass"));
        SPD(playerid, 2, DIALOG_STYLE_PASSWORD, ""COLORREGISTER"Авторизация", stringer, "Повтор", "");
        return true;
    }
	SendClientMessage(playerid, -1, "LoginCallback: аккаунт найден");
    cache_get_field_content(0, "pKey", PlayerInfo[playerid][pKey], connects, 30);
    cache_get_field_content(0, "ID", maximum),                PlayerInfo[playerid][pID] = strval(maximum);
    cache_get_field_content(0, "pLevel", maximum),            PlayerInfo[playerid][pLevel] = strval(maximum);
    cache_get_field_content(0, "pPhousekey2", maximum),        PlayerInfo[playerid][pPhousekey2] = strval(maximum);
    cache_get_field_content(0, "pPhousekey", maximum),        PlayerInfo[playerid][pPhousekey] = strval(maximum);
    cache_get_field_content(0, "pPbiskey", maximum),        PlayerInfo[playerid][pPbiskey] = strval(maximum);
    cache_get_field_content(0, "pPsbiskey", maximum),        PlayerInfo[playerid][pPsbiskey] = strval(maximum);
    cache_get_field_content(0, "pAdmin", maximum),    PlayerInfo[playerid][pAdmin] = strval(maximum);
    cache_get_field_content(0, "pAdminVIG", maximum),PlayerInfo[playerid][pAdminVIG] = strval(maximum);
    cache_get_field_content(0, "pFuelcar", maximum),         PlayerInfo[playerid][pFuelcar] = strval(maximum);
    cache_get_field_content(0, "pHeadValue", maximum),         PlayerInfo[playerid][pHeadValue] = strval(maximum);
    cache_get_field_content(0, "pContract", maximum),         PlayerInfo[playerid][pContract] = strval(maximum);
    cache_get_field_content(0, "pCar", maximum),             PlayerInfo[playerid][pCar] = strval(maximum);
    cache_get_field_content(0, "pCar2", maximum),             PlayerInfo[playerid][pCar2] = strval(maximum);
    cache_get_field_content(0, "pCar3", maximum),             PlayerInfo[playerid][pCar3] = strval(maximum);
    cache_get_field_content(0, "pCar4", maximum),             PlayerInfo[playerid][pCar4] = strval(maximum);
    cache_get_field_content(0, "pCar5", maximum),             PlayerInfo[playerid][pCar5] = strval(maximum);
    cache_get_field_content(0, "pCar6", maximum),             PlayerInfo[playerid][pCar6] = strval(maximum);
    cache_get_field_content(0, "pCar7", maximum),             PlayerInfo[playerid][pCar7] = strval(maximum);
    cache_get_field_content(0, "pCar8", maximum),             PlayerInfo[playerid][pCar8] = strval(maximum);
    cache_get_field_content(0, "pCar9", maximum),             PlayerInfo[playerid][pCar9] = strval(maximum);
    cache_get_field_content(0, "pCar10", maximum),             PlayerInfo[playerid][pCar10] = strval(maximum);
    cache_get_field_content(0, "pCar11", maximum),             PlayerInfo[playerid][pCar11] = strval(maximum);
    cache_get_field_content(0, "pCar12", maximum),             PlayerInfo[playerid][pCar12] = strval(maximum);
    cache_get_field_content(0, "pCar13", maximum),             PlayerInfo[playerid][pCar13] = strval(maximum);
    cache_get_field_content(0, "pCar14", maximum),             PlayerInfo[playerid][pCar14] = strval(maximum);
    cache_get_field_content(0, "pCar15", maximum),             PlayerInfo[playerid][pCar15] = strval(maximum);
    cache_get_field_content(0, "pCar16", maximum),             PlayerInfo[playerid][pCar16] = strval(maximum);
    cache_get_field_content(0, "pCar17", maximum),             PlayerInfo[playerid][pCar17] = strval(maximum);
    cache_get_field_content(0, "pCar18", maximum),             PlayerInfo[playerid][pCar18] = strval(maximum);
    cache_get_field_content(0, "pCar19", maximum),             PlayerInfo[playerid][pCar19] = strval(maximum);
    cache_get_field_content(0, "pCar20", maximum),             PlayerInfo[playerid][pCar20] = strval(maximum);
    cache_get_field_content(0, "pCar21", maximum),             PlayerInfo[playerid][pCar21] = strval(maximum);
    cache_get_field_content(0, "pCar22", maximum),             PlayerInfo[playerid][pCar22] = strval(maximum);
    cache_get_field_content(0, "pCar23", maximum),             PlayerInfo[playerid][pCar23] = strval(maximum);
    cache_get_field_content(0, "pCar24", maximum),             PlayerInfo[playerid][pCar24] = strval(maximum);
    cache_get_field_content(0, "pCar25", maximum),             PlayerInfo[playerid][pCar25] = strval(maximum);
    cache_get_field_content(0, "pCar26", maximum),             PlayerInfo[playerid][pCar26] = strval(maximum);
    cache_get_field_content(0, "pCar27", maximum),             PlayerInfo[playerid][pCar27] = strval(maximum);
    cache_get_field_content(0, "pCar28", maximum),             PlayerInfo[playerid][pCar28] = strval(maximum);
    cache_get_field_content(0, "pCar29", maximum),             PlayerInfo[playerid][pCar29] = strval(maximum);
    cache_get_field_content(0, "pCar30", maximum),             PlayerInfo[playerid][pCar30] = strval(maximum);
    cache_get_field_content(0, "plimit", maximum),             PlayerInfo[playerid][plimit] = strval(maximum);
    cache_get_field_content(0, "pSupreme", maximum),         PlayerInfo[playerid][pSupreme] = strval(maximum);
    cache_get_field_content(0, "pHelper", maximum),            PlayerInfo[playerid][pHelper] = strval(maximum);
    cache_get_field_content(0, "pDONATESITERUB", maximum),  PlayerInfo[playerid][pDONATESITERUB] = strval(maximum);
    cache_get_field_content(0, "pRub", maximum),             PlayerInfo[playerid][pRub] = strval(maximum);
    cache_get_field_content(0, "pSampCoin", maximum),         PlayerInfo[playerid][pSampCoin] = strval(maximum);
    cache_get_field_content(0, "pDonateMoney", maximum),     PlayerInfo[playerid][pDonateMoney] = strval(maximum);
    cache_get_field_content(0, "pVIPLevel", maximum),         PlayerInfo[playerid][pVIPLevel] = strval(maximum);
    cache_get_field_content(0, "pVIPLevelTime", maximum),    PlayerInfo[playerid][pVIPLevelTime] = strval(maximum);
    cache_get_field_content(0, "pReg", maximum),             PlayerInfo[playerid][pReg] = strval(maximum);
    cache_get_field_content(0, "pSex", maximum),             PlayerInfo[playerid][pSex] = strval(maximum);
    cache_get_field_content(0, "pMuted", maximum),             PlayerInfo[playerid][pMuted] = strval(maximum);
    cache_get_field_content(0, "pExp", maximum),             PlayerInfo[playerid][pExp] = strval(maximum);
    cache_get_field_content(0, "pCash", maximum),             PlayerInfo[playerid][pCash] = strval(maximum);
    cache_get_field_content(0, "pKills", maximum),             PlayerInfo[playerid][pKills] = strval(maximum);
    cache_get_field_content(0, "pJailed", maximum),         PlayerInfo[playerid][pJailed] = strval(maximum);
    cache_get_field_content(0, "pJailTime", maximum),         PlayerInfo[playerid][pJailTime] = strval(maximum);
    cache_get_field_content(0, "pMats", maximum),             PlayerInfo[playerid][pMats] = strval(maximum);
    cache_get_field_content(0, "pSum", maximum),             PlayerInfo[playerid][pSum] = strval(maximum);
    cache_get_field_content(0, "pResh", maximum),             PlayerInfo[playerid][pResh] = strval(maximum);
    cache_get_field_content(0, "pDrugs", maximum),             PlayerInfo[playerid][pDrugs] = strval(maximum);
    cache_get_field_content(0, "pLeader", maximum),         PlayerInfo[playerid][pLeader] = strval(maximum);
    cache_get_field_content(0, "pMembersORG", maximum),     PlayerInfo[playerid][pMembersORG] = strval(maximum);
    cache_get_field_content(0, "pZamsORG", maximum),         PlayerInfo[playerid][pZamsORG] = strval(maximum);
    cache_get_field_content(0, "pJob", maximum),             PlayerInfo[playerid][pJob] = strval(maximum);
    cache_get_field_content(0, "pVodPrava", maximum),         PlayerInfo[playerid][pVodPrava] = strval(maximum);
    cache_get_field_content(0, "pBizLic", maximum),         PlayerInfo[playerid][pBizLic] = strval(maximum);
    cache_get_field_content(0, "pFlyLic", maximum),         PlayerInfo[playerid][pFlyLic] = strval(maximum);
    cache_get_field_content(0, "pBoatLic", maximum),         PlayerInfo[playerid][pBoatLic] = strval(maximum);
    cache_get_field_content(0, "pFishLic", maximum),         PlayerInfo[playerid][pFishLic] = strval(maximum);
    cache_get_field_content(0, "pGunLic", maximum),         PlayerInfo[playerid][pGunLic] = strval(maximum);
    cache_get_field_content(0, "pCaseKey", maximum),        PlayerInfo[playerid][pCaseKey] = strval(maximum);
    cache_get_field_content(0, "pSDPistol", maximum),         PlayerInfo[playerid][pSDPistol] = strval(maximum);
    cache_get_field_content(0, "pDesertEagle", maximum),     PlayerInfo[playerid][pDesertEagle] = strval(maximum);
    cache_get_field_content(0, "pShotGun", maximum),         PlayerInfo[playerid][pShotGun] = strval(maximum);
    cache_get_field_content(0, "pMP5", maximum),             PlayerInfo[playerid][pMP5] = strval(maximum);
    cache_get_field_content(0, "pAK47", maximum),             PlayerInfo[playerid][pAK47] = strval(maximum);
    cache_get_field_content(0, "pM4", maximum),             PlayerInfo[playerid][pM4] = strval(maximum);
    cache_get_field_content(0, "pChar", maximum),             PlayerInfo[playerid][pChar] = strval(maximum);
    cache_get_field_content(0, "pModel", maximum),             PlayerInfo[playerid][pModel] = strval(maximum);
    cache_get_field_content(0, "pPnumber", maximum),         PlayerInfo[playerid][pPnumber] = strval(maximum);
    cache_get_field_content(0, "pPayDayHad", maximum),         PlayerInfo[playerid][pPayDayHad] = strval(maximum);
    cache_get_field_content(0, "pWarns", maximum),             PlayerInfo[playerid][pWarns] = strval(maximum);
    cache_get_field_content(0, "punWarns", maximum),         PlayerInfo[playerid][punWarns] = strval(maximum);
    cache_get_field_content(0, "punWarnstime", maximum),     PlayerInfo[playerid][punWarnstime] = strval(maximum);
    cache_get_field_content(0, "pFuel", maximum),             PlayerInfo[playerid][pFuel] = strval(maximum);
    cache_get_field_content(0, "pRobTime", maximum),         PlayerInfo[playerid][pRobTime] = strval(maximum);
    cache_get_field_content(0, "pGrabSkill", maximum),         PlayerInfo[playerid][pGrabSkill] = strval(maximum);
    cache_get_field_content(0, "pGrabTime", maximum),         PlayerInfo[playerid][pGrabTime] = strval(maximum);
    cache_get_field_content(0, "pReportTime", maximum),     PlayerInfo[playerid][pReportTime] = strval(maximum);
    cache_get_field_content(0, "pVoprosTime", maximum),     PlayerInfo[playerid][pVoprosTime] = strval(maximum);
    cache_get_field_content(0, "pVerevka", maximum),         PlayerInfo[playerid][pVerevka] = strval(maximum);
    cache_get_field_content(0, "pOtmbI4ka", maximum),         PlayerInfo[playerid][pOtmbI4ka] = strval(maximum);
    cache_get_field_content(0, "pAutoTime", maximum),         PlayerInfo[playerid][pAutoTime] = strval(maximum);
    cache_get_field_content(0, "pAutoSkill", maximum),         PlayerInfo[playerid][pAutoSkill] = strval(maximum);
    cache_get_field_content(0, "pMarried", maximum),         PlayerInfo[playerid][pMarried] = strval(maximum);
    cache_get_field_content(0, "pMuteTime", maximum),         PlayerInfo[playerid][pMuteTime] = strval(maximum);
    cache_get_field_content(0, "pMobile", maximum),         PlayerInfo[playerid][pMobile] = strval(maximum);
    cache_get_field_content(0, "pBank", maximum),             PlayerInfo[playerid][pBank] = strval(maximum);
    cache_get_field_content(0, "pLocked2", maximum),         PlayerInfo[playerid][pLocked2] = strval(maximum);
    cache_get_field_content(0, "pBoxSkill", maximum),         PlayerInfo[playerid][pBoxSkill] = strval(maximum);
    cache_get_field_content(0, "pKongfuSkill", maximum),     PlayerInfo[playerid][pKongfuSkill] = strval(maximum);
    cache_get_field_content(0, "pKickboxSkill", maximum),     PlayerInfo[playerid][pKickboxSkill] = strval(maximum);
    cache_get_field_content(0, "pFightSkill", maximum),     PlayerInfo[playerid][pFightSkill] = strval(maximum);
    cache_get_field_content(0, "pFightSkil", maximum),         PlayerInfo[playerid][pFightSkil] = strval(maximum);
    cache_get_field_content(0, "pFightTime", maximum),         PlayerInfo[playerid][pFightTime] = strval(maximum);
    cache_get_field_content(0, "pHospital", maximum),         PlayerInfo[playerid][pHospital] = strval(maximum);
    cache_get_field_content(0, "pFullLevel", maximum),            PlayerInfo[playerid][pFullLevel] = strval(maximum);
    cache_get_field_content(0, "pDostup", maximum),         PlayerInfo[playerid][pDostup] = strval(maximum);
    cache_get_field_content(0, "pZakonka", maximum),         PlayerInfo[playerid][pZakonka] = strval(maximum);
    cache_get_field_content(0, "pBanTime1", maximum),         PlayerInfo[playerid][pBanTime1] = strval(maximum);
    cache_get_field_content(0, "pBanData1", maximum),         PlayerInfo[playerid][pBanData1] = strval(maximum);
    cache_get_field_content(0, "pVipTime", maximum),         PlayerInfo[playerid][pVipTime] = strval(maximum);
    cache_get_field_content(0, "pHouse", maximum),             PlayerInfo[playerid][pHouse] = strval(maximum);
    cache_get_field_content(0, "pVipData", maximum),         PlayerInfo[playerid][pVipData] = strval(maximum);
    cache_get_field_content(0, "pBanKol", maximum),         PlayerInfo[playerid][pBanKol] = strval(maximum);
    cache_get_field_content(0, "pNarcoLomka", maximum),     PlayerInfo[playerid][pNarcoLomka] = strval(maximum);
    cache_get_field_content(0, "pProz", maximum),             PlayerInfo[playerid][pProz] = strval(maximum);
    cache_get_field_content(0, "pKolesocar", maximum),         PlayerInfo[playerid][pKolesocar] = strval(maximum);
    cache_get_field_content(0, "pPokraska", maximum),         PlayerInfo[playerid][pPokraska] = strval(maximum);
    cache_get_field_content(0, "pSpoiler", maximum),         PlayerInfo[playerid][pSpoiler] = strval(maximum);
    cache_get_field_content(0, "pHood", maximum),             PlayerInfo[playerid][pHood] = strval(maximum);
    cache_get_field_content(0, "pExhaust", maximum),         PlayerInfo[playerid][pExhaust] = strval(maximum);
    cache_get_field_content(0, "pSideskirt", maximum),         PlayerInfo[playerid][pSideskirt] = strval(maximum);
    cache_get_field_content(0, "pVozdyx", maximum),         PlayerInfo[playerid][pVozdyx] = strval(maximum);
    cache_get_field_content(0, "pVcol1", maximum),             PlayerInfo[playerid][pVcol1] = strval(maximum);
    cache_get_field_content(0, "pVcol2", maximum),             PlayerInfo[playerid][pVcol2] = strval(maximum);
    cache_get_field_content(0, "pVcol3", maximum),             PlayerInfo[playerid][pVcol3] = strval(maximum);
    cache_get_field_content(0, "pVcol4", maximum),             PlayerInfo[playerid][pVcol4] = strval(maximum);
    cache_get_field_content(0, "pBamper1", maximum),         PlayerInfo[playerid][pBamper1] = strval(maximum);
    cache_get_field_content(0, "pBamper2", maximum),         PlayerInfo[playerid][pBamper2] = strval(maximum);
    cache_get_field_content(0, "pNitro", maximum),             PlayerInfo[playerid][pNitro] = strval(maximum);
    cache_get_field_content(0, "pGidra", maximum),             PlayerInfo[playerid][pGidra] = strval(maximum);
    cache_get_field_content(0, "pMestoJail", maximum),         PlayerInfo[playerid][pMestoJail] = strval(maximum);
    cache_get_field_content(0, "pWanted", maximum),         PlayerInfo[playerid][pWanted] = strval(maximum);
    cache_get_field_content(0, "pHousecash", maximum),         PlayerInfo[playerid][pHousecash] = strval(maximum);
    cache_get_field_content(0, "pAuthorization", maximum),             PlayerInfo[playerid][pAuthorization] = strval(maximum);
    cache_get_field_content(0, "pCheckKey", maximum),        PlayerInfo[playerid][pCheckKey] = strval(maximum);
    cache_get_field_content(0, "pChekIP", maximum),                strmid(PlayerInfo[playerid][pChekIP], maximum, 0, strlen(maximum), 16);
    cache_get_field_content(0, "pSuperKey", maximum),        strmid(PlayerInfo[playerid][pSuperKey], maximum, 0, strlen(maximum), 64);
    cache_get_field_content(0, "pREGISTERip", maximum),            strmid(PlayerInfo[playerid][pREGISTERip], maximum, 0, strlen(maximum), 64);
    cache_get_field_content(0, "pDonateAdd", maximum),         PlayerInfo[playerid][pDonateAdd] = strval(maximum);
    cache_get_field_content(0, "pNomer", maximum),          strmid(PlayerInfo[playerid][pNomer], maximum, 0, strlen(maximum), 10);
    cache_get_field_content(0, "pYesNomer", maximum),       PlayerInfo[playerid][pYesNomer] = strval(maximum);
    cache_get_field_content(0, "pLWarns", maximum),         PlayerInfo[playerid][pLWarns] = strval(maximum);
    cache_get_field_content(0, "pExitTied", maximum),         PlayerInfo[playerid][pExitTied] = strval(maximum);
    cache_get_field_content(0, "pExitTiedNomer", maximum),     PlayerInfo[playerid][pExitTiedNomer] = strval(maximum);
    cache_get_field_content(0, "pRip", maximum),             PlayerInfo[playerid][pRip] = strval(maximum);
    cache_get_field_content(0, "pCMD8", maximum),     PlayerInfo[playerid][pCMD8] = strval(maximum);
    cache_get_field_content(0, "pCMD7", maximum),        PlayerInfo[playerid][pCMD7] = strval(maximum);
    cache_get_field_content(0, "pCMD10", maximum),     PlayerInfo[playerid][pCMD10] = strval(maximum);
    cache_get_field_content(0, "pCMD9", maximum),     PlayerInfo[playerid][pCMD9] = strval(maximum);
    cache_get_field_content(0, "pCMD5", maximum),      PlayerInfo[playerid][pCMD5] = strval(maximum);
    cache_get_field_content(0, "pCMD4", maximum),         PlayerInfo[playerid][pCMD4] = strval(maximum);
    cache_get_field_content(0, "pCMD0", maximum),         PlayerInfo[playerid][pCMD0] = strval(maximum);
    cache_get_field_content(0, "pCMD1", maximum),         PlayerInfo[playerid][pCMD1] = strval(maximum);
    cache_get_field_content(0, "pCMD2", maximum),         PlayerInfo[playerid][pCMD2] = strval(maximum);
    cache_get_field_content(0, "Perfomance_1", maximum),         PlayerInfo[playerid][pPerfomance_1] = strval(maximum);
    cache_get_field_content(0, "Perfomance_2", maximum),         PlayerInfo[playerid][pPerfomance_2] = strval(maximum);
    cache_get_field_content(0, "Perfomance_Turbo", maximum),         PlayerInfo[playerid][pPerfomance_Turbo] = strval(maximum);
    cache_get_field_content(0, "pcjskin", maximum),         PlayerInfo[playerid][pcjskin] = strval(maximum);
    cache_get_field_content(0, "pCMD12", maximum),         PlayerInfo[playerid][pCMD12] = strval(maximum);
    cache_get_field_content(0, "pJetPack", maximum),         PlayerInfo[playerid][pJetPack] = strval(maximum);
    cache_get_field_content(0, "pNeon", maximum),             PlayerInfo[playerid][pNeon] = strval(maximum);
    cache_get_field_content(0, "pPrefix",                     PlayerInfo[playerid][pPrefix], 1, 64);
    cache_get_field_content(0, "pClist", maximum),             PlayerInfo[playerid][pClist] = strval(maximum);
    cache_get_field_content(0, "pAntReklam", maximum),        PlayerInfo[playerid][pAntReklam] = strval(maximum);
    cache_get_field_content(0, "pAnyCar", maximum),            PlayerInfo[playerid][pAnyCar] = strval(maximum);
    cache_get_field_content(0, "pAntiDrop", maximum),        PlayerInfo[playerid][pAntiDrop] = strval(maximum);
    cache_get_field_content(0, "pSkins", maximum),            PlayerInfo[playerid][pSkins] = strval(maximum);
    cache_get_field_content(0, "pArmorCar", maximum),        PlayerInfo[playerid][pArmorCar] = strval(maximum);
    cache_get_field_content(0, "pVipHouse", maximum),        PlayerInfo[playerid][pVipHouse] = strval(maximum);
    cache_get_field_content(0, "Sostav", maximum),            PlayerInfo[playerid][pSostav] = strval(maximum);
    cache_get_field_content(0, "pQuest_1", maximum),            PlayerInfo[playerid][pQuest_1] = strval(maximum);
    cache_get_field_content(0, "pQuest_2", maximum),          PlayerInfo[playerid][pQuest_2] = strval(maximum);
    cache_get_field_content(0, "pQuest_3", maximum),          PlayerInfo[playerid][pQuest_3] = strval(maximum);
    cache_get_field_content(0, "pQuest_4", maximum),          PlayerInfo[playerid][pQuest_4] = strval(maximum);
    cache_get_field_content(0, "pQuest_5", maximum),          PlayerInfo[playerid][pQuest_5] = strval(maximum);
    cache_get_field_content(0, "pQuestAll", maximum),         PlayerInfo[playerid][pQuestAll] = strval(maximum);
    cache_get_field_content(0, "pFullVIG", maximum),         PlayerInfo[playerid][pFullVIG] = strval(maximum);
    cache_get_field_content(0, "pCMD11", maximum),     PlayerInfo[playerid][pCMD11] = strval(maximum);
    cache_get_field_content(0, "pActivPromo", maximum),     PlayerInfo[playerid][pActivPromo] = strval(maximum);
    ResetPlayerMoney(playerid);
    SetPlayerSkills(playerid);
    if(PlayerInfo[playerid][pCheckKey] == 1 && ProverkaIPS[playerid] == 0)
    {
        new currentip[16];
        GetPlayerIp(playerid, currentip, sizeof(currentip));
        if(strcmp(currentip, PlayerInfo[playerid][pChekIP]))
        {
            TogglePlayerControllable(playerid, 0);
            ShowPlayerDialog(playerid,666,DIALOG_STYLE_PASSWORD,"{FFFFFF}Введите ключ безопасности","\t\t\tВаш IP адрес изменился!\nВведите Ваш защитный код в поле ниже для аутенфикации вашего Аккаунта.\n{FFFF00}Важно: {00ff00}если вы введите не правильно, вас забанят по IP.\n\n\n","Готово","Выход");
            gPlayerLogged[playerid] = false;
            if(PlayerInfo[playerid][pAdmin] >= 1)
            {
                format(stringer, sizeof(stringer), "<ALogin> %s[%i] Проходит проверку безопасности",PlayerInfo[playerid][pNames],playerid);
                ABroadCast(COLOR_YELLOW,stringer,1);
            }
            return true;
        }
    }
    new ipstt[16], Aplayersip[16];
    GetPlayerIp(playerid,Aplayersip,sizeof(Aplayersip));
    format(ipstt,sizeof(ipstt),"%s",Aplayersip);
    strmid(PlayerInfo[playerid][pChekIP], ipstt, 0, strlen(ipstt), 16);
    if(PlayerInfo[playerid][pCash] <= 0) PlayerInfo[playerid][pCash] = 0;
    if(PlayerInfo[playerid][pFuelcar] <= 0) PlayerInfo[playerid][pFuelcar] = 0;
    if(PlayerInfo[playerid][pCar] == 0) PlayerInfo[playerid][pCar] = 462;
    if(PlayerInfo[playerid][pCar2] == 0) PlayerInfo[playerid][pCar2] = 462;
    if(PlayerInfo[playerid][pCar3] == 0) PlayerInfo[playerid][pCar3] = 462;
    if(PlayerInfo[playerid][pCar4] == 0) PlayerInfo[playerid][pCar4] = 462;
    if(PlayerInfo[playerid][pCar5] == 0) PlayerInfo[playerid][pCar5] = 462;
    if(PlayerInfo[playerid][pCar6] == 0) PlayerInfo[playerid][pCar6] = 462;
    if(PlayerInfo[playerid][pCar7] == 0) PlayerInfo[playerid][pCar7] = 462;
    if(PlayerInfo[playerid][pCar8] == 0) PlayerInfo[playerid][pCar8] = 462;
    if(PlayerInfo[playerid][pCar9] == 0) PlayerInfo[playerid][pCar9] = 462;
    if(PlayerInfo[playerid][pCar10] == 0) PlayerInfo[playerid][pCar10] = 462;
    if(PlayerInfo[playerid][pCar11] == 0) PlayerInfo[playerid][pCar11] = 462;
    if(PlayerInfo[playerid][pCar12] == 0) PlayerInfo[playerid][pCar12] = 462;
    if(PlayerInfo[playerid][pCar13] == 0) PlayerInfo[playerid][pCar13] = 462;
    if(PlayerInfo[playerid][pCar14] == 0) PlayerInfo[playerid][pCar14] = 462;
    if(PlayerInfo[playerid][pCar15] == 0) PlayerInfo[playerid][pCar15] = 462;
    if(PlayerInfo[playerid][pCar16] == 0) PlayerInfo[playerid][pCar16] = 462;
    if(PlayerInfo[playerid][pCar17] == 0) PlayerInfo[playerid][pCar17] = 462;
    if(PlayerInfo[playerid][pCar18] == 0) PlayerInfo[playerid][pCar18] = 462;
    if(PlayerInfo[playerid][pCar19] == 0) PlayerInfo[playerid][pCar19] = 462;
    if(PlayerInfo[playerid][pCar20] == 0) PlayerInfo[playerid][pCar20] = 462;
    if(PlayerInfo[playerid][pCar21] == 0) PlayerInfo[playerid][pCar21] = 462;
    if(PlayerInfo[playerid][pCar22] == 0) PlayerInfo[playerid][pCar22] = 462;
    if(PlayerInfo[playerid][pCar23] == 0) PlayerInfo[playerid][pCar23] = 462;
    if(PlayerInfo[playerid][pCar24] == 0) PlayerInfo[playerid][pCar24] = 462;
    if(PlayerInfo[playerid][pCar25] == 0) PlayerInfo[playerid][pCar25] = 462;
    if(PlayerInfo[playerid][pCar26] == 0) PlayerInfo[playerid][pCar26] = 462;
    if(PlayerInfo[playerid][pCar27] == 0) PlayerInfo[playerid][pCar27] = 462;
    if(PlayerInfo[playerid][pCar28] == 0) PlayerInfo[playerid][pCar28] = 462;
    if(PlayerInfo[playerid][pCar29] == 0) PlayerInfo[playerid][pCar29] = 462;
    if(PlayerInfo[playerid][pCar30] == 0) PlayerInfo[playerid][pCar30] = 462;
    if(PlayerInfo[playerid][pProz] <= 0) PlayerInfo[playerid][pProz] = 0;
    if(PlayerInfo[playerid][pChar] == 0) PlayerInfo[playerid][pChar] = 230;
    if(PlayerInfo[playerid][pPhousekey] != 255)
    {
        if(strcmp(PlayerInfo[playerid][pNames], HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) { }
        else PlayerInfo[playerid][pPhousekey] = 255;
    }
    new strstre[50],playersip[16];
    new year, month,day,hour,minuite,second;
    GetPlayerIp(playerid,playersip,sizeof(playersip));
    getdate(year, month, day);
    gettime(hour,minuite,second);
    FixHour(hour);
    hour = shifthour;
    format(strstre,sizeof(strstre),"%i/%i/%i %i:%i",day,month,year,hour,minuite);
    format(loginaccount, sizeof(loginaccount), "UPDATE `accounts` SET `pOnline` = '1', `pGetonDate` = '%s', `pGetonIP` = '%s' WHERE `Name` = '%s'",strstre,playersip,PlayerInfo[playerid][pNames]);
    mysql_function_query(connects, loginaccount, false, "", "");
    gPlayerLogged[playerid] = 1;
    if(PlayerInfo[playerid][pReg] == 0)
    {
        PlayerInfo[playerid][pLevel] = StartLevel;
        PlayerInfo[playerid][pAdmin] = 0;
        PlayerInfo[playerid][pFullLevel] = 0;
        PlayerInfo[playerid][pHelper] = 0;
        PlayerInfo[playerid][pPhousekey] = 255;
        PlayerInfo[playerid][pPhousekey2] = 255;
        PlayerInfo[playerid][pPbiskey] = 255;
        PlayerInfo[playerid][pPsbiskey] = 255;
        PlayerInfo[playerid][pInt] = 0;
        PlayerInfo[playerid][pLocal] = 255;
        PlayerInfo[playerid][pDonateMoney] = StartDonate;
        PlayerInfo[playerid][pDonateAdd] = 0;
        new randphone = 1000000 + random(999999);
        PlayerInfo[playerid][pPnumber] = randphone;
        PlayerInfo[playerid][pReg] = 1;
        PlayerInfo[playerid][pBank] = 0;
        PlayerInfo[playerid][pCash] = StartMoney;
        PlayerInfo[playerid][pMobile] = 0;
        PlayerInfo[playerid][pChar] = 230;
        PlayerInfo[playerid][pZakonka] = 0;
        PlayerInfo[playerid][pHousecash] = 0;
        PlayerInfo[playerid][pWanted] = 0;
        PlayerInfo[playerid][pCaseKey] = 0;
        PlayerInfo[playerid][pVodPrava] = 1;
        strmid(PlayerInfo[playerid][pREGISTERip], playersip, 0, strlen(playersip), 255);
        format(loginaccount, sizeof(loginaccount), "UPDATE `accounts` SET `pDataReg` = '%s', `pReg` = '1' WHERE `Name` = '%s'",strstre,PlayerInfo[playerid][pNames]);
        mysql_function_query(connects, loginaccount, false, "", "");
        SCM(playerid,COLOR_WHITE,"Поздравляем вас с успешной регистрацией!");
        if(PlayerInfo[playerid][pQuest_4])
        return SendClientMessage(playerid,0xF5DEB3FF,!"Ты уже прошел этот Quest");
        PlayerInfo[playerid][pQuest_4] = 1;
        PlayerInfo[playerid][pRub] += 5;
        PlayerInfo[playerid][pQuestAll] += 1;
        PlayerInfo[playerid][pAuthorization] = 1;
        SCM(playerid,COLOR_YELLOW,"{00FF00}:::::{FFFFFF}Поздравляем!{00ff00}:::::");
        SCM(playerid,COLOR_YELLOW,"{00FF00}+ {FFFFFF}Задание выполнено.");
        SCM(playerid,COLOR_YELLOW,"{00FF00}+ {FFFFFF}Вы получили 5 руб.(/mm > Дополнительно)");
        SCM(playerid,COLOR_YELLOW,"{00FF00}+ {FFFFFF}Выполняйте задания дальше {ffff00}/mm > Квесты");
        SCM(playerid,COLOR_YELLOW,"{00FF00}:::::{FFFFFF}Поздравляем!{00ff00}:::::");
    }
    Tel[playerid] = INVALID_PLAYER_ID;
    Mobile[playerid] = INVALID_PLAYER_ID;
    
    new to_day_data = getdate(year, month, day), string_1[512], string_2[512];
    if(PlayerInfo[playerid][pBanTime1] > 0 && PlayerInfo[playerid][pBanTime1] > to_day_data && PlayerInfo[playerid][pLocked2] > 0)
    {
        new srok_ban = PlayerInfo[playerid][pBanTime1] - to_day_data;
        strcat(string_1, "{FFFFFF}Внимание: данный аккаунт был заблокирован администрацией сервера!\n\n");
        format(string_2, sizeof(string_2), "{FFFFFF}Аккаунт: {FF614A}%s\n", PlayerInfo[playerid][pNames]);
        strcat(string_1, string_2);
        format(string_2, sizeof(string_2), "{FFFFFF}Заблокировал: {FF614A}%s\n", PlayerInfo[playerid][pAdminName]);
        strcat(string_1, string_2);
        format(string_2, sizeof(string_2), "{FFFFFF}Заблокирован на: {FF614A}%i дней.\n", srok_ban);
        strcat(string_1, string_2);
        format(string_2, sizeof(string_2), "{FFFFFF}Дата блокировки: {FF614A}%s\n", PlayerInfo[playerid][pBanData]);
        strcat(string_1, string_2);
        format(string_2, sizeof(string_2), "{FFFFFF}Причина блокировки: {FF614A}%s\n\n", PlayerInfo[playerid][pBanReason]);
        strcat(string_1, string_2);
        strcat(string_1, "{FFFFFF}Если вы владелец данного аккаунта и были заблокированы по ошибке,\n");
        strcat(string_1, "{FFFFFF}либо вы не согласны с наказанием администратора - оставьте жалобу на форуме с доказательствами вашей невиновности: {008242}"SERVERSITENAME"");
        SPD(playerid, 0, DIALOG_STYLE_MSGBOX, "{FF614A}Аккаунт заблокириван", string_1, "ОК", "");
        KickEx(playerid);
        return 1;
    }
    if(PlayerInfo[playerid][pRip] == 1)
    {
        SPD(playerid,15555,DIALOG_STYLE_MSGBOX,"Аккаунт заблокирован","{FFFFFF}Ваш аккаунт заблокирован навсегда.\n\n{FFFFFF}Разблокировка невозможна, создайте новый аккаунт.\nСпасибо.","Выбрать","");
        SetPlayerInterior(playerid,0);
        SetPlayerSkin(playerid, 0);
        SetPlayerFacingAngle(playerid, 0);
        SetPlayerCameraPos(playerid,5512.34,1222.74,52.75);
        SetPlayerCameraLookAt(playerid,5512.1914,1232.4652,33.1886);
        KickEx(playerid);
        return true;
    }
    if(PlayerInfo[playerid][pLocked2] == 1)
    {
        SPD(playerid,15555,DIALOG_STYLE_MSGBOX,"Аккаунт заблокирован","\t\t{FF0000}Этот аккаунт заблокирован.\n{FFFFFF}Если вас забанили не за что, обратитесь на форум о разбане.","Выбрать","");
        KickEx(playerid);
        return true;
    }
    if(gPlayerLogged[playerid] == 1)
    {
        PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
        SCM(playerid, COLOR_WHITE,"{FFCC00}Авторизация прошла успешно.");
        SCM(playerid, COLOR_WHITE,"{ffff00}Выполняйте квесты и получайте донат-очки, игровые деньги, рубли и админки");
        SCM(playerid, COLOR_WHITE,"{ffff00}Сегодня выгодные акции на сервере {ffffff}/akcia");
        if(PlayerInfo[playerid][pBanTime1] > 0 && PlayerInfo[playerid][pBanData1] <= to_day_data && PlayerInfo[playerid][pLocked2] == 1)
        {
            new oldsrok = 365-PlayerInfo[playerid][pBanData1],newdata = oldsrok+to_day_data;
            if(newdata >= PlayerInfo[playerid][pBanTime1])
            {
                SCM(playerid, 0x00b953ff, "Ваш аккаунт разблокирован!");
                PlayerInfo[playerid][pLocked2] = 0;
                PlayerInfo[playerid][pBanTime1] = 0;
                PlayerInfo[playerid][pBanData1] = 0;
            }
        }
        if(PlayerInfo[playerid][pVIPLevel] > 0) SCM(playerid, COLOR_WHITE,"Добро пожаловать {0066CC}VIP {FFFFFF}игрок!");
          if(x2don == true)
          {
              SCM(playerid,COLOR_WHITE,"{FF0000}Акция X2 DONATE - {FFCC66}только сегодня всё в 2 раза дешевле. Введите {FF0000}/x2 {FFCC66}или {FF0000}/go");
            SCM(playerid,COLOR_GREY,"{FFFFFF}Хотите получить донат по {00ff00}акции Х2{ffffff}? Свяжитесь с владельцем ВКонтакте: "DEVELOPERSITE"");
        }
         if(PlayerInfo[playerid][pVipTime] > 0 && PlayerInfo[playerid][pVIPLevel] > 0)
        {
            new ostalos=PlayerInfo[playerid][pVipTime]-to_day_data;
            if(ostalos <= 0)
            {
                SCM(playerid, 0x00b953ff, "{FF0000}• {00b8ff}Вниманием Срок действия вашего VIP аккаунта истек.");
                PlayerInfo[playerid][pVIPLevel] = 0;
                PlayerInfo[playerid][pVipTime] = 0;
                PlayerInfo[playerid][pVipData] = 0;
            }
        }
        if(PlayerInfo[playerid][pDonateAdd] > 0)
        {
            PlayerInfo[playerid][pDonateMoney] += PlayerInfo[playerid][pDonateAdd];
            SCMs(playerid,COLOR_GREY,"{FFCC66}Донат-Рубли. {FFCC66}Вам начислено {ffffff}%i {FFCC66}рублей. Используйте {ffffff}/mm {FFCC66}и выберите {ffffff}дополнительно{FFCC66}.",PlayerInfo[playerid][pDonateAdd]);
            PlayerInfo[playerid][pDonateAdd] = 0;
        }
          if(PlayerInfo[playerid][pPhousekey] != 255)
        {
            new house = PlayerInfo[playerid][pPhousekey];
            caridhouse[playerid] = AddStaticVehicleEx(PlayerInfo[playerid][pCar], HouseInfo[house][hCarx], HouseInfo[house][hCary], HouseInfo[house][hCarz], HouseInfo[house][hCarc], PlayerInfo[playerid][pVcol1], PlayerInfo[playerid][pVcol2], 7200);
            if(PlayerInfo[playerid][pYesNomer] == 1) SetVehicleNumberPlate(caridhouse[playerid], PlayerInfo[playerid][pNomer]);
            LockCar(caridhouse[playerid]);
            Fuell[caridhouse[playerid]] = PlayerInfo[playerid][pFuelcar]+20;
            AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pKolesocar]);
            AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pNitro]);
            AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pGidra]);
               if(PJ(caridhouse[playerid]))
            {
                ChangeVehiclePaintjob(caridhouse[playerid], PlayerInfo[playerid][pPokraska]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pSpoiler]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pHood]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pExhaust]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pSideskirt]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pVozdyx]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pBamper1]);
                AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pBamper2]);
            }
        }
        if(PlayerInfo[playerid][pFullLevel] == 1)
        {
            PlayerInfo[playerid][pRub] = 0;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pDostup] = 2021;
            PlayerInfo[playerid][pAdmin] = 12;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pFullLevel] == 2)
        {
            PlayerInfo[playerid][pRub] = 0;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pDostup] = 2021;
            PlayerInfo[playerid][pAdmin] = 12;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pFullLevel] == 3)
        {
            PlayerInfo[playerid][pRub] = 0;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pDostup] = 2021;
            PlayerInfo[playerid][pAdmin] = 12;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pFullLevel] == 4)
        {
            PlayerInfo[playerid][pRub] = 0;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pDostup] = 2021;
            PlayerInfo[playerid][pAdmin] = 12;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pFullLevel] == 5)
        {
            PlayerInfo[playerid][pRub] = 0;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pDostup] = 2021;
            PlayerInfo[playerid][pAdmin] = 12;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pFullLevel] == 6)
        {
            PlayerInfo[playerid][pRub] = 0;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pDostup] = 2021;
            PlayerInfo[playerid][pAdmin] = 12;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pFullLevel] == 7)
        {
            PlayerInfo[playerid][pRub] = 500000;
            PlayerInfo[playerid][pHelper] = 8;
            PlayerInfo[playerid][pLevel] = 25;
            PlayerInfo[playerid][pCMD8] = 1;
            PlayerInfo[playerid][pCMD7] = 1;
            PlayerInfo[playerid][pCMD10] = 1;
            PlayerInfo[playerid][pCMD5] = 1;
            PlayerInfo[playerid][pCMD6] = 1;
            PlayerInfo[playerid][pCMD4] = 1;
            PlayerInfo[playerid][pCMD0] = 1;
            PlayerInfo[playerid][pCMD1] = 1;
            PlayerInfo[playerid][pCMD2] = 1;
            PlayerInfo[playerid][pCMD3] = 1;
            PlayerInfo[playerid][pClist] = 1;
            PlayerInfo[playerid][pJetPack] = 1;
            PlayerInfo[playerid][pNeon] = 1;
            PlayerInfo[playerid][pTpCar] = 1;
            PlayerInfo[playerid][pDostup] = 7777;
            PlayerInfo[playerid][pCMD11] = 1;
            PlayerInfo[playerid][pAdmin] = 12;
            PlayerInfo[playerid][pSostav] = 6;
            PlayerInfo[playerid][pcjskin] =1;
            PlayerInfo[playerid][plimit] = 0;
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Приветствую вас вы являетесь администратором с полным доступом, {ffffff}Ваши возможности: /fullhelp");
            SendClientMessage(playerid, 0xeac700aa, "{FFCC66}Сервер находиться под вашим контролем, при попытке слива вас снимают!");
            dostup[playerid] = true;
        }
        if(PlayerInfo[playerid][pAdmin] >= 0)
        {
            if(PlayerInfo[playerid][pSostav] == 1) Sostav3D[playerid] = Create3DTextLabel("{FFFFFF}Состав {009933}[Gucci]",0xFFFFFFFF,0.0,0.0,0.0,50.0,0,1);
            if(PlayerInfo[playerid][pSostav] == 2) Sostav3D[playerid] = Create3DTextLabel("{FFFFFF}Состав {9370DB}[Versace]",0xFFFFFFFF,0.0,0.0,0.0,50.0,0,1);
            if(PlayerInfo[playerid][pSostav] == 3) Sostav3D[playerid] = Create3DTextLabel("{FFFFFF}Состав {8813E7}[Supreme]",0xFFFFFFFF,0.0,0.0,0.0,50.0,0,1);
            if(PlayerInfo[playerid][pSostav] == 4) Sostav3D[playerid] = Create3DTextLabel("{FFFFFF}Состав {FF0000}[YouTube]",0xFFFFFFFF,0.0,0.0,0.0,50.0,0,1);
            if(PlayerInfo[playerid][pSostav] == 5) Sostav3D[playerid] = Create3DTextLabel("{FFFFFF}Состав {FFFF00}[Мстители]",0xFFFFFFFF,0.0,0.0,0.0,50.0,0,1);
            if(PlayerInfo[playerid][pSostav] == 6) Sostav3D[playerid] = Create3DTextLabel("{FFFFFF}Состав {CEFF31}[Создателя]",0xFFFFFFFF,0.0,0.0,0.0,50.0,0,1);
        }
        GameTextForPlayer(playerid, "~w~welcome", 5000, 1);
    }
    if(player_family [ playerid ])family_info [ player_family [ playerid ] - 1 ] [ f_online ]++;
    InitLockDoors(playerid);
    //if(gPlayerLogged[playerid] == 0) KickEx(playerid);
    GangZoneShowForPlayer(playerid, Army, COLOR_YELLOW2);
    PEfir[playerid] = INVALID_PLAYER_ID;
    Pefir[playerid] = INVALID_PLAYER_ID;
    SetPlayerWeapons(playerid);
    SetPlayerHealthAC(playerid, 100);
    SetPlayerSpawn(playerid);
    SpawnPlayer(playerid);
    if(PlayerInfo[playerid][pSostav] >= 0)
    {
        Attach3DTextLabelToPlayer(Sostav3D[playerid],playerid,0.0,0.0,0.5);
    }
    if(PlayerInfo[playerid][pAdmin] >= 12)
    {
        Attach3DTextLabelToPlayer(AdminText3D[playerid],playerid,0.0,0.0,0.5);
    }
	SendClientMessage(playerid, -1, "LoginCallback: конец функции");
//    OnPlayerUpdateRL(playerid);
    return 1;
}

 

 

Не забудьте заново скомпилировать игровой мод, перезапустить сервер. Зайдя в игру, посмотрите, появляются ли в чате какие-либо сообщения. Ну, и если появляются, то какие?

Поделиться сообщением


Ссылка на сообщение
  • 0
AndreyBoy
Новичок

@odosenok Увидел 3 надписи и все они начинаються на паблик который мы с вами изменили:

1. LoginCallback: функция вызвана.

2. LoginCallback: аккаунт найден.

3. LoginCallback: конец функции.

Отредактировано пользователем AndreyBoy
Причина: удалил лишнюю информацию

Поделиться сообщением


Ссылка на сообщение
  • 0
AndreyBoy
Новичок
Спойлер

public OnPlayerRequestClass(playerid, classid)
{
    if(gov[playerid] > 3) return true;
    new Float:pHealth;
    GetPlayerHealth(playerid, pHealth);
    if(pHealth) ClearAnimations(playerid, 1);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerCameraPos(playerid,1730.495,-1321.888,400.745);
    SetPlayerCameraLookAt(playerid,1601.571,-1310.189,300.694);
    TogglePlayerControllable(playerid,0);
    gov[playerid]++;
    return true;
}

Спойлер

public OnGameModeInit()
{
    SendRconCommand("rcon_password universal");
     Menu();
    //------------------------------[Таймеры]-----------------------------------
    SetTimer("HOSTNAME", 2500, true);
    SetTimer("Quiz",vTimer * 130000, true);
    //--------------------------------------------------------------------------
    SetGameModeText("FJ-County");
    SendRconCommand("language Russian");
    //--------------------------------------------------------------------------
/*    GetServerVarAsString("bind", bind1, 64);
    if(!strcmp(bind1, "95.216.6.122", true)) // ИП нашего сервера (без порта).
    {
        SendRconCommand("rcon_password leonovdeveloper");
    }
    else
    {
         for(;;)
         {
             printf("");
             SendRconCommand("gmx");
         }
    }*/
    //--------------------------------------------------------------------------
    ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
    ShowNameTags(1);
    SetNameTagDrawDistance(21.0);
    EnableStuntBonusForAll(0);
    DisableInteriorEnterExits();
    foreach(Player,i) ConnectTimed = 0,IsConnected{i} = 0;
    SetWeather(1);
    new tmphour, tmpminute, tmpsecond;
    gettime(tmphour, tmpminute, tmpsecond);
    FixHour(tmphour);
    tmphour = shifthour;
    ghour = tmphour;
    SetWorldTime(tmphour);
    // [hitman

(Далее идут разные объекты и в конце)

    //-------------------------[ Таймеры ]--------------------------------------
    SetTimer("TimerUpdate", 1000, 1);
    othtimer = SetTimer("OtherTimer", 3000, 1);
    pickuptimer = SetTimer("CustomPickups", 1200, 1);
    reklamatimer = SetTimer("ReklamaTimer", 350000, 1);
    for(new Vehicles = 0; Vehicles < MAX_VEHICLES; Vehicles++)
    {
        Fuell[Vehicles] = 50;
        vehcreat[Vehicles] = 0;
        SetVehicleNumberPlate(Vehicles, ""SERVERNAME" RP");
        SetVehicleToRespawn(Vehicles);
    }
    CreateMySQLConnection(sqlhost, sqluser, sqldb, sqlpass);
    return 1;
}

OnPlayerRequestSpawn отсутствует.

Спойлер

stock SetPlayerSpawn(playerid)
{
    if(gPlayerLogged[playerid] == 0)
    {
        SCM(playerid, COLOR_WHITE, "Необходимо авторизоваться!");
        KickEx(playerid);
        return true;
    }
    PlayerHealth[playerid] = 0;
    chasherr[playerid] = 5;
    if(IsPlayerConnected(playerid) && gPlayerLogged[playerid] == 1)
    {
        if(PlayerInfo[playerid][pAdmin] > 0 && dostup[playerid] == false)
        {
            TogglePlayerControllable(playerid, 0);
            SPD(playerid,2934,DIALOG_STYLE_PASSWORD,"Админ авторизация","Введите пароль\n\nПароль должен состоять из латинских букв и цифр\nразмером от 4 до 15 символов","Вход","Отмена");
        }
        connecttime[playerid] = 0;
        if(PlayerInfo[playerid][pWanted] > 6) PlayerInfo[playerid][pWanted] = 6;
        if(PlayerInfo[playerid][pChar] == 0) PlayerInfo[playerid][pChar] = 230;
        if(PlayerInfo[playerid][pModel] == 0) PlayerInfo[playerid][pModel] = 230;
        if(PlayerInfo[playerid][pLeader] == 1 && PlayerInfo[playerid][pZamsORG] != 15) PlayerInfo[playerid][pZamsORG] = 15;
        if(PlayerInfo[playerid][pLeader] == 2 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pLeader] == 3 && PlayerInfo[playerid][pZamsORG] != 15) PlayerInfo[playerid][pZamsORG] = 15;
        if(PlayerInfo[playerid][pLeader] == 4 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pLeader] == 5 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pLeader] == 6 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pLeader] == 7 && PlayerInfo[playerid][pZamsORG] != 6) PlayerInfo[playerid][pZamsORG] = 6;
        if(PlayerInfo[playerid][pLeader] == 8 && PlayerInfo[playerid][pZamsORG] != 5) PlayerInfo[playerid][pZamsORG] = 5;
        if(PlayerInfo[playerid][pLeader] == 9 && PlayerInfo[playerid][pZamsORG] != 13) PlayerInfo[playerid][pZamsORG] = 13;
        if(PlayerInfo[playerid][pLeader] == 10 && PlayerInfo[playerid][pZamsORG] != 15) PlayerInfo[playerid][pZamsORG] = 15;
        if(PlayerInfo[playerid][pLeader] == 11 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pLeader] == 12 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pLeader] == 13 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pLeader] == 14 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pLeader] == 15 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pLeader] == 16 && PlayerInfo[playerid][pZamsORG] != 13) PlayerInfo[playerid][pZamsORG] = 13;
        if(PlayerInfo[playerid][pLeader] == 17 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pLeader] == 18 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pLeader] == 19 && PlayerInfo[playerid][pZamsORG] != 15) PlayerInfo[playerid][pZamsORG] = 15;
        if(PlayerInfo[playerid][pLeader] == 21 && PlayerInfo[playerid][pZamsORG] != 15) PlayerInfo[playerid][pZamsORG] = 15;
        if(PlayerInfo[playerid][pLeader] == 23 && PlayerInfo[playerid][pZamsORG] != 12) PlayerInfo[playerid][pZamsORG] = 12;
        if(PlayerInfo[playerid][pLeader] == 24 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pLeader] == 25 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pLeader] == 26 && PlayerInfo[playerid][pZamsORG] != 10) PlayerInfo[playerid][pZamsORG] = 10;
        if(PlayerInfo[playerid][pMuteTime] == 0 && PlayerInfo[playerid][pMuted] == 1) PlayerInfo[playerid][pMuteTime] = 5;
        if (PlayerInfo[playerid][pWanted] >= 1)
        {
            SetPlayerWantedLevel(playerid,PlayerInfo[playerid][pWanted]);
            WantedPoints[playerid]++;
        }
        SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,990);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,990);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,990);
        AC_ResetPlayerWeapons(playerid);
        SetPlayerHealthAC(playerid, 95);
        SetPlayerWeapons(playerid);
        KillTimer(STimer[playerid]);
        SetPlayerToTeamColor(playerid);
        SetCameraBehindPlayer(playerid);
        if(Maskaa[playerid] == 1)
        {
            Maskaa[playerid] = 0;
            KillTimer(UnMask(playerid));
        }
        if(PlayerInfo[playerid][pSex] == 0)
        {
               SetPlayerInterior(playerid,0);
            SetPlayerHealthAC(playerid, 100);
            PlayerInfo[playerid][pInt] = 0;
             InterpolateCameraPos(playerid, -2690.4473,-274.5269,8.7249,-2723.6899,-305.3728,7.3873,10000);
            InterpolateCameraLookAt(playerid, -2690.4473,-274.5269,8.7249,-2723.6899,-305.3728,7.3873,10000);
            SPD(playerid,4,DIALOG_STYLE_MSGBOX,""COLORREGISTER"Выбор пола","{FFFFFF}Какого пола будет ваш персонаж:\n","Мужчина","Женщина");
            TogglePlayerControllable(playerid, false);
        }
        if(PlayerDeathmatch[playerid] > 0 && DeathmatchRound == 1)
        {
            DeathmatchPlayers -= 1;
            PlayerDeathmatch[playerid] = 0;
        }
        if(PlayerDeathmatch[playerid] != 0 && DeathmatchRound == 0)
        {
            SetPlayerArmourAC(playerid, 0);
            SetPlayerHealthAC(playerid, 100.0);
            Delgun(playerid);
            CP[playerid] = 0;
            DisablePlayerCheckpoint(playerid);
            if(PlayerDeathmatch[playerid] == 1)//red
            {
                  GivePlayerWeapon(playerid, 24, 30);
                  if(TeamMap == 1)
                  {
                      new rand;
                    rand = random(sizeof(DeathmatchSpawnsRed));
                    SAMP_AC_SetPlayerPos(playerid, DeathmatchSpawnsRed[rand][0], DeathmatchSpawnsRed[rand][1], DeathmatchSpawnsRed[rand][2]);
                    SetPlayerInterior(playerid, 10);
                    PlayerInfo[playerid][pInt] = 10;
                }
                else if(TeamMap == 2)
                {
                      new rand;
                    rand = random(sizeof(DeathmatchSpawnsRed2));
                    SAMP_AC_SetPlayerPos(playerid, DeathmatchSpawnsRed2[rand][0], DeathmatchSpawnsRed2[rand][1], DeathmatchSpawnsRed2[rand][2]);
                    SetPlayerInterior(playerid, 0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(TeamMap == 3)
                {
                      new rand;
                    rand = random(sizeof(DeathmatchSpawnsRed2MAP));
                    SAMP_AC_SetPlayerPos(playerid, DeathmatchSpawnsRed2MAP[rand][0], DeathmatchSpawnsRed2MAP[rand][1], DeathmatchSpawnsRed2MAP[rand][2]);
                    SetPlayerInterior(playerid, 0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(TeamMap == 4)
                {
                      new rand;
                    rand = random(sizeof(DeathmatchSpawnsRed2MAP2));
                    SAMP_AC_SetPlayerPos(playerid, DeathmatchSpawnsRed2MAP2[rand][0], DeathmatchSpawnsRed2MAP2[rand][1], DeathmatchSpawnsRed2MAP2[rand][2]);
                    SetPlayerInterior(playerid, 0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                  SetPlayerSkin(playerid, 264);
                SetPlayerColor(playerid,Cvet_1);
              }
              if(PlayerDeathmatch[playerid] == 2)//blue
            {
                  GivePlayerWeapon(playerid, 24, 30);
                  if(TeamMap == 1)
                  {
                      new rand;
                    rand = random(sizeof(DeathmatchSpawnsBlue));
                    SAMP_AC_SetPlayerPos(playerid, DeathmatchSpawnsBlue[rand][0], DeathmatchSpawnsBlue[rand][1], DeathmatchSpawnsBlue[rand][2]);
                    SetPlayerInterior(playerid, 10);
                    PlayerInfo[playerid][pInt] = 10;
                }
                else if(TeamMap == 2)
                {
                      new rand;
                    rand = random(sizeof(DeathmatchSpawnsBlue2));
                    SAMP_AC_SetPlayerPos(playerid, DeathmatchSpawnsBlue2[rand][0], DeathmatchSpawnsBlue2[rand][1], DeathmatchSpawnsBlue2[rand][2]);
                    SetPlayerInterior(playerid, 0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(TeamMap == 3)
                {
                      new rand;
                    rand = random(sizeof(DeathmatchSpawnsBlue2MAP));
                    SAMP_AC_SetPlayerPos(playerid, DeathmatchSpawnsBlue2MAP[rand][0], DeathmatchSpawnsBlue2MAP[rand][1], DeathmatchSpawnsBlue2MAP[rand][2]);
                    SetPlayerInterior(playerid, 0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(TeamMap == 4)
                {
                      new rand;
                    rand = random(sizeof(DeathmatchSpawnsBlue2MAP2));
                    SAMP_AC_SetPlayerPos(playerid, DeathmatchSpawnsBlue2MAP2[rand][0], DeathmatchSpawnsBlue2MAP2[rand][1], DeathmatchSpawnsBlue2MAP2[rand][2]);
                    SetPlayerInterior(playerid, 0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                  SetPlayerSkin(playerid, 285);
                  SetPlayerColor(playerid,Cvet_5);
              }
            SetPlayerVirtualWorld(playerid, 69);
            return true;
        }
        if(PlayerInfo[playerid][pMembersORG] > 0) SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
        if(PlayerInfo[playerid][pMembersORG] <= 0) SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
        if(PlayerInfo[playerid][pExitTied] == 2 && PlayerInfo[playerid][pExitTiedNomer] == 1)
        {
            PlayerInfo[playerid][pMembersORG] = 0;
            PlayerInfo[playerid][pLeader] = 0;
            PlayerInfo[playerid][pJob] = 0;
            PlayerInfo[playerid][pWarns]++;
            PlayerInfo[playerid][pExitTied] = 0;
            PlayerInfo[playerid][pExitTiedNomer] = 0;
            SCM(playerid,COLOR_LIGHTRED,"Вы получили Warn за двухкратный выход из игры при похищении.");
            format(stringer, sizeof(stringer), "%s получил Warn за двухкратный выход из игры при похищении",PlayerInfo[playerid][pNames]);
            SendAdminMessage(COLOR_GREY,stringer);
        }
        if(PlayerInfo[playerid][pExitTied] == 1 && PlayerInfo[playerid][pExitTiedNomer] == 1)
        {
            SCM(playerid,COLOR_LIGHTRED,"Вы вышли из игры при похищении, вы были наказаны тюрьмой на 10 минут.");
            format(stringer, sizeof(stringer), "%s Выходит при похищении (+10 минут заключения)",PlayerInfo[playerid][pNames]);
            SendAdminMessage(COLOR_GREY,stringer);
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SAMP_AC_SetPlayerPos(playerid,5508.3706,1244.7594,23.1886);
            SetPlayerFacingAngle(playerid, 1.0160);
            PlayerInfo[playerid][pJailed] = 1;
            PlayerInfo[playerid][pWanted] = 0;
            PlayerInfo[playerid][pJailTime] = 600;
            PlayerInfo[playerid][pExitTiedNomer] = 0;
            WantedPoints[playerid] = 0;
            WantedPoints[playerid]--;
            PlayerInfo[playerid][pMestoJail] = 4;
            SetPlayerWantedLevel(playerid, 0);
            WantedLevel[playerid] = 0;
        }
        if(PlayerInfo[playerid][pJailed] == 1)
        {
            if(PlayerInfo[playerid][pMestoJail] == 1)
            {
                SetPlayerInterior(playerid, 6);
                PlayerInfo[playerid][pInt] = 6;
                SAMP_AC_SetPlayerPos(playerid,264.1425,77.4712,1001.0391);
                SetPlayerFacingAngle(playerid, 263.0160);
                SpawnPlayer(playerid);
                return true;
            }
            if(PlayerInfo[playerid][pMestoJail] == 2)
            {
                SetPlayerInterior(playerid, 10);
                PlayerInfo[playerid][pInt] = 10;
                SAMP_AC_SetPlayerPos(playerid,219.5400,109.9767,999.0156);
                SetPlayerFacingAngle(playerid, 1.0000);
                SpawnPlayer(playerid);
                return true;
            }
            if(PlayerInfo[playerid][pMestoJail] == 3)
            {
                SetPlayerInterior(playerid, 3);
                PlayerInfo[playerid][pInt] = 3;
                SAMP_AC_SetPlayerPos(playerid,198.3642,161.8103,1003.0300);
                SetPlayerFacingAngle(playerid, 1.0000);
                SpawnPlayer(playerid);
                return true;
            }
        }
        else if(PlayerInfo[playerid][pJailed] == 4)
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SAMP_AC_SetPlayerPos(playerid,5508.3706,1244.7594,23.1886);
            SetPlayerSkin(playerid, 62);
            SpawnPlayer(playerid);
            return true;
        }
        /*if(PlayerInfo[playerid][pHospital] == 1)
        {
            SetPlayerHealthAC(playerid, 90);
            SetPlayerFacingAngle(playerid, 180.5356);
            SetPlayerInterior(playerid, 0);
            SAMP_AC_SetPlayerPos(playerid, 1169.1469,-1307.9944,1145.7823);
            AntiDM[playerid] = 2;
            PlayerInfo[playerid][pInt] = 0;
            SCM(playerid,COLOR_YELLOW, "Вам придется пройти курс лечения или вылечиться у медика. Встаньте {FF0000}на сердечко рядом с койкой{FFFF00}, чтобы начать процедуру.");
            return true;
        }*/
        if(PlayerInfo[playerid][pHospital] == 1) // ДЛЯ БОЛЬНИЦЫ (DUBAI-RP)
        {
            SetPlayerHealthAC(playerid, 90);
            SetPlayerFacingAngle(playerid, 180.5356);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SAMP_AC_SetPlayerPos(playerid, 1169.1469,-1307.9944,1145.7823);
            AntiDM[playerid] = 2;
            PlayerInfo[playerid][pInt] = 0;
            SCM(playerid,COLOR_YELLOW, "Вам придется пройти курс лечения или вылечиться у медика. Встаньте на значок {FF0000}сердечка{FFFF00}, чтобы начать процедуру.");
            return true;
        }
        if(PlayerInfo[playerid][pPhousekey] != 255)
        {
            if(SpawnChange[playerid] == true)
            {
                new house = PlayerInfo[playerid][pPhousekey];
                SetPlayerInterior(playerid,HouseInfo[house][hInt]);
                SAMP_AC_SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
                PlayerInfo[playerid][pLocal] = house;
                PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
                SetPlayerVirtualWorld(playerid, house+50);
                return true;
            }
        }
        else if(PlayerInfo[playerid][pPhousekey2] != 255)
        {
            if(SpawnChange[playerid] == true)
            {
                new house = PlayerInfo[playerid][pPhousekey2];
                SetPlayerInterior(playerid,HouseInfo[house][hInt]);
                SAMP_AC_SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
                PlayerInfo[playerid][pLocal] = house;
                PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
                SetPlayerVirtualWorld(playerid, house+50);
                return true;
            }
        }
        switch(PlayerInfo[playerid][pMembersORG])
        {
            case 2:
            {
                SetPlayerInterior(playerid, 5);
                PlayerInfo[playerid][pInt] = 5;
                SAMP_AC_SetPlayerPos(playerid, 322.4131,316.9056,999.1484);
                SetPlayerFacingAngle(playerid, 180.5557);
                zakonn++;
                return true;
            }
            case 3:
            {
                if(forma[playerid] == true)
                {
                    SetPlayerSkin(playerid, 252);
                    SetPlayerInterior(playerid, 0);
                    SAMP_AC_SetPlayerPos(playerid, -1346.2050,492.3983,11.2027);
                    PlayerInfo[playerid][pInt] = 0;
                    SetPlayerVirtualWorld(playerid, 0);
                    return true;
                }
                SetPlayerInterior(playerid, 0);
                SAMP_AC_SetPlayerPos(playerid, -1346.2050,492.3983,11.2027);
                PlayerInfo[playerid][pInt] = 0;
                SetPlayerVirtualWorld(playerid, 0);
                return true;
            }
            case 10:
            {
                SetPlayerInterior(playerid, 10);
                SAMP_AC_SetPlayerPos(playerid, 225.1647,121.0442,999.0786);
                SetPlayerFacingAngle(playerid, 89.0733);
                PlayerInfo[playerid][pInt] = 10;
                zakonn++;
                return true;
            }
            case 19:
            {
                if(forma[playerid] == true)
                {
                    SetPlayerSkin(playerid, 252);
                    SetPlayerInterior(playerid, 0);
                    SAMP_AC_SetPlayerPos(playerid, 294.0461,1986.6698,17.6406);
                    PlayerInfo[playerid][pInt] = 0;
                    SetPlayerVirtualWorld(playerid, 0);
                    return true;
                }
                SetPlayerInterior(playerid, 0);
                SAMP_AC_SetPlayerPos(playerid, 294.0461,1986.6698,17.6406);
                PlayerInfo[playerid][pInt] = 0;
                SetPlayerVirtualWorld(playerid, 0);
                return true;
            }
            case 21:
            {
                SetPlayerInterior(playerid, 3);
                SAMP_AC_SetPlayerPos(playerid, 211.3636,184.3113,1003.0313);
                SetPlayerFacingAngle(playerid, 174.3579);
                PlayerInfo[playerid][pInt] = 3;
                SetPlayerVirtualWorld(playerid, 122);
                return true;
            }
            case 26://Спавн правительства
            {
                SetPlayerInterior(playerid, 5);
                SAMP_AC_SetPlayerPos(playerid, 1286.6942,-817.2071,1089.9375);
                SetPlayerFacingAngle(playerid, 180.1685);
                AntiDM[playerid] = 5;
                SetPlayerVirtualWorld(playerid, 4);
                TogglePlayerControllable(playerid, 0);
                return true;
            }
            case 16:
            {
                SetPlayerInterior(playerid, 18);
                SAMP_AC_SetPlayerPos(playerid, 1709.4238,-1662.4592,20.2275);
                SetPlayerFacingAngle(playerid, 55.6330);
                PlayerInfo[playerid][pInt] = 18;
                lNews[playerid] = 0;
                return true;
            }
            case 6:
            {
                SetPlayerInterior(playerid, 5);
                SAMP_AC_SetPlayerPos(playerid, 1300.3917,-788.3417,1084.0149);
                PlayerInfo[playerid][pInt] = 5;
                SetPlayerVirtualWorld(playerid, 0);
                return true;
            }
            case 14:
            {
                SetPlayerInterior(playerid, 5);
                SAMP_AC_SetPlayerPos(playerid, 1265.7104,-793.7453,1084.0078);
                PlayerInfo[playerid][pInt] = 5;
                SetPlayerVirtualWorld(playerid, 1);
                return true;
            }
            case 11:
            {
                SAMP_AC_SetPlayerPos(playerid, -2031.7778,-117.3789,1035.1719);
                SetPlayerFacingAngle(playerid, 268.5241);
                SetPlayerInterior(playerid,3);
                PlayerInfo[playerid][pInt] = 3;
                SetPlayerVirtualWorld(playerid, 1);
                return true;
            }
            case 5:
            {
                SetPlayerInterior(playerid, 5);
                SAMP_AC_SetPlayerPos(playerid, 1299.9790,-789.7018,1084.0078);
                PlayerInfo[playerid][pInt] = 5;
                SetPlayerVirtualWorld(playerid, 2);
                return true;
            }
              case 23:
            {
                PlayerInfo[playerid][pInt] = 5;
                SAMP_AC_SetPlayerPos(playerid, 1299.4063,-788.3484,1084.0149);
                SetPlayerInterior(playerid, 5);
                SetPlayerVirtualWorld(playerid, 3);
                return true;
            }
            case 24:
            {
                SetPlayerInterior(playerid, 0);
                PlayerInfo[playerid][pInt] = 0;
                SAMP_AC_SetPlayerPos(playerid, 1280.3894,1271.6595,10.8281);
                SetPlayerFacingAngle(playerid, 316.8163);
                return true;
            }
            case 25:
            {
                SetPlayerInterior(playerid, 3);
                PlayerInfo[playerid][pInt] = 3;
                SAMP_AC_SetPlayerPos(playerid, 211.7866,142.4048,1003.0234);
                SetPlayerFacingAngle(playerid, 269.2128);
                zakonn++;
                return true;
            }
            case 4:
            {
                SetPlayerInterior(playerid, 0); // СПАВН МЕДИКОВ
                PlayerInfo[playerid][pInt] = 0;
                SAMP_AC_SetPlayerPos(playerid, 1155.3292,-1331.5215,1145.7823);
                SetPlayerFacingAngle(playerid, 209.2056);
                Medics ++;
                return true;
                /*SetPlayerInterior(playerid, 15); // СПАВН МЕДИКОВ
                PlayerInfo[playerid][pInt] = 15;
                SAMP_AC_SetPlayerPos(playerid, 1169.6852,-1389.7017,1154.9351);
                SetPlayerFacingAngle(playerid, 358.258);
                Medics ++;
                return true;*/
            }
            case 12:
            {
                SAMP_AC_SetPlayerPos(playerid, -61.2984,1364.5847,1080.2109);
                SetPlayerFacingAngle(playerid, 100);
                SetPlayerInterior(playerid,6);
                SetPlayerVirtualWorld(playerid, 34);
                PlayerInfo[playerid][pInt] = 6;
                return true;
            }
            case 18:
            {
                SetPlayerInterior(playerid, 18);
                SetPlayerVirtualWorld(playerid, 63);
                SAMP_AC_SetPlayerPos(playerid, -223.84,1410.51,27.77);
                RemovePlayerAttachedObject(playerid, 1);
                PlayerInfo[playerid][pInt] = 18;
                return true;
            }
            case 17:
            {
                SetPlayerFacingAngle(playerid, 90.4248);
                SAMP_AC_SetPlayerPos(playerid, -49.7558,1400.3553,1084.4297);
                SetPlayerInterior(playerid,8);
                SetPlayerVirtualWorld(playerid, 36);
                PlayerInfo[playerid][pInt] = 8;
                return true;
            }
            case 13:
            {
                SetPlayerInterior(playerid, 4);
                SetPlayerVirtualWorld(playerid, 75);
                SetPlayerFacingAngle(playerid, 263.0497);
                SAMP_AC_SetPlayerPos(playerid, 303.63,309.25,999.15);
                PlayerInfo[playerid][pInt] = 4;
                return true;
            }
            case 15:
            {
                SetPlayerInterior(playerid, 3);
                SetPlayerVirtualWorld(playerid, 0);
                SAMP_AC_SetPlayerPos(playerid,  2496.012939,-1708.923217,1014.742187);
                SetPlayerFacingAngle(playerid, 0.191693);
                PlayerInfo[playerid][pInt] = 3;
                SetPlayerVirtualWorld(playerid, 1);
                return true;
            }
            case 8:
            {
                SetPlayerInterior(playerid, 0);
                PlayerInfo[playerid][pInt] = 0;
                SAMP_AC_SetPlayerPos(playerid, 1658.60,2253.22,11.06);
                SetPlayerFacingAngle(playerid, 0);
                return true;
            }
            case 1:
            {
                SetPlayerInterior(playerid, 6);
                SAMP_AC_SetPlayerPos(playerid, 235.8750,73.5106,1005.0391);
                PlayerInfo[playerid][pInt] = 6;
                SetPlayerVirtualWorld(playerid, 0);
                zakonn++;
                return true;
            }
            case 7:
            {
                SetPlayerInterior(playerid, 3);
                SAMP_AC_SetPlayerPos(playerid, 358.5969,207.5322,1008.3828);
                SetPlayerFacingAngle(playerid, 182.7769);
                PlayerInfo[playerid][pInt] = 3;
                SetPlayerVirtualWorld(playerid, 0);
                return true;
            }
            default:
            {
                //спавн новичков
                SAMP_AC_SetPlayerPos(playerid,1206.2893,-1746.8423,13.5928);//Спавн
                SetPlayerFacingAngle(playerid, 58.2892);
                SetPlayerInterior(playerid,0);
                PlayerInfo[playerid][pInt] = 0;
                SetPlayerVirtualWorld(playerid, 0);
                return true;
            }
        }
    }
    return true;
}

@odosenok 

Поделиться сообщением


Ссылка на сообщение
  • 0
Cawfee
Великий Гуру

@AndreyBoy, попробуйте в OnGameModeInit добавить (неважно, в начале, в середине или в конце):

AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);

 

Поделиться сообщением


Ссылка на сообщение
  • 0
AndreyBoy
Новичок

@odosenok Всё сделал так как сказали но всё равно когда перезахожу второй раз просто в небе с стрелками и кнопкой Спавн

Поделиться сообщением


Ссылка на сообщение
  • 0
AndreyBoy
Новичок

@odosenok Ну смотрите суть моей проблемы что я под админкой после перезагрузки сервера захожу и всё нормально но если просто перезайду под тем же ником и с админкой без перезагрузки сервера то меня не авторизирует

Поделиться сообщением


Ссылка на сообщение
Гость
Эта тема закрыта для публикации ответов.
  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

  • Похожий контент

    • patrickk
      От patrickk
      Всем привет, решил написать dm сервер и довольно хорошим получился, даже на голову выше Goat dm. Оставил не решенную проблему тем что  у меня есть 4 локации с rp run и cj run ну а как добавить cj бег на те локации не знаю и как эта система работает. Надеюсь мне помогут знающие люди
    • Samolet
      От Samolet
      Здраствуйте, cоздаю копию Arizona на ОМП, опен мультиплеер, загрузил и подключил бд, но сервер не хочет вот лог :[2026-10-20T21:03:32+0300] [Info] Log file reloaded. Starting open.mp server (1.5.8.3079) from commit c6759bd8d265171ae3d86598895a23d5a8d92a3b Loading component $CAPI.so Successfully loaded component C-API (1.5.8.3079) with UID 10467dd8d4c56fc6 Loading component LegacyConfig.so Successfully loaded component LegacyConfig (1.5.8.3079) with UID 24ef6216838f9ffc Loading component NPCs.so Successfully loaded component NPCs (1.5.8.3079) with UID 3d0e59e87f4e90bc Loading component Recordings.so Successfully loaded component Recordings (1.5.8.3079) with UID 871144d399f5f613 Loading component Checkpoints.so Successfully loaded component Checkpoints (1.5.8.3079) with UID 44a937350d611dde Loading component TextDraws.so Successfully loaded component TextDraws (1.5.8.3079) with UID 9b5dc2b1d15c992a Loading component Pawn.so Successfully loaded component Pawn (1.5.8.3079) with UID 78906cd9f19c36a6 Loading component GangZones.so Successfully loaded component GangZones (1.5.8.3079) with UID b3351d11ee8d8056 Loading component Actors.so Successfully loaded component Actors (1.5.8.3079) with UID c81ca021eae2ad5c Loading component Pickups.so Successfully loaded component Pickups (1.5.8.3079) with UID cf304faa363dd971 Loading component Dialogs.so Successfully loaded component Dialogs (1.5.8.3079) with UID 44a111350d611dde Loading component Objects.so Successfully loaded component Objects (1.5.8.3079) with UID 59f8415f72da6160 Loading component Console.so Successfully loaded component Console (1.5.8.3079) with UID bfa24e49d0c95ee4 Loading component TextLabels.so Successfully loaded component TextLabels (1.5.8.3079) with UID a0c57ea80a009742 Loading component Variables.so Successfully loaded component Variables (1.5.8.3079) with UID 75e121848bc01fa2 Loading component Databases.so Successfully loaded component Databases (1.5.8.3079) with UID 80092e7eb5821a96 Loading component LegacyNetwork.so Successfully loaded component RakNetLegacyNetwork (1.5.8.3079) with UID ea9799fd79cf8442 Loading component CustomModels.so Successfully loaded component CustomModels (1.5.8.3079) with UID 15e3cb1e7c77ffff Loading component Menus.so Successfully loaded component Menus (1.5.8.3079) with UID 621e219eb97ee0b2 Loading component Vehicles.so Successfully loaded component Vehicles (1.5.8.3079) with UID 3f1f62ee9e22ab19 Loading component Classes.so Successfully loaded component Classes (1.5.8.3079) with UID 8cfb3183976da208 Loading component Timers.so Successfully loaded component Timers (1.5.8.3079) with UID 2ad8124c5ea257a3 Loaded 22 component(s) from /home/gs113492/components Executing Server Config... [2026-10-20T21:03:33+0300] [Info] Loading plugin: crashdetect.so [2026-10-20T21:03:33+0300] [Info] CrashDetect plugin 4.19 [2026-10-20T21:03:33+0300] [Info] Loading plugin: mapandreas.so [2026-10-20T21:03:33+0300] [Info] Loading plugin: streamer.so [2026-10-20T21:03:33+0300] [Info] *** Streamer Plugin v2.9.4 by Incognito loaded *** [2026-10-20T21:03:33+0300] [Info] Loading plugin: sscanf.so [2026-10-20T21:03:33+0300] [Info] [2026-10-20T21:03:33+0300] [Info] =============================== [2026-10-20T21:03:33+0300] [Info] sscanf plugin loaded. [2026-10-20T21:03:33+0300] [Info] Version: 2.8.3 [2026-10-20T21:03:33+0300] [Info] (c) 2018 Alex "Y_Less" Cole [2026-10-20T21:03:33+0300] [Info] =============================== [2026-10-20T21:03:33+0300] [Info] Loading plugin: TOTP.so [2026-10-20T21:03:33+0300] [Info] TOTP plugin v1.0.1 by Games loaded. [2026-10-20T21:03:33+0300] [Info] Loading plugin: mysql_static.so [2026-10-20T21:03:33+0300] [Info] >> plugin.mysql: R39-6 successfully loaded. [2026-10-20T21:03:33+0300] [Info] Loading plugin: libpawn_json.so [2026-10-20T21:03:34+0300] [Error] Function not registered: YSF_SetTickRate [2026-10-20T21:03:34+0300] [Error] Function not registered: PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] Run time error 19: "File or function is not found" [2026-10-20T21:03:34+0300] [Info] [debug] PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] YSF_SetTickRate [2026-10-20T21:03:34+0300] [Error] File or function is not found [2026-10-20T21:03:34+0300] [Error] Function not registered: PC_RegAlias [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_GetWriteOffset [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_Reset [2026-10-20T21:03:34+0300] [Error] Function not registered: PR_RegHandler [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_Delete [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_New [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_ResetReadPointer [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_SetWriteOffset [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_IgnoreBits [2026-10-20T21:03:34+0300] [Error] Function not registered: PR_Init [2026-10-20T21:03:34+0300] [Error] Function not registered: PR_SendRPC [2026-10-20T21:03:34+0300] [Error] Function not registered: PR_SendPacket [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_WriteValue [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_GetNumberOfBytesUsed [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_ReadValue [2026-10-20T21:03:34+0300] [Error] Function not registered: PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] Run time error 19: "File or function is not found" [2026-10-20T21:03:34+0300] [Info] [debug] PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] BS_ReadValue [2026-10-20T21:03:34+0300] [Info] [debug] BS_GetNumberOfBytesUsed [2026-10-20T21:03:34+0300] [Info] [debug] BS_WriteValue [2026-10-20T21:03:34+0300] [Info] [debug] PR_SendPacket [2026-10-20T21:03:34+0300] [Info] [debug] PR_SendRPC [2026-10-20T21:03:34+0300] [Info] [debug] PR_Init [2026-10-20T21:03:34+0300] [Info] [debug] BS_IgnoreBits [2026-10-20T21:03:34+0300] [Info] [debug] BS_SetWriteOffset [2026-10-20T21:03:34+0300] [Info] [debug] BS_ResetReadPointer [2026-10-20T21:03:34+0300] [Info] [debug] BS_New [2026-10-20T21:03:34+0300] [Info] [debug] BS_Delete [2026-10-20T21:03:34+0300] [Info] [debug] PR_RegHandler [2026-10-20T21:03:34+0300] [Info] [debug] BS_Reset [2026-10-20T21:03:34+0300] [Info] [debug] BS_GetWriteOffset [2026-10-20T21:03:34+0300] [Info] [debug] PC_RegAlias [2026-10-20T21:03:34+0300] [Error] File or function is not found [2026-10-20T21:03:34+0300] [Info] [debug] Run time error 19: "File or function is not found" [2026-10-20T21:03:34+0300] [Info] [debug] PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] YSF_SetTickRate [2026-10-20T21:03:34+0300] [Error] File or function is not found [2026-10-20T21:03:34+0300] [Info] [debug] Run time error 19: "File or function is not found" [2026-10-20T21:03:34+0300] [Info] [debug] PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] BS_ReadValue [2026-10-20T21:03:34+0300] [Info] [debug] BS_GetNumberOfBytesUsed [2026-10-20T21:03:34+0300] [Info] [debug] BS_WriteValue [2026-10-20T21:03:34+0300] [Info] [debug] PR_SendPacket [2026-10-20T21:03:34+0300] [Info] [debug] PR_SendRPC [2026-10-20T21:03:34+0300] [Info] [debug] PR_Init [2026-10-20T21:03:34+0300] [Info] [debug] BS_IgnoreBits [2026-10-20T21:03:34+0300] [Info] [debug] BS_SetWriteOffset [2026-10-20T21:03:34+0300] [Info] [debug] BS_ResetReadPointer [2026-10-20T21:03:34+0300] [Info] [debug] BS_New [2026-10-20T21:03:34+0300] [Info] [debug] BS_Delete [2026-10-20T21:03:34+0300] [Info] [debug] PR_RegHandler [2026-10-20T21:03:34+0300] [Info] [debug] BS_Reset [2026-10-20T21:03:34+0300] [Info] [debug] BS_GetWriteOffset [2026-10-20T21:03:34+0300] [Info] [debug] PC_RegAlias [2026-10-20T21:03:34+0300] [Info] Legacy Network started on ***.**.**.***:2717. Помогите пожалуйста