Рекомендованные сообщения



Не найдено.

3 posts in this topic

Здравствуйте!Столкнулся с проблемой в игровом моде "samp"

Заглянул в лог сервера а там :

Это только пару строк с лога,так и флуд этим.Сам файл логов прикреплю. 

Кто знает и может подсказать в чем проблема,пожалуйста!Буду благодарен!

-

 [08:19:18 05/13/21] [ERROR] cache_get_row_int - invalid datatype
[08:19:18 05/13/21] [ERROR] cache_get_row_int - invalid datatype
[08:19:18 05/13/21] [ERROR] cache_get_row_int - invalid datatype
[08:19:18 05/13/21] [ERROR] CMySQLQuery::Execute - (error #1146) Table 'u19779_bios.modellimit' doesn't exist (Query: "SELECT * FROM `modellimit`")
[08:19:18 05/13/21] [WARNING] cache_get_row_int - no active cache
[08:19:18 05/13/21] [WARNING] cache_get_row_int - no active cache
[08:19:18 05/13/21] [WARNING] cache_get_row_int - no active cache
[08:19:18 05/13/21] [WARNING] cache_get_row_int - no active cache

mysql_log.txt

Edited by green177117

Share this post


Link to post
Share on other sites

Таблица `modellimit` не найдена.

4 часа назад, green177117 сказал:

[08:19:18 05/13/21] [ERROR] CMySQLQuery::Execute - (error #1146) Table 'u19779_bios.modellimit' doesn't exist (Query: "SELECT * FROM `modellimit`")

 

С этим тебе уже никто не поможет, т.к нужно рыться в моде и искать загрузку/сохранение строк, где выставлена неправильная функция.

5 часов назад, green177117 сказал:

 [08:19:18 05/13/21] [ERROR] cache_get_row_int - invalid datatype
[08:19:18 05/13/21] [ERROR] cache_get_row_int - invalid datatype
[08:19:18 05/13/21] [ERROR] cache_get_row_int - invalid datatype

Share this post


Link to post
Share on other sites

@glvde. Спасибо! А вот с этим помогут?

 

AMX backtrace:
[13:27:10] [debug] #0 00420a08 in public SecondTimer () at C:\Users\antip\Downloads\**********************\gamemodes\ ****.pwn:58732
[13:27:11] [debug] Run time error 4: "Array index out of bounds"
[13:27:11] [debug] Accessing element at index 4095 past array upper bound 12

 

Я перевел,прочитал что индекс масива выходит за пределы...
Но не понимаю толком что к чему,так как новичек в этом.

Строка : 58732 это - if(PI[playerid][pAmmos][slot]==GetPlayerAmmo(playerid))

Вот сам паблик:

___

public SecondTimer()
{
        new str[256], string[256];
        Reklam ++;
        new year,month,day,minuite,second,hour;
        getdate(year,month,day);
        gettime(hour,minuite,second);
        if(gConteiner[0][pTime] > 0)
        {
                new id = 0;
            gConteiner[id][pTime]--;
            new update[256];
            format(update,sizeof(update),"Контейнер:\n\nКласс: {E98E52}Премиум ( Premium )\n{FFFFFF}Начальная цена:$ {E98E52}15.000.000\n\n{FF0000}Аукцион{FFFFFF} ( {E98E52}%d{FFFFFF} ):\n\n- Последняя ставка: {E98E52}%s\n{FFFFFF}- Последняя ставка:$ {E98E52}%d",gConteiner[id][pTime],gConteiner[id][
pOwned],gConteiner[id][pCash]);
            if(gConteiner[id][pTime] == 0)
                {
                    format(update,sizeof(update),"Контейнер:\n\nКласс: {E98E52}Премиум ( Premium )\n{FFFFFF}Начальная цена:$ {E98E52}15.000.000\n\n{FF0000}Аукцион окончен{FFFFFF}\n\n- Последняя ставка: {E98E52}%s\n{FFFFFF}- Последняя ставка:$ {E98E52}%d",gConteiner[id][pOwned],gConteiner[id][
pCash]);
                        conteiner[id] = 1;
                }
            UpdateDynamic3DTextLabelText(Conteinertext[id],COLOR_WHITE,update);
        }
        ///- premium 2 //
        if(gConteiner[1][pTime] > 0)
        {
                new id = 1;
            gConteiner[id][pTime]--;
            new update[256];
            format(update,sizeof(update),"Контейнер:\n\nКласс: {E98E52}Премиум ( Premium )\n{FFFFFF}Начальная цена:$ {E98E52}15.000.000\n\n{FF0000}Аукцион{FFFFFF} ( {E98E52}%d{FFFFFF} ):\n\n- Последняя ставка: {E98E52}%s\n{FFFFFF}- Последняя ставка:$ {E98E52}%d",gConteiner[id][pTime],gConteiner[id][
pOwned],gConteiner[id][pCash]);
            if(gConteiner[id][pTime] == 0)
                {
                    format(update,sizeof(update),"Контейнер:\n\nКласс: {E98E52}Премиум ( Premium )\n{FFFFFF}Начальная цена:$ {E98E52}15.000.000\n\n{FF0000}Аукцион окончен{FFFFFF}\n\n- Последняя ставка: {E98E52}%s\n{FFFFFF}- Последняя ставка:$ {E98E52}%d",gConteiner[id][pOwned],gConteiner[id][
pCash]);
                        conteiner[id] = 1;
                }
            UpdateDynamic3DTextLabelText(Conteinertext[id],COLOR_WHITE,update);
        }
        if(gConteiner[1][pTimeClose] > 0)
        {
            new id = 1;
            gConteiner[id][pTimeClose]--;
            new update[256],updateclose[1024];
            format(updateclose,sizeof(updateclose),"{FF0000}Контейнер закроется через{FFFFFF} ( {E98E52}%d{FFFFFF} )\n\n-Владелец: {E98E52}%s{FFFFFF}\nПриобрёл за: {E98E52}$%d{FFFFFF}\n\n\t{FF0000}Призы:\n{FFFFFF}-%
s\n{FFFFFF}-%s\n{FFFFFF}-%s\n{FFFFFF}-%s\n{FFFFFF}-%s\n{FFFFFF}-
%s\n",
                gConteiner[id][pTimeClose],gConteiner[id][pOwned]
,gConteiner[id][pCash],gConteiner[id][pPrize1],gConteiner[
id][pPrize2],gConteiner[id][pPrize3],gConteiner[id]
[pPrize4],gConteiner[id][pPrize5], gConteiner[id][pPrize6]);//,gConteiner[id][pOwned]
,gConteiner[id][pCash]);
            if(gConteiner[id][pTime] == 0)
                {
                        format(update,sizeof(update),"Контейнер:\n\nКласс: {E98E52}Премиум ( Premium )\n{FFFFFF}Начальная цена:$ {E98E52}15.000.000\n\n{FF0000}Аукцион окончен{FFFFFF}\n\n- Последняя ставка: {E98E52}%s\n{FFFFFF}- Последняя ставка:$ {E98E52}%d",gConteiner[id][pOwned],gConteiner[id][
pCash]);
            format(updateclose,sizeof(updateclose),"");
                        MoveDynamicObject(gPremiumContDor[0], -1733.967407, 156.626068, 5.192699, 5.0, -0.000052, 540.000000, -89.999847);
                        MoveDynamicObject(gPremiumContDor[1], -1732.376587, 156.626068, 5.192699, 5.0, 0.000059, 0.000000, 89.999817);
                        strmid(gConteiner[id][pOwned], "-", 0, 60);
                        strmid(gConteiner[id][pPrize1], "-", 0, 60);
                        strmid(gConteiner[id][pPrize2], "-", 0, 60);
                        strmid(gConteiner[id][pPrize3], "-", 0, 60);
                        strmid(gConteiner[id][pPrize4], "-", 0, 60);
                        strmid(gConteiner[id][pPrize5], "-", 0, 60);
                        strmid(gConteiner[id][pPrize6], "-", 0, 60);
                        gConteiner[id][pCash] = 0;
                        conteiner[id] = 0;
                        gConteiner[id][pPrize1Col] = 0;
                        gConteiner[id][pPrize2Col] = 0;
                        gConteiner[id][pPrize3Col] = 0;
                        gConteiner[id][pPrize4Col] = 0;
                        gConteiner[id][pPrize5Col] = 0;
                        gConteiner[id][pPrize6Col] = 0;
                }
            UpdateDynamic3DTextLabelText(Conteinertext[id],COLOR_WHITE,update);
            UpdateDynamic3DTextLabelText(PrizeCont[id],COLOR_WHITE,updateclose);
        }
        //
        if(gConteiner[3][pTime] > 0)
        {
                new id = 3;
            gConteiner[id][pTime]--;
            new update[256];
            format(update,sizeof(update),"Контейнер:\n\nКласс: {E98E52}Средний ( Middle )\n{FFFFFF}Начальная цена:$ {E98E52}8.000.000\n\n{FF0000}Аукцион{FFFFFF} ( {E98E52}%d{FFFFFF} ):\n\n- Последняя ставка: {E98E52}%s\n{FFFFFF}- Последняя ставка:$ {E98E52}%d",gConteiner[id][pTime],gConteiner[id][
pOwned],gConteiner[id][pCash]);
            if(gConteiner[id][pTime] == 0)
                {
                    format(update,sizeof(update),"Контейнер:\n\nКласс: {E98E52}Средний ( Middle )\n{FFFFFF}Начальная цена:$ {E98E52}8.000.000\n\n{FF0000}Аукцион окончен{FFFFFF}\n\n- Последняя ставка: {E98E52}%s\n{FFFFFF}- Последняя ставка:$ {E98E52}%d",gConteiner[id][pOwned],gConteiner[id][
pCash]);
                        conteiner[id] = 1;
                }
            UpdateDynamic3DTextLabelText(Conteinertext[id],COLOR_WHITE,update);
        }
        if(gConteiner[3][pTimeClose] > 0)
        {
            new id = 3;
            gConteiner[id][pTimeClose]--;
            new update[256],updateclose[1024];
            format(updateclose,sizeof(updateclose),"{FF0000}Контейнер закроется через{FFFFFF} ( {E98E52}%d{FFFFFF} )\n\n-Владелец: {E98E52}%s{FFFFFF}\nПриобрёл за: {E98E52}$%d{FFFFFF}\n\n\t{FF0000}Призы:\n{FFFFFF}-%
s\n{FFFFFF}-%s\n{FFFFFF}-%s\n{FFFFFF}-%s\n{FFFFFF}-%s\n{FFFFFF}-
%s\n",
                gConteiner[id][pTimeClose],gConteiner[id][pOwned]
,gConteiner[id][pCash],gConteiner[id][pPrize1],gConteiner[
id][pPrize2],gConteiner[id][pPrize3],gConteiner[id]
[pPrize4],gConteiner[id][pPrize5], gConteiner[id][pPrize6]);
                if(gConteiner[id][pTime] == 0)
                {
                    format(update,sizeof(update),"Контейнер:\n\nКласс: {E98E52}Средний ( Middle )\n{FFFFFF}Начальная цена:$ {E98E52}8.000.000\n\n{FF0000}Аукцион окончен{FFFFFF}\n\n- Последняя ставка: {E98E52}%s\n{FFFFFF}- Последняя ставка:$ {E98E52}%d",gConteiner[id][pOwned],gConteiner[id][
pCash]);
                format(updateclose,sizeof(updateclose),"");
                        MoveDynamicObject(gPremiumContDor[2], -1729.997070, 137.012177, 5.192699, 5.0, -0.000052, 540.000000, -89.999847);
                        MoveDynamicObject(gPremiumContDor[3], -1728.406250, 137.012177, 5.192699, 5.0, 0.000059, 0.000000, 89.999817);
                        strmid(gConteiner[id][pOwned], "-", 0, 60);
                        strmid(gConteiner[id][pPrize1], "-", 0, 60);
                        strmid(gConteiner[id][pPrize2], "-", 0, 60);
                        strmid(gConteiner[id][pPrize3], "-", 0, 60);
                        strmid(gConteiner[id][pPrize4], "-", 0, 60);
                        strmid(gConteiner[id][pPrize5], "-", 0, 60);
                        gConteiner[id][pCash] = 0;
                        conteiner[id] = 0;
                }
            UpdateDynamic3DTextLabelText(Conteinertext[id],COLOR_WHITE,update);
            UpdateDynamic3DTextLabelText(PrizeCont[id],COLOR_WHITE,updateclose);
        }
        if(gConteiner[4][pTime] > 0)
        {
                new id = 4;
            gConteiner[id][pTime]--;
            new update[256];
            format(update,sizeof(update),"Контейнер:\n\nКласс: {E98E52}Бизнес ( Business )\n{FFFFFF}Начальная цена:AZ {E98E52}2000\n\n{FF0000}Аукцион{FFFFFF} ( {E98E52}%d{FFFFFF} ):\n\n- Последняя ставка: {E98E52}%s\n{FFFFFF}- Последняя ставка:AZ {E98E52}%d",gConteiner[id][pTime],gConteiner[id][
pOwned],gConteiner[id][pCash]);
            if(gConteiner[id][pTime] == 0)
                {
                    format(update,sizeof(update),"Контейнер:\n\nКласс: {E98E52}Бизнес ( Business )\n{FFFFFF}Начальная цена:AZ {E98E52}2000\n\n{FF0000}Аукцион окончен{FFFFFF}\n\n- Последняя ставка: {E98E52}%s\n{FFFFFF}- Последняя ставка:AZ {E98E52}%d",gConteiner[id][pOwned],gConteiner[id][
pCash]);
                        conteiner[id] = 1;
                }
            UpdateDynamic3DTextLabelText(Conteinertext[id],COLOR_WHITE,update);
        }
        if(gConteiner[4][pTimeClose] > 0)
        {
            new id = 4;
            gConteiner[id][pTimeClose]--;
            new update[256],updateclose[1024];
            format(updateclose,sizeof(updateclose),"{FF0000}Контейнер закроется через{FFFFFF} ( {E98E52}%d{FFFFFF} )\n\n-Владелец: {E98E52}%s{FFFFFF}\nПриобрёл за: {E98E52}$%d{FFFFFF}\n\n\t{FF0000}Призы:\n{FFFFFF}-%
s\n{FFFFFF}-%s\n{FFFFFF}-%s\n{FFFFFF}-%s\n{FFFFFF}-%s\n{FFFFFF}-
%s\n",
                gConteiner[id][pTimeClose],gConteiner[id][pOwned]
,gConteiner[id][pCash],gConteiner[id][pPrize1],gConteiner[
id][pPrize2],gConteiner[id][pPrize3],gConteiner[id]
[pPrize4],gConteiner[id][pPrize5], gConteiner[id][pPrize6]);
                if(gConteiner[id][pTime] == 0)
                {
                        format(update,sizeof(update),"Контейнер:\n\nКласс: {E98E52}Бизнес ( Business )\n{FFFFFF}Начальная цена:AZ {E98E52}2000\n\n{FF0000}Аукцион окончен{FFFFFF}\n\n- Последняя ставка: {E98E52}%s\n{FFFFFF}- Последняя ставка:AZ {E98E52}%d",gConteiner[id][pOwned],gConteiner[id][
pCash]);
            format(updateclose,sizeof(updateclose),"");
                        MoveDynamicObject(gPremiumContDor[6], -1733.967895, 120.745483, 5.192698, 5.0, -0.000050, 540.000000, -89.999847);//, -0.000050, 540.000000, -139.899749, 5.00);
                        MoveDynamicObject(gPremiumContDor[7], -1732.377075, 120.745483, 5.192698, 5.0, 0.000059, 0.000000, 89.999816);
                        strmid(gConteiner[id][pOwned], "-", 0, 60);
                        strmid(gConteiner[id][pPrize1], "-", 0, 60);
                        strmid(gConteiner[id][pPrize2], "-", 0, 60);
                        strmid(gConteiner[id][pPrize3], "-", 0, 60);
                        strmid(gConteiner[id][pPrize4], "-", 0, 60);
                        strmid(gConteiner[id][pPrize5], "-", 0, 60);
                        gConteiner[id][pCash] = 0;
                        conteiner[id] = 0;
                        gConteiner[id][pPrize1Col] = 0;
                        gConteiner[id][pPrize2Col] = 0;
                        gConteiner[id][pPrize3Col] = 0;
                        gConteiner[id][pPrize4Col] = 0;
                        gConteiner[id][pPrize5Col] = 0;
                }
            UpdateDynamic3DTextLabelText(Conteinertext[id],COLOR_WHITE,update);
            UpdateDynamic3DTextLabelText(PrizeCont[id],COLOR_WHITE,updateclose);
        }
        if(minuite == 0 && second == 0)
        {
            SetWorldTime(hour);
        if(GLS[37] == 1)
                {
                    for(new i; i < 2; i++) {
                    PayDay();
            }
                }
                else if(GLS[40] == 1)
                {
                    for(new i; i < 3; i++) {
                    PayDay();
            }
                }
        else if(GLS[41] == 1)
                {
                    for(new i; i < 5; i++) {
                    PayDay();
            }
                }
                else PayDay();
        }
        if((hour == 5 && minuite == 00 && second == 00)) {
                        foreach(new i: Player) {
                        SendClientMessage(i, COLOR_RED, !"Внимание!");
                        SendClientMessage(i, COLOR_RED, !"Технический рестарт через 05 минут. Советуем завершить текущую сессию");
                }
        }
        else if((hour == 5 && minuite == 02 && second == 00)) {
                        foreach(new i: Player) {
                        SendClientMessage(i, COLOR_RED, !"Внимание!");
                        SendClientMessage(i, COLOR_RED, !"Технический рестарт через 03 минут. Советуем завершить текущую сессию");
                }
        }
        else if((hour == 5 && minuite == 1 && second == 00)) {
                        foreach(new i: Player) {
                        SendClientMessage(i, COLOR_RED, !"Внимание!");
                        SendClientMessage(i, COLOR_RED, !"Технический рестарт через 02 минут. Сессия завершена принудительно");
                        SendRconCommand("password gdfgfdygryuhgf");
                        SendRconCommand("hostname CADO RP | Test | Технический Рестарт!");
                        SetTimer("RestartServer", 120000, false);
                }
        }
        if(minuite == 59 && second == 00)
        {
                {
                        new Cache:result = mysql_query(mysql, "SELECT * FROM `qelksekm`");
                        foreach(Player,i)
                        {
                //if(IsPlayerConnected(i))
                {
                    PI[i][pCarLic] -= 1;
                    PI[i][pBikeLic] -= 1;
                    PI[i][pBoatLic] -= 1;
                    PI[i][pFlyLic] -= 1;
                    PI[i][pFishLic] -= 1;
                    PI[i][pGunLic] -= 1;
                                }
                                LoadLicCar[i] = cache_get_row_int(i, 142, mysql); //CarLic
                                LoadLicMoto[i] = cache_get_row_int(i, 143, mysql); //CarLic
                                LoadLicFly[i] = cache_get_row_int(i, 141, mysql); //CarLic
                                LoadLicBoat[i] = cache_get_row_int(i, 139, mysql); //CarLic
                                LoadLicGun[i] = cache_get_row_int(i, 138, mysql); //CarLic
                                format(string,sizeof(string),"UPDATE `qelksekm` SET `CarLic` = '%d', `BikeLic` = '%d', `FlyLic` = '%d', \
                                `BoatLic` = '%d', `GunLic` = '%d' WHERE `ID` = '%i'",LoadLicCar[i]-1,LoadLicMoto[i]-1,LoadLicFly[
i]-1,LoadLicBoat[i]-1,LoadLicGun[i]-1,i+1);
                                mysql_tquery(mysql, string);
                        }
                        cache_delete(result, mysql);
                }
        }
        if(hour == 20)
        {
            if(minuite == 00 && second == 0)
                {
                for(new i; i != 7; i++)
                                TextDrawShowForAll(EventSob[i]);

                SendClientMessageToAll(-1, !"[Подсказка] {FF6347}Мероприятие: 'Собиратели', начнется в {FFFFFF}20.15! {FF6347}Используйте: /findcollectors");
                }
            else if(minuite == 01 && second == 0)
            {
                for(new i; i != 7; i++)
                                TextDrawHideForAll(EventSob[i]);

            SetTimer("EggsSpawn", 40000, 1);
            }
        }
        if(hour == 23)
        {
            if(minuite == 59 && second == 00)
            {
                        new UTC;
                        switch(((gettime()+UTC*3600)/86400)%7)
                        {
                                case 3:
                        {
                                        for(new i = 0; i < MAX_BIZ; i++)
                                        {
                                                format(string, sizeof(string),"UPDATE `businesses` SET `DayOfWeak0`='0',`DayOfWeak1`='0',`DayOfWeak2`='0',`DayOfWeak3`='
0',`DayOfWeak4`='0',`DayOfWeak5`='0',`DayOfWeak6`='0' WHERE `ID` = '%i' ;",i+1);
                                                mysql_tquery(mysql, string);
                                                BizInfo[i][bDayOfWeak0] = 0;
                                                BizInfo[i][bDayOfWeak1] = 0;
                                                BizInfo[i][bDayOfWeak2] = 0;
                                                BizInfo[i][bDayOfWeak3] = 0;
                                                BizInfo[i][bDayOfWeak4] = 0;
                                                BizInfo[i][bDayOfWeak5] = 0;
                                                BizInfo[i][bDayOfWeak6] = 0;
                                                SaveBiz(i);
                                        }
                                }
                        }
            }
        }
        if((minuite == 0 || minuite == 29) && second == 0 && autospawncars == 1) AutoCarSpawn();
        if(Teleport > 0)
        {
                MPTime --;
                format(string, sizeof(string), "%s_~W~-_/GOTP", Convert(MPTime));
                TextDrawSetString(TeleportEvent[1], string);
        }
        if(MPTime == 0)
        {
            SendClientMessageToAll(0x40FF00FF, !"[Мероприятие]{ffffff} Телепорт на мероприятие закрыт, время вышло.");
                Teleport = 0;
                MPTime = 60;
                for(new i; i != 14; i++) TextDrawHideForAll(TeleportEvent[i]);
        }
        format(string, sizeof(string), "%02d:%02d", hour, minuite);
        TextDrawSetString(telephonexiaomi[8], string);
        TextDrawSetString(telephonexiaomi[29], string);
        TextDrawSetString(telephoneiphone[36], string);
        TextDrawSetString(telephoneiphone[29], string);
        TextDrawSetString(telephonesamsung[50], string);
        TextDrawSetString(telephonesamsung[29], string);
        switch(Reklam)
        {
            case 600:
            {
                        for(new i;i<91;i++)
                        {
                                if(GribInfo[i][gribCreat]==-1) GribInfo[i][gribCreat] = CreatePickup(859,1,GribInfo[i][gribPos][0], GribInfo[i][gribPos][1], GribInfo[i][gribPos][2],-1);
                        }
                        GLS[36]=0;
            }
            case 1100:
            {
                        new h,m,s;
                        gettime(h,m,s);
                        if(h<19 && h>5)
                        {
                        Weather = random(20);
                                switch(Weather)
                                {
                                        case 1:Weather = 2;
                                        case 2:Weather = 2;
                                        case 8: Weather = 2;
                                        case 16: Weather = 2;
                                        case 17:Weather = 2;
                                        default: Weather = 2;
                                }
                                SetWeather(Weather);
                        }
            }
        }
        foreach(new i : Vehicle)
        {
        if(i < MAX_BOMBS) BombTimer(i);
                CheckPassengers(i);
                CheckGas(i);
                CheckCarTime(i);
                if(i < MAX_ORGS)
                {
                if(RecoveryTime[i] > 0)
                    {
                        RecoveryTime[i] --;
                        if(RecoveryTime[i] == 0) SendTeamMessage(i, COLOR_Florence, !"Ваша банда/мафия восстановила силы и может захватывать зоны.");
                        }
                }
        }
        for(new playerid; playerid < MAX_PLAYERS; playerid++)
        {
                if(!IsPlayerNPC(playerid))
            {
                        if(hour == 00 && minuite == 00 && second == 00)
                        {
                            if(getDayEx()==2)
                                {
                                        if(IsPlayerLogged{playerid} && PI[playerid][pAdmin]) {
                                            AdminInfo[playerid][admPlayTime] = 0;
                                    }
                                        mysql_tquery(mysql, "UPDATE admin SET online_monday = 0, online_tuesday = 0, online_wednesday = 0, online_thursday = 0, online_friday = 0, online_saturday = 0, online_sunday = 0", "", "");
                                }
                        }
                        if(hour == 23 && minuite == 00 && second == 00)
                        {
                                if(IsPlayerLogged{playerid} && AcceptQuest[playerid][12])
                                {
                                    AcceptQuest[playerid][12] =
                                    QuestProgress[playerid][12] = 0;
                                }
                                else if(!IsPlayerLogged{playerid})
                                        mysql_tquery(mysql, "DELETE FROM `questsprogress` WHERE `idquest` = 12");
                        }

                        if(hour == 20 && minuite == 15 && second == 0)
                        {
                                if(IsPlayerLogged{playerid} && PI[playerid][pEvent])
                                {
                                    PI[playerid][pEvent] = 0;
                                }
                        }
                        if(IsPlayerLogged{playerid})
                        {
                                if(!PlayerAFKTime[playerid][0] && PI[playerid][pPlayedTime] < 3601)PI[playerid][pPlayedTime]++;
                                if(PI[playerid][pAdmin]) AdminInfo[playerid][admPlayTime]++;
                                if(PI[playerid][pMoney] >= 20000000 && !IsPlayerInAnyVehicle(playerid) && !GetPlayerWeapon(playerid))
                                {
                                    if(PI[playerid][pShowCase])
                                    {
                                                if(!IsPlayerAttachedObjectSlotUsed(playerid, 7))
                                                {
                                                        if(PI[playerid][pSlotItem][7] == 0) SetPlayerAttachedObject(playerid,7,1210,5,0.299999,0.099999,0.000000,0.000000,-83.
000000,0.000000,1.000000,1.000000,1.000000);
                                                        if(PI[playerid][pSlotItem][7] == 11745) GiveItem(playerid,11745);
                                                        if(PI[playerid][pSlotItem][7] == 19921) GiveItem(playerid,19921);
                                                        if(PI[playerid][pSlotItem][7] == 19624) GiveItem(playerid,19624);
                                                }
                                        }
                                }
                                else {
                                    if(IsPlayerAttachedObjectSlotUsed(playerid, 7)) RemovePlayerAttachedObject(playerid, 7);
                                }
                                new Float:armour;
                                GetPlayerArmour(playerid, armour);
                            if (armour > 0.0) {
                                if (!IsPlayerAttachedObjectSlotUsed(playerid, 8)) {
                                    SetPlayerAttachedObject(playerid, 8, 19142, 1, 0.08, 0.04, 0.00, 0.0, 0.0, -7.4);
                                }
                            }
                            else {
                                if(IsPlayerAttachedObjectSlotUsed(playerid, 8)) {
                                    RemovePlayerAttachedObject(playerid, 8);
                                }
                            }
                                PlayerTimer(playerid);
                                NoRoof(playerid);
                            if(GotoInfo[playerid][gtID] != INVALID_PLAYER_ID)
                                {
                                    new cuffed = GotoInfo[playerid][gtID];
                                        if(!IsPlayerConnected(cuffed) || !IsPlayerLogged{cuffed})
                                        {
                                            GotoInfo[playerid][gtID] = INVALID_PLAYER_ID;
                            GotoInfo[playerid][gtTPX] = 0.0;
                            GotoInfo[playerid][gtTPY] = 0.0;
                            GotoInfo[playerid][gtTPZ] = 0.0;
                            GotoInfo[cuffed][gtState] = 0;
                            GotoInfo[cuffed][gtStayed] = 0;
                                            GotoInfo[cuffed][gtGoID] = INVALID_PLAYER_ID;
                                            GotoInfo[cuffed][gtX] = 0.0;
                                                GotoInfo[cuffed][gtY] = 0.0;
                                                GotoInfo[cuffed][gtZ] = 0.0;
                                        }
                                }
                                if(GotoInfo[playerid][gtGoID] != INVALID_PLAYER_ID)
                                {
                                    new goid = GotoInfo[playerid][gtGoID];
                                        if(IsPlayerConnected(goid) && IsPlayerLogged{goid})
                                        {
                                            new Float:xX, Float:xY, Float:xZ,Float:agle;
                                        GetPlayerPos(goid, xX, xY, xZ);
                                        GetPlayerFacingAngle(playerid, agle);
                                            if(!IsPlayerInRangeOfPoint(playerid, 20, xX, xY, xZ))
                                                {
                                                    SetPlayerInterior(playerid,GetPlayerInterior(goid));
                                                        SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(goid));
                                                        SetTimerEx("@__UnFreez",2000, 0, "d", playerid);
                                                        SetPlayerFacingAngle(playerid,agle);
                                                J_SetPlayerPos(playerid, xX,xY,xZ);
                                                }
                                                if(GetPlayerState(goid)==1)
                                                {
                                                    new ANIMATION;
                                                    if(GotoInfo[goid][gtTPX] != 0.0 || GotoInfo[goid][gtTPY] != 0.0)
                                                    {
                                                        SetPlayerFaceToPoint(playerid, GotoInfo[goid][gtTPX], GotoInfo[goid][gtTPY]);
                                                                ANIMATION = GoPlayerAnimation(playerid, GotoInfo[goid][gtTPX], GotoInfo[goid][gtTPY], GotoInfo[goid][gtTPZ]);
                                                    }
                                                    else
                                                    {
                                                        TurnPlayerFaceToPlayer(playerid, goid);
                                                                ANIMATION = GoPlayerAnimation(playerid, xX, xY, xZ);
                                                    }
                                                    if(ANIMATION != 1)
                                                    {
                                                        if(IsPlayerInRangeOfPoint(playerid, 0.05, GotoInfo[playerid][gtX], GotoInfo[playerid][gtY], GotoInfo[playerid][gtZ]))
                                                        {
                                                            GotoInfo[playerid][gtStayed] ++;
                                                            if(GotoInfo[playerid][gtStayed] >= 10)
                                                            {
                                                                    new Float:xA;
                                                                GetPlayerPos(playerid, xX, xY, xZ);
                                                                    GetPlayerFacingAngle(playerid, xA);
                                                                    ShiftCords(0, xX, xY, xA, 1.5);
                                                                    J_SetPlayerPos(playerid, xX, xY, xZ);
                                                                    GotoInfo[playerid][gtStayed] = 0;
                                                            }
                                                        }
                                                        else GotoInfo[playerid][gtStayed] = 0;
                                                                GetPlayerPos(playerid, GotoInfo[playerid][gtX], GotoInfo[playerid][gtY], GotoInfo[playerid][gtZ]);
                                                    }
                                                }
                                        }
                                        else
                                        {
                                            GotoInfo[playerid][gtGoID] = INVALID_PLAYER_ID;
                                            GotoInfo[playerid][gtX] = 0.0;
                                                GotoInfo[playerid][gtY] = 0.0;
                                                GotoInfo[playerid][gtZ] = 0.0;
                                        }
                                }
                                if(TimetoReturn[playerid] > 0 && pTemp[playerid][pArendaCar] != -1)
                                {
                                TimetoReturn[playerid]--;
                                format(str, sizeof(str), "Return %d/120",TimetoReturn[playerid]);
                                        GameTextForPlayer(playerid, str, 1000, 4);
                                        if(TimetoReturn[playerid]==0)
                                        {
                                        GetVehicleHealth(pTemp[playerid][pArendaCar],VehicleHealth[pTemp[
playerid][pArendaCar]] );
                                            if(VehicleHealth[pTemp[playerid][pArendaCar]]<700)
                                            {
                                                new money = floatround(1000.0-VehicleHealth[pTemp[playerid][pArendaCar]]
);
                                                        if(PI[playerid][pMoney]>=money)
                                                        {
                                                                GiveMoney(playerid,-money);
                                                                format(string,sizeof(string),"Вы заплатили {FFFFFF}%d${FF6347} за порчу государственного имущества! {FFFFFF}(( {FF6347}Вы сильно побили машину{FFFFFF} )).",money);
                                                                SendClientMessage(playerid,COLOR_RED,string);
                                                        }
                                                        else if(PI[playerid][pBank]>=money)
                                                        {
                                                                PI[playerid][pBank] -= money;
                                                                format(string,sizeof(string),"С банковского счета было изьято {FFFFFF}%d${FF6347} за порчу гос. имущества! {FFFFFF}(( {FF6347}Вы сильно побили машину{FFFFFF} )).",money);
                                                                SendClientMessage(playerid,COLOR_RED,string);
                                                        }
                                                        else if(PI[playerid][pZKP]>=10)
                                                        {
                                                                PI[playerid][pZKP]-=10;
                                                                SendClientMessage(playerid,COLOR_RED,"У вас не достаточно денег чтобы заплатить за разбитое авто. Ваша законопослушность была снижена!");
                                                        }
                                            }

                                            switch(VehicleInfo[pTemp[playerid][pArendaCar]][vJob]
)
                                            {
                                                case 1: endrabavt(playerid);
                                                        case 11:
                                                        {
                                                            new vehsid = GetVehicleTrailer(pTemp[playerid][pArendaCar]);
                                                            SetVehicleToRespawn(vehsid);
                                                            SetVehicleToRespawn(pTemp[playerid][pArendaCar]);
                                                        }
                                                default: SetVehicleToRespawn(pTemp[playerid][pArendaCar]);
                                            }
                                            SendClientMessage(playerid,COLOR_BLUE,"[Подсказка] {FFFFFF}Ваш рабочий транспорт был отбуксирован на стоянку!");
                                        }
                                }
                                else if(TimetoReturn[playerid] > 0 && (pTemp[playerid][pSellCar] != -1 && autoBazarInfo[pTemp[playerid][pSellCar]][autoBazarplayerid]
 == playerid))
                                {
                                        TimetoReturn[playerid] --;
                                        format(str, sizeof(str), "Return %d/10", TimetoReturn[playerid]);
                                        GameTextForPlayer(playerid, str, 1000, 4);
                                        if(!TimetoReturn[playerid])
                                        {
                                            SendClientMessage(playerid, COLOR_VALIK, !"[Информация] {FFFFFF}Транспорт снят с продажи, из-за того что вы или транспорт покинули место!");
                        new i = pTemp[playerid][pSellCar];
                                                autoBazarInfo[i][autoBazar2PosX] =
                                                autoBazarInfo[i][autoBazar2PosY] =
                                                autoBazarInfo[i][autoBazar2PosZ] = 0.0;
                                        autoBazarInfo[i][autoBazarCarID] = INVALID_VEHICLE_ID;
                                        autoBazarInfo[i][autoBazarplayerid] = INVALID_PLAYER_ID;
                                        DestroyDynamic3DTextLabel(autoBazarInfo[i][autoBazarLabel2]);
                                        DestroyDynamicArea(autoBazarInfo[i][autoBazarArea]);
                                        ABTUNINT[playerid] = 1;
                                        DestroyAutoBazarTable(i);
                                        if(autoBazarInfo[i][autoBazarType] == 1) {
                                                UpdateDynamic3DTextLabelText(autoBazarInfo[i][autoBazarLabel], -1, "Место для продажи {33aa33}[Свободно]\n{d1ca61}Тип: вело/авто/мото\n{FFFFFF}Нажмите 'H' (сигнал) чтобы занять");
                                        }
                                        else {
                                                UpdateDynamic3DTextLabelText(autoBazarInfo[i][autoBazarLabel], -1, "Место для продажи {33aa33}[Свободно]\n{d1ca61}Тип: вертолёты\n{FFFFFF}Нажмите 'H' (сигнал) чтобы занять");
                                        }
                                        printf("%i %i %i timetoreturn", TimetoReturn[playerid], pTemp[playerid][pSellCar], autoBazarInfo[pTemp[playerid][pSellCar]][autoBazarplayerid]
);
                                                i = -1;
                                                printf("%i %i timetoreturn", i, TimetoReturn[playerid]);
                                    }
                                }
                                if(TimetoReturn[playerid] > 0 && (pTemp[playerid][pLavka] != -1 && LavkaInfo[pTemp[playerid][pLavka]][lavkaOwnerID] == playerid))
                                {
                                        TimetoReturn[playerid] --;
                                        format(str, sizeof(str), "Return %d/15", TimetoReturn[playerid]);
                                        GameTextForPlayer(playerid, str, 1000, 4);
                                        if(!TimetoReturn[playerid])
                                        {
                                            SendClientMessage(playerid, COLOR_RED, !"[Информация] {FFFFFF}Ваша лавка была закрыта, из-за того что вы её покинули!");
                        new i = pTemp[playerid][pLavka];
                                        DestroyDynamicArea(LavkaInfo[i][lavkaArea]);
                                                DestroyDynamic3DTextLabel(LavkaInfo[i][lavkaLabel]);
                                                LavkaInfo[pTemp[playerid][pLavka]][lavkaOwnerID] = INVALID_PLAYER_ID;
                                                format(string, sizeof(string), "Номер %i. {30A332}Свободная!", pTemp[playerid][pLavka]);
                                                SetDynamicObjectMaterialText(palatki[pTemp[playerid][pLavka]]
, 0, string, 130, "Ariel", 55, 1, 0xFFFFFFFF, 0, 1);
                                                i = -1;
                                    }
                                }
                                if(IDOFMusic!=-1)
                                {
                                        if(IsPlayerInRangeOfPoint(playerid,120,-575.7592,2568.7976,1702.5029))
                                    {
                                        if(GetPVarInt(playerid,"music"))
                                        {
                                                        if(MusicInfo[IDOFMusic][mNowTime]==MusicInfo[IDOFMusic][
mTime])
                                                        {
                                                            StopAudioStreamForPlayer(playerid);
                                                            if(IDOFMusic<24) PlayAudioStreamForPlayer(playerid, MusicInfo[IDOFMusic+1][mAdress],-575.7592,2568.7976,1702.5029,120,
true);
                                                            else PlayAudioStreamForPlayer(playerid, MusicInfo[IDOFMusic][mAdress],-575.7592,2568.7976,1702.5029,120,true);

                                                        }
                                        }
                                        else
                                                {
                                                        SetPVarInt(playerid,"music",1);
                                                        PlayAudioStreamForPlayer(playerid, MusicInfo[IDOFMusic][mAdress],-575.7592,2568.7976,1702.5029,120,true);

                                                }
                                    }
                                else
                                {
                                        if(GetPVarInt(playerid,"music"))
                                        {
                                                DeletePVar(playerid,"music");
                                                StopAudioStreamForPlayer(playerid);
                                        }
                                }
                                }
                                else
                                {
                                    if(GetPVarInt(playerid,"music"))
                                {
                                    DeletePVar(playerid,"music");
                                        StopAudioStreamForPlayer(playerid);
                                }
                                }
                                if(PI[playerid][pONPhoneTalk]>0)
                                {
                                    PI[playerid][pONPhoneTalk]++;
                                    if(pSvon{playerid}) {
                                            format(string,sizeof(string),"~l~%s~n~~r~Outcoming~n~~l~(~b~%d ~l~sec.)",PN(PI[playerid][pCalling]), PI[playerid][pONPhoneTalk]);
                                        }
                                        else {
                                        format(string,sizeof(string),"~l~%s~n~~g~Incoming~n~~l~(~b~%d ~l~sec.)",PN(PI[playerid][pCalling]), PI[playerid][pONPhoneTalk]);
                                        }
                                        PlayerTextDrawSetString(playerid,callname[playerid], string);
                                }
                                if(Timerak[playerid]>0)
                                {
                                    Timerak[playerid]--;
                                    format(str, sizeof(str), "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~b~Wait %d Sec.",Timerak[playerid]);
                                        GameTextForPlayer(playerid, str, 1000, 3);
                                        ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 2, 0, 0, 0, 0, 0);
                                        if(Timerak[playerid]==0)
                                        {
                                            new Float:x, Float:y, Float:z;
                                            for(new i;i<MAX_NARKO;i++)
                                                {
                                                    if(ddrugs[i]!=-1)
                                                    {
                                                        GetDynamicObjectPos(ddrugs[i],x,y,z);
                                                                if(IsPlayerInRangeOfPoint(playerid,2,x,y,z))
                                                                {
                                                                    if(ddTimer[i]==0)
                                                                {
                                                                    if(GetInvSet(playerid) >= 72+PI[playerid][pBuySlot]) return SendClientMessage(playerid, COLOR_RED, !"[Ошибка] {FFFFFF}У вас не хватает места в инвентаре!");
                                                                            DestroyDynamicObject(ddrugs[i]);
                                                                            DestroyDynamic3DTextLabel(ddText[i]);
                                                                            ddTimer[i]=0;
                                                                            ddrugs[i]=-1;

                                                                                new u=2+random(12);
                                                        format(string,sizeof(string),"Выкопал куст конопли +%d",u);
                                                                                SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 10.0, 5000);

                                                                                format(string,sizeof(string),"Narko +%d",u);
                                                                                GameTextForPlayer(playerid, string, 0, 1);

                                                                                AddItem(playerid, 377, u);
                                                                        }
                                                                        else
                                                                        {
                                                                            DestroyDynamicObject(ddrugs[i]);
                                                                            DestroyDynamic3DTextLabel(ddText[i]);
                                                                            ddTimer[i]=0;
                                                                            ddrugs[i]=-1;
                                                                            SetPlayerChatBubble(playerid, "Вырвал не созревший саженец из земли", COLOR_PURPLE, 10.0, 5000);
                                                                            SendClientMessage(playerid,COLOR_ORANGE,"Вы успешно вырвали саженец конопли из земли.");
                                                                            GameTextForPlayer(playerid, "torned", 0, 1);
                                                                        }
                                                                }
                                                        }
                                                }
                                        }
                                }
                                if(PI[playerid][pbydilnik]>0)
                                {
                                    PI[playerid][pbydilnik]--;
                                    format(string,sizeof(string),"%d",PI[playerid][pbydilnik]
);
                                        PlayerTextDrawSetString(playerid,bydilnik[playerid], string);
                                        if(PI[playerid][pbydilnik]==0)
                                        {
                                            format(string,sizeof(string),"{B03131}Установленый вами таймер закончил работу!\nВремя остановки {73B461}%d:%d:%d\n\n",hour,minuite,second);
                                            ShowPlayerDialogEx(playerid,0,0,"",string,"Закрыть","
");
                                            TextDrawHideForPlayer(playerid,kryg);
                                                PlayerTextDrawDestroy(playerid, bydilnik[playerid]);
                                                PlayAudioStreamForPlayer(playerid, "http://ringtones.mob.org.ru/ringtone/Qwh8nFf4Sqi0EbWL3yOc8w/1426493202/
19444_wapres_ru/zvuki-radiotelefon.mp3");
                                                ClearChatForPlayer(playerid);
                                                SetPlayerChatBubble(playerid, "Издает звук будильника!", COLOR_PURPLE, 10.0, 5000);
                                        }
                                }
                                else if(PI[playerid][pEventTime] > 0)
                                {
                                        PI[playerid][pEventTime] --;
                                        format(string, sizeof(string), "Time: %s", ConvertTD(PI[playerid][pEventTime]));
                                        PlayerTextDrawSetString(playerid, EventTimeTD[playerid][0], string);
                                        if(PI[playerid][pEventTime] == 0)
                                        {
                                                ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, !"", !"\n\n{ffffff}Вы успешно покинули мероприятие, так-как у вас закончилось время!\n\n", !"Принять", !"");
                                                PlayerTextDrawDestroy(playerid, EventTimeTD[playerid][0]);
                                                SetPlayerVirtualWorld(playerid, 0);
                                                SetPlayerInterior(playerid, 0);
                                                J_SetPlayerPos(playerid, -2267.3701, 180.6651, 35.3125);
                                                SetPlayerFacingAngle(playerid, 229.3854);
                                                if(IsPlayerAttachedObjectSlotUsed(playerid, 3))
                                                        RemovePlayerAttachedObject(playerid,3);
                                        }
                                }
                                else if(Fullness[playerid] > 2 && Crack{playerid} && !CuffedTime[playerid] && !Cuffed{playerid})
                            {
                                Crack{playerid} = false;
                                TogglePlayerControllable(playerid,true);
                                ClearAnimations(playerid);
                            }
                                if(PlayerAFK[playerid] == 0 || GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
                                {
                                        PlayerAFKTime[playerid][0] ++;
                                        if(PlayerAFKTime[playerid][0] <= 300) format(string,sizeof(string),"Отошел {73B461}( %s )",Convert(PlayerAFKTime[playerid][0]));
                                        else format(string,sizeof(string),"Кушает {6495ED}( 5:00+ )");
                                        if(PlayerAFKTime[playerid][0] >= 3000) format(string,sizeof(string),"Вышел на улицу {FAAC58}( %s )",Convert(PlayerAFKTime[playerid][0]));
                                        SetPlayerChatBubble(playerid, string, COLOR_WHITE, 30.0, 3000);
                                }
                                PlayerAFK[playerid] = 0;
                                if(Recuffer[playerid]!=INVALID_PLAYER_ID)
                                {
                                        new Float:x,Float:y,Float:z;
                                        GetPlayerPos(Recuffer[playerid],x,y,z);
                                    if(!IsPlayerInRangeOfPoint(playerid, 50, x, y, z))
                                        {
                                            cuffer[playerid]++;
                                            format(str, sizeof(str), "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~Free %d/10 Sec.",cuffer[playerid]);
                                                GameTextForPlayer(playerid, str, 1000, 3);

                                            if(cuffer[playerid]>=10)
                                            {
                                                if(IsPlayerConnected(Recuffer[playerid]))SendClientMessage(Recuffer[playerid]
,COLOR_GREY,"[Ошибка] {FFFFFF} Вы отошли слишком далеко от игрока которого сковали!");
                                                    Cuffed{playerid} = false;
                                                        CuffedTime[playerid] = 0;
                                                        TogglePlayerControllable(playerid,true);
                                                        SetPlayerSpecialAction(playerid, 0);
                                                    ClearAnims(playerid);
                                                SendClientMessage(playerid,COLOR_GREY,"[Информация]{FFFFFF} Вы успешно избавились от наручников.");
                                                CheckPlayerGoCuff(Recuffer[playerid]);
                                CheckPlayerGoCuff(playerid);
                                            }
                                        }
                                        else if(cuffer[playerid]>0)cuffer[playerid]--;
                                }
                                if(PI[playerid][pMaskON]>0)
                                {
                                    PI[playerid][pMaskON]--;
                                    if(PI[playerid][pMaskON]==0)
                                    {
                                        if(TeamDuty{playerid}) SetPlayerColor(playerid,TeamColors[GetTeamID(playerid)]);
                                                else SetPlayerColor(playerid,0xFFFFFF80);
                                        SendClientMessage(playerid,COLOR_BLUE,"[Информация] {FFFFFF}Время действия маски истекло, вам пришлось ее выбросить.");
                                        SetPlayerChatBubble(playerid, "Выбросил маску", COLOR_PURPLE, 10.0, 5000);
                                    }
                                }
                                new weapon = GetPlayerWeapon(playerid);
                                new ammo = GetPlayerAmmo(playerid);
                                new weap = GetPlayerWeapon(playerid);
                                new slot = GetWeaponSlot(weap);
                                if(gunmute[playerid]<=gettime())
                                {
//                    if(PI[playerid][pGuns][GetWeaponSlot(weapon)] == weapon)
                                    {
                                        if(PI[playerid][pAmmos][slot]==GetPlayerAmmo(playerid))
                                        {
                                                        PI[playerid][pLastGun]=weapon;
                                                        PI[playerid][pLastAmmo]= ammo;
                                                }
                                        }
                                }
                                if(kostiKos[playerid]>0)
                                {
                                    kostiKos[playerid]--;
                                    CarryAnim(playerid);
                                    if(kostiKos[playerid]==0)
                                    {
                                        if(IsPlayerAttachedObjectSlotUsed(playerid,7)) RemovePlayerAttachedObject(playerid,7);
                                        ApplyAnimation(playerid, "BD_FIRE", "BD_Fire1", 4.1, 0, 0, 0, 0, 1, 1);
                                        kostiKos[playerid]=0;
                                    }
                                }
                                new job = PI[playerid][pJob];
                                if((job == JOB_PORTER || job == 17 || job == JOB_PIZZA || job == 21)&& InJob[playerid]==3) CarryAnim(playerid);
                                if(PI[playerid][pMoney] < 0)
                                {
                                    SetPlayerMoney(playerid, 2000000000);
                                        SendClientMessage(playerid, COLOR_RED, !"Вы превышаете лимит денег.");
                                        format(str, sizeof(str), "< Money [-] > %s[%d] Подозревается в использовании багов денег!", PN(playerid), playerid);
                                        SendAdminsMessage(COLOR_RED, str);
                                //      J_Kick(playerid);
                                }
                                if(CreteBomb[playerid]>0 && CreteBomb[playerid] < 100 )
                                {
                                    CreteBomb[playerid]--;
                                    format(str, sizeof(str), "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~Creating %d Sec.",CreteBomb[playerid]);
                                        GameTextForPlayer(playerid, str, 1000, 3);
                                    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 2, 0, 0, 0, 0, 0);
                                    SetPlayerChatBubble(playerid, "Делает подозрительный предмет", COLOR_PURPLE, 10.0, 5000);
                                    if(CreteBomb[playerid]==0)
                                    {
                                                SendClientMessage(playerid,COLOR_GREY,"Вы успешно сделали бомбу, будьте осторожны, не прыгайте!");
                                        if(!IsPlayerAttachedObjectSlotUsed(playerid, 7))SetPlayerAttachedObject(playerid, 7, 1279, 5, 0.05, 0.24, 0.2, 104, 10, 75);
                                                CreteBomb[playerid]=250;
                                                PI[playerid][pBomb]=1;
                                                CarryAnim(playerid);
                                        }
                                }
                                if(BusTime[playerid] > 0)
                            {
                                BusTime[playerid]--;
                                    format(string,sizeof(string),"~r~%d", BusTime[playerid]);
                                    GameTextForPlayer(playerid,string,1000,6);
                                        if(BusTime[playerid] <= 1) endrabavt(playerid);
                            }
                            if(TimeBus[playerid] > 0)
                            {
                                        TimeBus[playerid]--;
                                        if(TimeBus[playerid] <= 0)
                                        {
                                                TimeBus[playerid]=0;
                                                switch(Vehs[playerid][vReis])
                                                {
                                                        case 1: SetPlayerRaceCheckpoint(playerid,BusCityLS[pPressed[playerid]][
BUSSTATION1],BusCityLS[pPressed[playerid]][BUS_COORD1]
[0],BusCityLS[pPressed[playerid]][BUS_COORD1][
1],BusCityLS[pPressed[playerid]][BUS_COORD1][2]
,BusCityLS[pPressed[playerid]+1][BUS_COORD1][0],BusCityLS[
pPressed[playerid]+1][BUS_COORD1][1],BusCityLS[pPressed[
playerid]+1][BUS_COORD1][2],10.0);
                                                        case 2: SetPlayerRaceCheckpoint(playerid,BusFarm[pPressed[playerid]][
BUSSTATION2],BusFarm[pPressed[playerid]][BUS_COORD2][
0],BusFarm[pPressed[playerid]][BUS_COORD2][1],
BusFarm[pPressed[playerid]][BUS_COORD2][2],BusFarm[
pPressed[playerid]+1][BUS_COORD2][0],BusFarm[pPressed[
playerid]+1][BUS_COORD2][1],BusFarm[pPressed[playerid]
+1][BUS_COORD2][2],10.0);
                                                        case 3: SetPlayerRaceCheckpoint(playerid,BusZav[pPressed[playerid]][BUSSTATION3]
,BusZav[pPressed[playerid]][BUS_COORD3][0],BusZav[
pPressed[playerid]][BUS_COORD3][1],BusZav[pPressed[
playerid]][BUS_COORD3][2],BusZav[pPressed[playerid]
+1][BUS_COORD3][0],BusZav[pPressed[playerid]+1]
[BUS_COORD3][1],BusZav[pPressed[playerid]+1][BUS_COORD3]
[2],10.0);
                                                        case 4: SetPlayerRaceCheckpoint(playerid,BusAvto[pPressed[playerid]][
BUSSTATION4],BusAvto[pPressed[playerid]][BUS_COORD4][
0],BusAvto[pPressed[playerid]][BUS_COORD4][1],
BusAvto[pPressed[playerid]][BUS_COORD4][2],BusAvto[
pPressed[playerid]+1][BUS_COORD4][0],BusAvto[pPressed[
playerid]+1][BUS_COORD4][1],BusAvto[pPressed[playerid]
+1][BUS_COORD4][2],10.0);
                                                        case 5: SetPlayerRaceCheckpoint(playerid,BusLv[pPressed[playerid]][BUSSTATION5]
,BusLv[pPressed[playerid]][BUS_COORD5][0],BusLv[
pPressed[playerid]][BUS_COORD5][1],BusLv[pPressed[
playerid]][BUS_COORD5][2],BusLv[pPressed[playerid]
+1][BUS_COORD5][0],BusLv[pPressed[playerid]+1]
[BUS_COORD5][1],BusLv[pPressed[playerid]+1][BUS_COORD5]
[2],10.0);
                                                        case 6: SetPlayerRaceCheckpoint(playerid,BusLvv[pPressed[playerid]][BUSSTATION6]
,BusLvv[pPressed[playerid]][BUS_COORD6][0],BusLvv[
pPressed[playerid]][BUS_COORD6][1],BusLvv[pPressed[
playerid]][BUS_COORD6][2],BusLvv[pPressed[playerid]
+1][BUS_COORD6][0],BusLvv[pPressed[playerid]+1]
[BUS_COORD6][1],BusLvv[pPressed[playerid]+1][BUS_COORD6]
[2],10.0);
                                                        case 7: SetPlayerRaceCheckpoint(playerid,BusLvvv[pPressed[playerid]][
BUSSTATION7],BusLvvv[pPressed[playerid]][BUS_COORD7][
0],BusLvvv[pPressed[playerid]][BUS_COORD7][1],
BusLvvv[pPressed[playerid]][BUS_COORD7][2],BusLvvv[
pPressed[playerid]+1][BUS_COORD7][0],BusLvvv[pPressed[
playerid]+1][BUS_COORD7][1],BusLvvv[pPressed[playerid]
+1][BUS_COORD7][2],10.0);
                                                        case 8: SetPlayerRaceCheckpoint(playerid,bussf[pPressed[playerid]][BUSSTATION8]
,bussf[pPressed[playerid]][BUS_COORD8][0],bussf[
pPressed[playerid]][BUS_COORD8][1],bussf[pPressed[
playerid]][BUS_COORD8][2],bussf[pPressed[playerid]
+1][BUS_COORD8][0],bussf[pPressed[playerid]+1]
[BUS_COORD8][1],bussf[pPressed[playerid]+1][BUS_COORD8]
[2],10.0);
                                                        case 9: SetPlayerRaceCheckpoint(playerid,buslvsf[pPressed[playerid]][
BUSSTATION9],buslvsf[pPressed[playerid]][BUS_COORD9][
0],buslvsf[pPressed[playerid]][BUS_COORD9][1],
buslvsf[pPressed[playerid]][BUS_COORD9][2],buslvsf[
pPressed[playerid]+1][BUS_COORD9][0],buslvsf[pPressed[
playerid]+1][BUS_COORD9][1],buslvsf[pPressed[playerid]
+1][BUS_COORD9][2],10.0);
                                                        case 10: SetPlayerRaceCheckpoint(playerid,bussfsf[pPressed[playerid]][
BUSSTATION10],bussfsf[pPressed[playerid]][BUS_COORD10]
[0],bussfsf[pPressed[playerid]][BUS_COORD10][1]
,bussfsf[pPressed[playerid]][BUS_COORD10][2],bussfsf[
pPressed[playerid]+1][BUS_COORD10][0],bussfsf[pPressed[
playerid]+1][BUS_COORD10][1],bussfsf[pPressed[playerid]
+1][BUS_COORD10][2],10.0);
                                                        case 11: SetPlayerRaceCheckpoint(playerid,bussffa[pPressed[playerid]][
BUSSTATION11],bussffa[pPressed[playerid]][BUS_COORD11]
[0],bussffa[pPressed[playerid]][BUS_COORD11][1]
,bussffa[pPressed[playerid]][BUS_COORD11][2],bussffa[
pPressed[playerid]+1][BUS_COORD11][0],bussffa[pPressed[
playerid]+1][BUS_COORD11][1],bussffa[pPressed[playerid]
+1][BUS_COORD11][2],10.0);
                                                }
                                        }
                                }
                                new carid = GetPlayerVehicleID(playerid);
                                if(GetPlayerState(playerid) == 2)
                                {
                                        if(PI[playerid][pJob] == JOB_TRUCKER && VehicleInfo[carid][vJob] == JOB_TRUCKER)
                                        {
                                                if(IsTrailerAttachedToVehicle(carid))
                                                {
                                                        if(InJob[playerid] == 0)
                                                        {
                                                                new trailer = GetVehicleTrailer(carid);
                                                                if(GetVehicleModelEx(trailer) == 584)
                                                                {
                                                                    InJob[playerid] = 1;
                                                                        ShowPlayerAZS(playerid);
                                                                }
                                                                else if(GetVehicleModelEx(trailer) == 591)
                                                                {
                                                                    InJob[playerid] = 1;
                                                                        ShowPlayerGS(playerid);
                                                                }
                                                        }
                                                }
                                                else
                                                {
                                                        if(InJob[playerid] == 1)
                                                        {
                                                            InJob[playerid] = 0;
                                                            FactoryMats += 500;
                                                            new gopost = PlayerGoPost[playerid];
                                                            if(PlayerGoPost[playerid]!=-1)
                                                            {
                                                                        if(PlayerGoPost[playerid]<20)TogglePlayerDynamicCP(playerid, GoFuelCP[gopost], false);
                                                                        if(PlayerGoPost[playerid]<11)TogglePlayerDynamicCP(playerid, GoGunShopCP[gopost], false);
                                                                }
                                                            SendClientMessage(playerid,COLOR_GREY,"Груз который вы везете отцепился!");
                                                        format(str, sizeof(str), "{FFFFFF}Металла: {10F441}%dкг\n{FFFFFF}Материалов: {10F441}%d\n\n{FFFFFF}Встаньте на чекпоинт чтобы купить материалы", FactoryFerum, FactoryMats);
                                                                UpdateDynamic3DTextLabelText(FactoryText[0], COLOR_WHITE, str);
                                                                PlayerGoPost[playerid]=-1;
                                                                DetachTrailerFromVehicle(carid);
                                                        }
                                                }
                                        }
                                }
                                if(PI[playerid][pWarns]>0 && PI[playerid][pTimeToLastWarn]+(3600*24*10)<gettime())
                                {
                                    PI[playerid][pWarns]--;
                                    PI[playerid][pTimeToLastWarn]=gettime();
                                    SendClientMessage(playerid, -1, "Прошло 10 дней и мы спешим вам сообщить что один варн снят.");
                                }
                            new tmpcar = GetPlayerVehicleID(playerid);
                                //античит на хп by union
                                if(VehicleInfo[tmpcar][vAntiRepair]>0) VehicleInfo[tmpcar][vAntiRepair]--;
                                if(PI[playerid][pChestTime] > 0) PI[playerid][pChestTime] --;
                                if(PI[playerid][pChestTime2] > 0) PI[playerid][pChestTime2] --;
                                new Float:vehhealth; GetVehicleHealth(tmpcar, vehhealth);
                                if(!VehicleInfo[tmpcar][vAntiRepair] && VehicleHealth[tmpcar]<vehhealth)SetVehicleHealth(tmpcar,VehicleHealth[
tmpcar]);
                                if(!VehicleInfo[tmpcar][vAntiRepair] && VehicleHealth[tmpcar]>vehhealth) VehicleHealth[tmpcar] = vehhealth;
                        }
                        if(!IsPlayerLogged{playerid})
                        {
                            if(DRotTick[playerid]>0)
                                {
                                        DRotTick[playerid]--;
                                        if(DRotTick[playerid]==0)
                                        {
                                                SendClientMessage(playerid,COLOR_RED,"Вы были кикнуты за бездействие при авторизации.");
                                                J_Kick(playerid);
                                        }
                                }
                        }
                }
        }
        for(new i;i<MAX_WOODS;i++)
    {
        if(wwoods[i]!=-1)
        {
            if(wwTimer[i]>0)
                    {
                    wwTimer[i]--;
                                format(string,sizeof(string),"Костер\nРазжёг: %s\n{FFFFFF}Горит. Осталось: {FAAC58}%d {FFFFFF}минут(ы).\n\nПожарить рыбу: /cook",wOwner[i],floatround(float(wwTimer[i])/60.0));
                UpdateDynamic3DTextLabelText(wwText[i],COLOR_WHITE,string);
                            if(wwTimer[i]==0)
                {
                    DestroyDynamicObject(wwoods[i]);
                    DestroyDynamic3DTextLabel(wwText[i]);
                    wwTimer[i]=0;
                    wwoods[i]=-1;
                                }
            }
                }
        }
    for(new i;i<MAX_NARKO;i++)
        {
            if(ddrugs[i]!=-1)
            {
                    if(ddTimer[i]>0)
                    {
                    ddTimer[i]--;
                    if(ddTimer[i] > 3600)
                    {
                            format(string,sizeof(string),"Саженец конопли\nВ процессе созревания. Осталось: {FAAC58}%d{FFFFFF} минут(ы).",floatround(float(ddTimer[i])/60.0));
                            UpdateDynamic3DTextLabelText(ddText[i],COLOR_WHITE,string);
                                }
                    if(ddTimer[i]<= 3600)
                    {
                        new Float:x, Float:y,Float:z;
                                GetDynamicObjectPos(ddrugs[i],x,y,z);

                            if(ddTimer[i]== 3600)
                                        {
                                            DestroyDynamicObject(ddrugs[i]);
                                            ddrugs[i] = CreateDynamicObject(861, x,y,z,0, 0,180);
                                        }
                                        if(ddTimer[i]== 0)
                            {
                                DestroyDynamicObject(ddrugs[i]);
                                            ddrugs[i] = CreateDynamicObject(862, x,y,z,0, 0,180);
                                format(string,sizeof(string),"{FAAC58}Созревшая конопля{FFFFFF}\nНажмите ALT чтобы забрать урожай.");
                                    UpdateDynamic3DTextLabelText(ddText[i],COLOR_WHITE,string);
                            }
                                        else
                                        {
                                            format(string,sizeof(string),"Конопля\nСозревает. Осталось: {FAAC58}%d{FFFFFF} минут(ы).",floatround(float(ddTimer[i])/60.0));
                                UpdateDynamic3DTextLabelText(ddText[i],COLOR_WHITE,string);
                                        }
                    }
                    }
                }
        }
    for(new i;i<MAX_ACTORSS;i++)
        {
                if(actortime[i]>0)
                {
                        actortime[i]--;
                        if(actortime[i]==0)
                        {
                                Update3DTextLabelText(tActor[i], COLOR_GREY, "");
                                ApplyActorAnimation(i, "BD_FIRE", "BD_Fire1", 4.1, 0, 0, 0, 0, 1);
                                if(i==98||i==99||i==100||i==101||(i>=103 && i<=112)) ApplyActorAnimation(i,"PED","SEAT_down",4.1,0,0,0,1,1);
                        }
                }
        }
        if(BizWarState>0)
        {
            if(BizTime[1]==0)
                {
                        BizTime[0]--;
                        BizTime[1]=60;
                }
                BizTime[1]--;
                if(BizTime[0] == 0 && BizTime[1] == 0)
                {
                    if(BizWarState == 2)
                        {
                            RecoveryTime[BizAtack] = 1800;
                                RecoveryTime[BizDeff] = 1800;
                                if(BizAtakkill > BizDeffkill)
                                {
                                    SendTeamMessage(BizDeff,COLOR_RED,"Вы проиграли стрелу");
                                    SendTeamMessage(BizAtack,COLOR_VALIK,"Вы выиграли стрелу!");
                                    BizInfo[BizWar][bKrasher] =BizAtack;
                                    UpdateBiz(BizWar,1);
                                    UpdateDorm(BizDeff);
                                    UpdateDorm(BizAtack);
                                }else{
                                    SendTeamMessage(BizAtack,COLOR_RED,"Вы проиграли сражение за территорию");
                                    SendTeamMessage(BizDeff,COLOR_VALIK,"Вы выиграли сражение за территорию!");
                                }
                                BizTime[0]=0; BizTime[1]=0;
                                BizWarState = 0;
                                for(new i; i<5; i++){TextDrawHideForAll(Grand2Kapt[i]);}
                                BizDeff = -1;
                                BizAtack = -1;
                                PlaceWar=0;

                        }
                        if(BizWarState == 1)
                        {
                            new Attack, Deff;
                                foreach(new i: Player)
                                {
                                    switch(PlaceWar)
                                    {
                                        case 1: if(!IsPlayerInRangeOfPoint(i, 100.0, -553.5379,-189.4500,78.4063)) continue;
                                        case 2: if(!IsPlayerInRangeOfPoint(i, 200.0, 400.7428,2505.4106,16.4844)) continue;
                                        case 3: if(!IsPlayerInRangeOfPoint(i, 200.0, 331.5244,1116.4584,11.2496)) continue;
                                        case 4: if(!IsPlayerInRangeOfPoint(i, 200.0, -1297.4867,2551.0503,87.1012)) continue;
                                    }

                                        if(PI[i][pMember] == BizAtack) Attack++;
                                        if(PI[i][pMember] == BizDeff) Deff++;
                                }
                                if(Attack >= 4 && Deff >= 4)
                                {
                                    SendTeamMessage(BizAtack,COLOR_GREY,"Стрела началась!");
                                    SendTeamMessage(BizDeff,COLOR_GREY,"Стрела началась!");
                                    BizAtakkill = 0;
                                    BizDeffkill = 0;
                                    BizWarState++;
                                    BizTime[0] = 10;
                                    BizTime[1] = 0;
                                }
                                else
                                {
                                    SendTeamMessage(BizAtack,COLOR_GREY,"Стрела отменена!");
                                    SendTeamMessage(BizDeff,COLOR_GREY,"Стрела отменена!");
                                    BizWarState = 0;
                                }
                        }
                }
        }
        if(BizWarState == 2)
        {
            new tmin[3], tsec[3], strtime[256];
                if(BizTime[1]<10)format(tsec, sizeof(tsec), "0%d", BizTime[1]); else format(tsec, sizeof(tsec), "%d", BizTime[1]);
                if(BizTime[0]<10)format(tmin, sizeof(tmin), "0%d", BizTime[0]); else format(tmin, sizeof(tmin), "%d", BizTime[0]);
                format(strtime, sizeof(strtime), "%s:%s", tmin, tsec); TextDrawSetString(Grand2Kapt[0], strtime);
                format(strtime, sizeof(strtime), "%d", BizDeffkill); TextDrawSetString(Grand2Kapt[1], strtime);
                format(strtime, sizeof(strtime), "%d", BizAtakkill); TextDrawSetString(Grand2Kapt[2], strtime);
                TextDrawColor(Grand2Kapt[1], TeamColors[BizDeff]);
                TextDrawColor(Grand2Kapt[2], TeamColors[BizAtack]);
        foreach(new playerid: Player)
                {
                    if((GetTeamID(playerid)==BizAtack || GetTeamID(playerid)==BizDeff))
                    for(new i; i<5; i++) TextDrawShowForPlayer(playerid, Grand2Kapt[i]);
                        else for(new i; i<5; i++) TextDrawHideForPlayer(playerid, Grand2Kapt[i]);
                }
        }
        if(CaptureTime[0]>0 || CaptureTime[1]>0)
        {
                if(CaptureTime[1]==0) {CaptureTime[0]--; CaptureTime[1]=60;}
                CaptureTime[1] --;
                new tmin[3], tsec[3], strtime[256];
                if(CaptureTime[1]<10)format(tsec, sizeof(tsec), "0%d", CaptureTime[1]); else format(tsec, sizeof(tsec), "%d", CaptureTime[1]);
                if(CaptureTime[0]<10)format(tmin, sizeof(tmin), "0%d", CaptureTime[0]); else format(tmin, sizeof(tmin), "%d", CaptureTime[0]);
                format(strtime, sizeof(strtime), "%s:%s", tmin, tsec); TextDrawSetString(GrandKapt[0], strtime);
                format(strtime, sizeof(strtime), "%d", CaptureDefKill); TextDrawSetString(GrandKapt[1], strtime);
                format(strtime, sizeof(strtime), "%d", CaptureAtacKill); TextDrawSetString(GrandKapt[2], strtime);
                TextDrawColor(GrandKapt[1], TeamColors[CaptureDef]);
                TextDrawColor(GrandKapt[2], TeamColors[CaptureAtac]);
                foreach(new playerid: Player)
                {
                    if((GetTeamID(playerid)==CaptureAtac || GetTeamID(playerid)==CaptureDef))
                    for(new i; i<5; i++){TextDrawShowForPlayer(playerid, GrandKapt[i]);}else for(new i; i<5; i++){TextDrawHideForPlayer(playerid, GrandKapt[i]);}
                }
                GangZoneFlashForAll(GangZone[CaptureZone],TeamColors[CaptureAtac]
);
        }
        if(CaptureTime[0]==0 && CaptureTime[1]==1)
        {
                GangZoneStopFlashForAll(GangZone[CaptureZone]);
                RecoveryTime[CaptureAtac] = 1800;
                RecoveryTime[CaptureDef] = 1800;
                if(CaptureAtacKill > CaptureDefKill)
                {
                    SendTeamMessage(CaptureDef,COLOR_RED,"Вы проиграли сражение за территорию");
                    SendTeamMessage(CaptureAtac,COLOR_VALIK,"Вы выиграли сражение за территорию!");
                    GangZoneHideForAll(GangZone[CaptureZone]);
                    GangZoneShowForAll(GangZone[CaptureZone],TeamColors[CaptureAtac]);

                    GZInfo[CaptureZone][gzFracID] = CaptureAtac;
                }
                else
                {
                    SendTeamMessage(CaptureAtac,COLOR_RED,"Вы проиграли сражение за территорию");
                    SendTeamMessage(CaptureDef,COLOR_VALIK,"Вы выиграли сражение за территорию!");
                }
                CaptureTime[0]=0; CaptureTime[1]=0;
                for(new i; i<5; i++){TextDrawHideForAll(GrandKapt[i]);}
                UpdateDorm(CaptureDef);
                UpdateDorm(CaptureAtac);
                CaptureDef = -1;
                CaptureAtac = -1;
                SaveGangZone(CaptureZone);
                CaptureZone = -1;
        }
    if(BuildsInfo[0][blTime]>0)
        {
        BuildsInfo[0][blTime]--;
        if(!BuildsInfo[0][blTime])
        {
            SetString(BuildsInfo[0][blArenderID],"The State");
            BuildsInfo[0][blClosed]=
            BuildsInfo[0][blTime]=

            ZallFunction[0]=
            ZallFunction[1]=
            ZallFunction[2]=0;

                        UpdateDynamic3DTextLabelText(BuildsInfo[0][blBuildText],-1,"
{23BA8F}Концертный зал{FFFFFF}\nВход: ALT\nЗдание: {EBA22D}Не арендовано");
                        foreach(new i: Player)
                        {
                                SetPVarInt(i,"zalll",0);
                                PI[i][pZall]=-1;
                        }
        }
        }
        if(IDOFMusic!=-1)
        {
            if(MusicInfo[IDOFMusic][mNowTime]<=MusicInfo[IDOFMusic]
[mTime])MusicInfo[IDOFMusic][mNowTime]++;
            else
                {
                    MusicInfo[IDOFMusic][mNowTime]=0;
                        if(IDOFMusic<24)IDOFMusic++;
                        else IDOFMusic=0;
                }
        }
    switch(pbStats)
    {
            case 1:
            {
                pbTime--;
                        format(str, sizeof(str), "%02d:%02d", floatround(float(pbTime)/60.0,floatround_floor),
                                                                pbTime-floatround(float(pbTime)/60.0,floatround_floor)*60);
                TextDrawSetString(pbTDON[2], str);
                foreach(new plid: Player)if(pbPlON[plid]>0)TextDrawShowForPlayer(plid, pbTDON[2]);
                if(pbTime==4)
                {
                                pbStats=2; new num;
                    foreach(new plid: Player)if(pbPlON[plid]>0)
                            {
                                num++;
                            TextDrawHideForPlayer(plid, pbTDTeam[0]);
                                        TextDrawHideForPlayer(plid, pbTDTeam[1]);
                                        for(new i; i < MAX_PBTEAM; i++)TextDrawHideForPlayer(plid, pbTDPos[0][i]);
                                        for(new i; i < MAX_PBTEAM; i++)TextDrawHideForPlayer(plid, pbTDPos[1][i]);
                                        if(pbPlON[plid]==1)
                                        {
                                                pbPlON[plid]=0;
                                                SetPlayerVirtualWorld(plid, 0);
                                J_SetPlayerPos(plid, 1310.3939+float(random(10))/15,-1373.0244+float(random(10))/15,13.6100);
                                SetCameraBehindPlayer(plid);
                                                TogglePlayerControllable(plid, 1);
                                                SendClientMessage(plid, COLOR_RED, "[Информация] {FFFFFF}Вы не успели подтердить клавишей [пробел] свое участие.");
                                                for(new i; i < 6; i++)TextDrawHideForPlayer(plid, pbTDON[i]);
                                                _ResetGun(plid);
                                        for(new i; i<13; i++)_GiveGun(plid, pbPlWeapon[plid][0][i], pbPlWeapon[plid][1][i]);

                                        }else if(pbPlON[plid]==2){
                                                for(new i; i < 6; i++)TextDrawShowForPlayer(plid, pbTDON[i]);
                                                SetPlayerColor(plid,(pbPlTeam[plid]==0)?0xFF6868FF:0x687FFFFF);
                                        }
                                }
                                new numteam[2];
                                foreach(new plid: Player)if(pbPlON[plid]==2)numteam[pbPlTeam[plid]]++;
                                if(num==1 || numteam[0]==0 || numteam[1]==0)
                                {
                                        foreach(new plid: Player)if(pbPlON[plid]>0)
                                    {
                                        if(TeamDuty{plid})SetPlayerColor(plid,TeamColors[GetTeamID(plid)]);
                                                else SetPlayerColor(plid,0xFDFCFC15);
                                                pbPlScore[plid]=0;
                                                TogglePlayerControllable(plid, 1);
                                    _ResetGun(plid);
                                        for(new i; i<13; i++)_GiveGun(plid, pbPlWeapon[plid][0][i], pbPlWeapon[plid][1][i]);

                                                for(new i; i < 6; i++)TextDrawHideForPlayer(plid, pbTDON[i]);
                                    SetPlayerVirtualWorld(plid, 0);
                                    J_SetPlayerPos(plid, 1310.3939+float(random(10))/15,-1373.0244+float(random(10))/15,13.6100);
                                    pbPlON[plid]=0;

                                        }
                                }
                }
            }
            case 2:
            {
                pbTime--;
                format(str, sizeof(str), "%02d:%02d", floatround(float(pbTime)/60.0,floatround_floor),
                                                                pbTime-floatround(float(pbTime)/60.0,floatround_floor)*60);
                TextDrawSetString(pbTDON[2], str);

                foreach(new plid: Player)if(pbPlON[plid]>0)TextDrawShowForPlayer(plid, pbTDON[2]);
                switch(pbTime)
                {
                    case 0:
                    {
                        pbStats=3;
                        pbTime=300;
                                        new strw[256], weapname[64];
                                        for(new i; i<5; i++)
                                        {
                                                GetWeaponName(pbWeapons[i][0], weapname, sizeof(weapname));
                                                format(strw,sizeof(strw), "%s\n%s \t- %d", strw, weapname, pbWeapons[i][1]);
                                        }

                        foreach(new plid: Player)
                        {
                            if(pbPlON[plid]==2)
                            {
                                pbPlON[plid]=3;
                                    SetCameraBehindPlayer(plid);
                                                        TogglePlayerControllable(plid, 1);
                                                        SetPlayerColor(plid,(pbPlTeam[plid]==0)?0xFF6868FF:0x687FFFFF);
                                                        ShowPlayerDialogEx(plid, 503, 2, "Выбор оружия", strw, "Выбрать", "MP5");
                            }
                        }
                    }
                }
            }
            case 3:
            {
            pbTime--;
            format(str, sizeof(str), "%02d:%02d", floatround(float(pbTime)/60.0,floatround_floor),
                                                                pbTime-floatround(float(pbTime)/60.0,floatround_floor)*60);
                TextDrawSetString(pbTDON[2], str);

                        foreach(new plid: Player)
                        {
                                if(pbPlON[plid]>0)TextDrawShowForPlayer(plid, pbTDON[2]);
                                if(pbPlSee[plid]>0)
                                {
                                    pbPlSee[plid]--;
                                    if(pbPlSee[plid]==0 || pbTime==0)
                                        {
                                                if(pTemp[plid][SPECTPLAYER]==true) SpecPl(plid, false);
                                        }
                                }
                        }
                        if(pbTime==0)
                        {
                            foreach(new plid: Player)
                            {
                                        if(pbPlON[plid]>0)
                                        {
                                                if(pTemp[plid][SPECTPLAYER]==true)SpecPl(plid, false);
                                                TogglePlayerControllable(plid, false);
                                        }
                                }
                        }
                if(pbTime==-3)
                        {
                            new numteam[2];
                            foreach(new plid: Player)if(pbPlON[plid]>0)numteam[pbPlTeam[plid]]++;
                            new Float:k[2];
                            if(pbScore[0]==pbScore[1]){k[0]=1.0;k[1]=1.0;}
                            else if(pbScore[0]>pbScore[1]){k[0]=float(numteam[1]
)/float(numteam[0]);k[1]=float(numteam[1])/float(numteam[
0])/3;}
                            else if(pbScore[1]>pbScore[0]){k[1]=float(numteam[0]
)/float(numteam[1]);k[0]=float(numteam[0])/float(numteam[
1])/3;}
                            foreach(new plid: Player)if(pbPlON[plid]>0)
                            {
                                if(pbPlON[plid]==4)
                                    {
                                        if(!pbPlTeam[plid])
                                                {
                                                        DestroyDynamicObject(pbFlagTeam[1]);
                                                        pbFlagTeam[1] = CreateDynamicObject(1334, -372.4653, 2190.2227, 42.0502, 0.0000, 0.0000, 12.7200);
                                                }
                                                else
                                                {
                                                        DestroyDynamicObject(pbFlagTeam[0]);
                                                        pbFlagTeam[0] = CreateDynamicObject(1333, -392.0128, 2273.1912, 41.2932,0.0000, 0.0000, 8.7000);
                                                }
                                    }
                                    if(TeamDuty{plid})SetPlayerColor(plid,TeamColors[GetTeamID(plid)]);
                                        else SetPlayerColor(plid,0xFDFCFC15);
                                        pbPlScore[plid]=0;
                                        new moneypay = floatround(1000.0*k[pbPlTeam[plid]]+1000.0*float(pbPlScore[plid]
)*k[pbPlTeam[plid]]);
                                        GiveMoney(plid, moneypay);
                    _ResetGun(plid);
                                for(new i; i<13; i++)_GiveGun(plid, pbPlWeapon[plid][0][i], pbPlWeapon[plid][1][i]);
                                        for(new i; i < 6; i++)TextDrawHideForPlayer(plid, pbTDON[i]);
                            SetPlayerVirtualWorld(plid, 0);
                            TogglePlayerControllable(plid, 1);
                            J_SetPlayerPos(plid, 1310.3939+float(random(10))/15,-1373.0244+float(random(10))/15,13.6100);
                            pbPlON[plid]=0;

                                }
                                pbStats=0;
                                if(pbScore[0]==pbScore[1])format(str, sizeof(str), "[Информация]{FFFFFF} [PaintBall] Игра закончилась в ничью! - %s: %d очк. - %s: %d очк.", pbTeamName[0], pbScore[0], pbTeamName[1], pbScore[1]);
                                else if(pbScore[0]>pbScore[1])format(str, sizeof(str), "[Информация]{FFFFFF} [PaintBall] Победитель: - %s: %d очк. Проигравший: - %s: %d очк.", pbTeamName[0] ,pbScore[0], pbTeamName[1], pbScore[1]);
                                else if(pbScore[1]>pbScore[0])format(str, sizeof(str), "[Информация]{FFFFFF} [PaintBall] Победитель: - %s: %d очк. Проигравший: - %s: %d очк.", pbTeamName[1],pbScore[1], pbTeamName[0], pbScore[0]);
                                SendClientMessageToAll(COLOR_GREY,str);
                        }
            }
    }
        return 1;
}

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Tony_Cannabis
      By Tony_Cannabis
      Нужна мне собственно проверка на гараж, я хочу чтобы дом N класса не имел гаража, куда только я проверку эту не сувал, но немогу понять как это работает
       
      Имеем код
      Куда мне ее засунуть просто ума не приложу, думал будет легко но понимаю что без вас не разобратся, проверку которую хотел закинуть см. ниже
      if(gHouses[houseid][houseClass] == 0) return ErrorMessage(playerid, "Недоступно для класса Вашего дома");