Добро пожаловать на Pro Pawn - Портал о PAWN-скриптинге.

Реклама


**Как получить V.I.P** (Перейти)
Чтобы заказать рекламу на Pro-Pawn.Ru, обращайтесь в Skype.
Баннерная реклама 200руб/мес, Текстовая 100руб/мес.
Страница 1 из 2 12 ПоследняяПоследняя
Показано с 1 по 10 из 17
  1. #1
    Аватар для heralt
    Пользователь

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

    Команды не отвечают. (Не опять, а снова.)

    Павно компилир, а команды не работают:
    PHP код:
        if(!strcmp(cmdtext,"/ahelp",true))
        {
            if(
    PlayerInfo[playerid][pAdminLevel] >= 2)
            {
            
    SendClientMessage(playerid,CYELLOW,"[A-HELP]:Доступные команды:");
            
    SendClientMessage(playerid,CORANGE,"[A-HELP]:1 уровень: /admins /a ");
            
    SendClientMessage(playerid,CORANGE,"[A-HELP]:2 уровень: /kick [id] ");
            
    SendClientMessage(playerid,CORANGE,"[A-HELP]:3 уровень: /asay [текст] /ban [id] ");
            
    SendClientMessage(playerid,CORANGE,"[A-HELP]:4 уровень: Разработка ");
            return 
    SendClientMessage(playerid,CORANGE,"[A-HELP]:4 уровень: Разработка ");
            }
        }

        if(
    strcmp(cmdtext"/r"true) == 0)
        {
            new 
    offset idxlength strlen(cmdtext) ,result[144], sendername[MAX_PLAYER_NAME];
            if (
    PlayerInfo[playerid][pGroup] == || PlayerInfo[playerid][pGroup] == 2|| PlayerInfo[playerid][pGroup] == 3) return SendClientMessage(playeridred"[X] Íåäîñòóïíî");
            while ((
    idx length) && ((idx offset) < (sizeof(result) - 1))) { result[idx offset] = cmdtext[idx]; idx++; }
            
    result[idx offset] = EOS;
            if(!
    strlen(result)) return    SendClientMessage(playeridCOLOR_WHITE"/r [text]");
            
    GetPlayerName(playeridsendernamesizeof(sendername));
            
    format(stringsizeof(string), "{00ff7f}[R] | %s: %s",sendernameresult), SendRadioMessage(PlayerInfo[playerid][pGroup], CORANGEstring);
            
    SetPlayerChatBubble(playerid,"{00FF00}Cообщение по рации.",-1,30.0,10000);
        } 

  2. #2
    Аватар для Mazzilla
    Пользователь

    Статус
    Оффлайн
    Регистрация
    27.11.2013
    Адрес
    Нижневартовск
    Сообщений
    256
    Репутация:
    63 ±
    PHP код:
    if(!strcmp(cmdtext,"/ahelp",true))
        {
            if(
    PlayerInfo[playerid][pAdminLevel] >= 2)
            {
            
    SendClientMessage(playerid,CYELLOW,"[A-HELP]:Доступные команды:");
            
    SendClientMessage(playerid,CORANGE,"[A-HELP]:1 уровень: /admins /a ");
            
    SendClientMessage(playerid,CORANGE,"[A-HELP]:2 уровень: /kick [id] ");
            
    SendClientMessage(playerid,CORANGE,"[A-HELP]:3 уровень: /asay [текст] /ban [id] ");
            
    SendClientMessage(playerid,CORANGE,"[A-HELP]:4 уровень: Разработка ");
            return 
    SendClientMessage(playerid,CORANGE,"[A-HELP]:4 уровень: Разработка ");
            }
            return 
    true;
        }

        if(
    strcmp(cmdtext"/r"true) == 0)
        {
            new 
    offset idxlength strlen(cmdtext) ,result[144], sendername[MAX_PLAYER_NAME];
            if (
    PlayerInfo[playerid][pGroup] == || PlayerInfo[playerid][pGroup] == 2|| PlayerInfo[playerid][pGroup] == 3) return SendClientMessage(playeridred"[X] Iaainooiii");
            while ((
    idx length) && ((idx offset) < (sizeof(result) - 1))) { result[idx offset] = cmdtext[idx]; idx++; }
            
    result[idx offset] = EOS;
            if(!
    strlen(result)) return    SendClientMessage(playeridCOLOR_WHITE"/r [text]");
            
    GetPlayerName(playeridsendernamesizeof(sendername));
            
    format(stringsizeof(string), "{00ff7f}[R] | %s: %s",sendernameresult), SendRadioMessage(PlayerInfo[playerid][pGroup], CORANGEstring);
            
    SetPlayerChatBubble(playerid,"{00FF00}Cообщение по рации.",-1,30.0,10000);
            return 
    true;
        } 

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

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

  4. #4
    Аватар для Londlem
    Модератор

    Статус
    Оффлайн
    Регистрация
    19.10.2013
    Адрес
    Ярославль
    Сообщений
    1,362
    Репутация:
    771 ±
    Весь паблик выкладывайте. И если используете другие командные процессоры, то все команды нужно заменить под OnPlayerCommandText.

  5. #5
    Аватар для heralt
    Пользователь

    Статус
    Оффлайн
    Регистрация
    21.12.2014
    Сообщений
    165
    Репутация:
    0 ±
    CMD + D CMD. Вот весь паблик, но будет сложно перевести все с D_CMD в CMD.

    PHP код:
    public OnPlayerCommandText(playeridcmdtext[])
    {
        if(
    GetPVarInt(playerid,"Logged") == 0) return SendClientMessage(playeridred"Îøèáêà: âû íå àâòîðèçîâàíû, ÷òî áû èñïîëüçîâàòü êîììàíäû.");
        
    dcmd(makeadmin9cmdtext);
        
    dcmd(makeleader10cmdtext);
        
    dcmd(uninvite8cmdtext);
        
    dcmd(setskin7cmdtext);
        
    dcmd(setleader9cmdtext);
        
    //dcmd(stats, 5, cmdtext);
        
    dcmd(invite6cmdtext);
        
    dcmd(auninvite9cmdtext);
        
    dcmd(ban3cmdtext);
        
    dcmd(kick4cmdtext);
        
    dcmd(affect6cmdtext); // dcmd_a(playerid,params[])
        
    dcmd(aka3cmdtext);
        
    dcmd(asay,4,cmdtext);
        
    dcmd(a,1,cmdtext);

        new 
    string[128], idx;

        if(!
    strcmp(cmdtext,"/ahelp",true))
        {
            if(
    PlayerInfo[playerid][pAdminLevel] >= 2)
            {
            
    SendClientMessage(playerid,CYELLOW,"[A-HELP]:Äîñòóïíûå êîìàíäû:");
            
    SendClientMessage(playerid,CORANGE,"[A-HELP]:1 óðîâåíü: /admins /a ");
            
    SendClientMessage(playerid,CORANGE,"[A-HELP]:2 óðîâåíü: /kick [id] ");
            
    SendClientMessage(playerid,CORANGE,"[A-HELP]:3 óðîâåíü: /asay [òåêñò] /ban [id] ");
            
    SendClientMessage(playerid,CORANGE,"[A-HELP]:4 óðîâåíü: Ðàçðàáîòêà ");
            return 
    SendClientMessage(playerid,CORANGE,"[A-HELP]:4 óðîâåíü: Ðàçðàáîòêà ");
            }
            return 
    true;
        }

        if(
    strcmp(cmdtext"/r"true) == 0)
        {
            new 
    offset idxlength strlen(cmdtext) ,result[144], sendername[MAX_PLAYER_NAME];
            if (
    PlayerInfo[playerid][pGroup] == || PlayerInfo[playerid][pGroup] == 2|| PlayerInfo[playerid][pGroup] == 3) return SendClientMessage(playeridred"[X] Iaainooiii");
            while ((
    idx length) && ((idx offset) < (sizeof(result) - 1))) { result[idx offset] = cmdtext[idx]; idx++; }
            
    result[idx offset] = EOS;
            if(!
    strlen(result)) return    SendClientMessage(playeridCOLOR_WHITE"/r [text]");
            
    GetPlayerName(playeridsendernamesizeof(sendername));
            
    format(stringsizeof(string), "{00ff7f}[R] | %s: %s",sendernameresult), SendRadioMessage(PlayerInfo[playerid][pGroup], CORANGEstring);
            
    SetPlayerChatBubble(playerid,"{00FF00}Cîîáùåíèå ïî ðàöèè.",-1,30.0,10000);
            return 
    true;
        }
        
    /*if(strcmp(cmdtext, "/f", true) == 0)
        {
                new sendername[MAX_PLAYER_NAME];
                GetPlayerName(playerid, sendername, sizeof(sendername));
                new length = strlen(cmdtext);
                while ((idx < length) && (cmdtext[idx] <= ' '))
                {
                    idx++;
                }
                new offset = idx;
                new result[64];
                while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                {
                    result[idx - offset] = cmdtext[idx];
                    idx++;
                }
                result[idx - offset] = EOS;
                if(PlayerInfo[playerid][pRank] < 1) return    SendClientMessage(playerid, red, "Âû íå óïîëíîìî÷åíû ïèñàòü â äåïîðòàìåíò!");
                switch(PlayerInfo[playerid][pGroup])
                    {
                    case 1:
                    {
                        if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] | Ìýð %s: %s", sendername, result); }
                        else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] | Äåïóòàò %s: %s",  sendername, result); }
                        else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] | Ëèöåíçåð %s: %s", sendername, result); }
                        else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] | Íà÷àëüíèê îõðàíû %s: %s",  sendername, result); }
                        else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] | Îõðàííèê %s: %s",  sendername, result); }
                          else { format(string, sizeof(string), "[F] | Îõðàííèê %s: %s", sendername, result); }
                        SendRadioMessage(1, 0x6495EDFF, string);
                        SetPlayerChatBubble(playerid,"Ïåðåäàë(à) ñîîáùåíèå ïî ðàöèè",0xDD90FFFF,30.0,10000);
                        return 1;
                    }
                    case 2:
                    {
                    if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "[F] | Ãåíåðàë %s: %s", sendername, result); }
                           else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "[F] | Ïîëêîâíèê %s: %s", sendername, result); }
                           else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "[F] | Ìàéîð %s: %s", sendername, result); }
                           else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "[F] | Cò. Êàïèòàí %s: %s", sendername, result); }
                           else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] | Ìë. Êàïèòàí %s: %s", sendername, result); }
                        else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] | Ìë. Êàïèòàí-Ëåéòåíàíò %s: %s", sendername, result); }
                        else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] | Ëåéòåíàíò %s: %s", sendername, result); }
                        else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] | Ñò. Ñåðæàíò %s: %s", sendername, result); }
                        else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] | Ìë. Ñåðæàíò %s: %s", sendername, result); }
                        else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] | Êàäåò %s: %s", sendername, result); }
                          else { format(string, sizeof(string), "[F] | Êàäåò %s: %s", sendername, result); }
                        SendRadioMessage(2, 0x6495EDFF, string);
                        SetPlayerChatBubble(playerid,"Ñîîáùàåò ÷òî-òî ïî ðàöèè",COLOR_POLICE,30.0,10000);
                        return 1;
                    }
                    case 3:
                    {
                        if(PlayerInfo[playerid][pRang] == 10) { format(string, sizeof(string), "[F] Àäìèðàë %s: %s", sendername, result); }
                           else if(PlayerInfo[playerid][pRang] == 9) { format(string, sizeof(string), "[F] Âèöå-Àäìèðàë %s: %s", sendername, result); }
                           else if(PlayerInfo[playerid][pRang] == 8) { format(string, sizeof(string), "[F] Äåïóòàò %s: %s", sendername, result); }
                           else if(PlayerInfo[playerid][pRang] == 7) { format(string, sizeof(string), "[F] Ñòàðøèé ëèöåíçåð %s: %s", sendername, result); }
                           else if(PlayerInfo[playerid][pRang] == 6) { format(string, sizeof(string), "[F] Ëèöåíçåð %s: %s", sendername, result); }
                        else if(PlayerInfo[playerid][pRang] == 5) { format(string, sizeof(string), "[F] Ñòàðøèé ñåêðåòàðü %s: %s", sendername, result); }
                        else if(PlayerInfo[playerid][pRang] == 4) { format(string, sizeof(string), "[F] Ñåêðåòàðü %s: %s", sendername, result); }
                        else if(PlayerInfo[playerid][pRang] == 3) { format(string, sizeof(string), "[F] Íà÷àëüíèê îõðàíû %s: %s", sendername, result); }
                        else if(PlayerInfo[playerid][pRang] == 2) { format(string, sizeof(string), "[F] Îõðàííèê %s: %s", sendername, result); }
                        else if(PlayerInfo[playerid][pRang] == 1) { format(string, sizeof(string), "[F] Âîäèòåëü %s: %s", sendername, result); }
                          else { format(string, sizeof(string), "[F] Âîäèòåëü %s: %s", sendername, result); }
                        SendRadioMessage(3, 0x6495EDFF, string);
                        SetPlayerChatBubble(playerid,"Ïåðåäàë(à) ñîîáùåíèå ïî ðàöèè",0xDD90FFFF,30.0,10000);
                        return 1;*
                    }
                }
            return 1;
        }*/
        
    if(strcmp(cmdtext,"/backup",true)==|| strcmp(cmdtext,"/bk",true)==0)
        {
            if (
    PlayerInfo[playerid][pGroup] != 2) return  SendClientMessage(playeridred"Âû íå ñîòðóäíèê Ïîëèöèè!");
            if (
    PlayerInfo[playerid][pRequestingBackup]) return SendClientMessage(playeridred"Âû óæå âûçûâàåòå ïîäìîãó!");
            static const 
    fmt_str[]="[Âíèìàíèå]: %s íóæäàåòñÿ â ïîäìîãå, îí îòìå÷åí êðàñíûì ìàðêåðîì íà ðàäàðå.";
            
    //neww string[sizeof(fmt_str)-2+MAX_PLAYER_NAME];
            
    GetPlayerName(playeridstringsizeof(string));
            
    format(stringsizeof(string), fmt_strstring);
            
    PlayerInfo[playerid][pRequestingBackup] = 1;
            new 
    GetMaxPlayers();
            do{
                if(
    IsPlayerConnected(--i))
                {
                    if (
    PlayerInfo[playerid][pGroup] == 2)
                    {
                        
    SetPlayerMarkerForPlayer(iplayerid0xFF0000FF);
                        
    SendClientMessage(i0x8D8DFF00string);
                    }
                }
            }while(
    != 0);
            
    SetTimerEx("BackupClear"3*1000false"ii"playerid1);
            return 
    SendClientMessage(playerid0x8D8DFF00"Èñïîëüçóéòå /bkc, ÷òîáû îòìåíèòü âûçîâ ïîäìîãè.");
        }
        if(
    strcmp(cmdtext,"/backupclear",true)==|| strcmp(cmdtext,"/bkc",true)==0)
        {
        
    SendClientMessage(playeridred"Âàø çàïðîñ î ïîäìîãå áûë îòìåíåí.");
        
    PlayerInfo[playerid][pRequestingBackup] = 0;
        }
        if(
    strcmp(cmdtext"/try"true4) == 0)
       {
        new
            
    try_string[144],
            
    start_pos 3,
            
    len;

        while(
    EOS cmdtext[++start_pos] <= ' ') { }
        
    strdel(cmdtext0start_pos);

        if(!
    strlen(try_string)) return SendClientMessage(playeridred"Èñïîëüçóéòå: /try [òåêñò]");
        
    len GetPlayerName(playeridtry_stringsizeof(try_string)),
        
    try_string[len] = ' ',
        
    len += strcat(try_stringcmdtext),
        
    try_string[len 1] = ' ',
        
    strcat(try_string,
            
    random(4) < 2
            
    ? (" {1CEF00}| [Óäà÷íî]"// {1CEF00}
            
    : (" {FF0000}| [Íåóäà÷íî]")); // {FF0000}

        
    new
            
    GetMaxPlayers(),
            
    player_world GetPlayerVirtualWorld(playerid),
            
    player_int GetPlayerInterior(playerid),
            
    Floatplayer_pos_x,
            
    Floatplayer_pos_y,
            
    Floatplayer_pos_z;

        
    GetPlayerPos(playeridplayer_pos_xplayer_pos_yplayer_pos_z);

        do
        {
            --
    i;
            if(
    IsPlayerConnected(i)
            && 
    player_world == GetPlayerVirtualWorld(i)
            && 
    player_int == GetPlayerInterior(i)
            && 
    IsPlayerInRangeOfPoint(i10.0player_pos_xplayer_pos_yplayer_pos_z))
                
    SendClientMessage(i0xDD90FFFFtry_string);
        }
        while(
    0);
        return 
    1;
    }
        if(
    strcmp(cmdtext"/restart"true) == 0)
        {
            if (
    PlayerInfo[playerid][pAdminLevel] == 1)//ôðàêöèÿ\áàíäà ëþáàÿ
            
    for(new iGetMaxPlayers(); i++)
             {
             
    SendClientMessageToAll(-1,"Íà ñåðâåðå ðåñòàðò.n/Äëÿ ïîëíîãî ñîõðàíåíèÿ äàííûõ âû áóäåòå êèêíóòû.");
             
    Kick(playerid);
             
    SendRconCommand("gmx");

             }
            return 
    1;
        }
        if(
    strcmp(cmdtext"/admins"true) == 0)
        {
        new 
    alllstring[2000], ttext[50], AdminName[MAX_PLAYER_NAME];
        for(new 
    iGetMaxPlayers(); != ji++)
        {
            
    ttext[0] = 0;
            if(!
    IsPlayerConnected(i) || IsPlayerNPC(i) || PlayerInfo[i][pAdminLevel] <= 0) continue;
            new 
    AdminTextsasajn PlayerInfo[i][pAdminLevel];
            switch(
    AdminTextsasajn)
            {
                case 
    1ttext "{660000}Àäìèíèñòðàòîð 1 óðîâíÿ - ";
                case 
    2ttext "{660000}Àäìèíèñòðàòîð 2 óðîâíÿ - ";
                case 
    3ttext "{660000}Àäìèíèñòðàòîð 3 óðîâíÿ - ";
                case 
    4ttext "{660000}Àäìèíèñòðàòîð 4 óðîâíÿ - ";
                case 
    5ttext "{660000}Àäìèíèñòðàòîð 5 óðîâíÿ - ";
                default: 
    ttext "---";
            }
            
    GetPlayerName(iAdminNamesizeof(AdminName));
            
    format(alllstring,sizeof(alllstring),"%s%s {FFFFFF}%s- (%d lvl)ID-{22FF22}%d\n"alllstringttextAdminName,PlayerInfo[i][pAdminLevel],i);
        }
        if(
    strlen(alllstring) < 1strcat(alllstring"{FFFFFF}Ñåé÷àñ âñå àäìèíèñòðàòîðû {FF6347}offline");
        
    ShowPlayerDialog(playerid666DIALOG_STYLE_MSGBOX"ADMIN'S ONLINE:"alllstring"ENTER""");
        return 
    1;
        }
        if(
    == strcmp(cmdtext"/coin"true))
        {
            
    // åñëè äåíåã íåò - îòñå÷êà
            
    if(PlayerInfo[playerid][pMoney] <= 0)
                return 
    SendClientMessage(playerid0xB0B0B000"Ó âàñ íåò ìîíåòîê.");
            
    // ñòðîêè ñäåëàíû â êîíñòàíòàõ äëÿ àâòîìàòè÷åñêîãî ïîäñ÷¸òà äëèíû string
            
    static const    coin_str0[] = " ïîäáðîñèë ìîíåòêó, âûïàë ",
                            
    coin_str1[] = "à \"ðåøêà\"."coin_str2[] = " \"îð¸ë\".";
            
    // ÿ÷ååê áóäåò âûäåëåíî ðîâíî ñòîëüêî, ñêîëüêî íóæíî
            //new    string[MAX_PLAYER_NAME+(sizeof(coin_str0)-1)+(sizeof(coin_str1)-1)+1];
            // ïåðåìåííûå äëÿ ñðàâíåíèÿ ìåñòîïîëîæåíèé èãðîêîâ
            
    new GetMaxPlayers(),
                
    inter GetPlayerInterior(playerid),
                
    world GetPlayerVirtualWorld(playerid),
                
    Float:xFloat:yFloat:z;
            
    // ñîñòàâëåíèå ñòðîêè ñîîáùåíèÿ
            
    GetPlayerName(playeridstringsizeof(string));
            
    strcat(stringcoin_str0);
            
    strcat(string, (random(2)) ? (coin_str1) : (coin_str2));
            
    // ïîêàç ñîîáùåíèÿ èãðîêàì
            
    GetPlayerPos(playeridxyz);
            do{
                if(
    IsPlayerConnected(--i) == 0
                
    || GetPlayerVirtualWorld(i) != world
                
    || GetPlayerInterior(i) != inter
                
    || IsPlayerInRangeOfPoint(i8.0xyz) == 0) continue;
                
    SendClientMessage(i0xC8A8E000string);
            }while(
    i);
            return 
    1;
        }
        if(
    strcmp(cmdtext"/spawncars"true10) == 0)
        {
        if(
    IsPlayerAdmin(playerid) >= 1// if(PlayerInfo[playerid][pAdminLevel] >= 1)
            
    return SendClientMessage(playerid, -1"Âàì íåäîñòóïíà äàííàÿ êîìàíäà.");

        static const
            
    fmt_str[] = "Àäìèíèñòðàòîð %s [%i] çàðåñïàâíèë íåçàíÿòûé ëþäüìè òðàíñïîðò.";

        new
            
    str[sizeof(fmt_str) - MAX_PLAYER_NAME 3],
            
    occupied[(MAX_VEHICLES 1char] = {((0x00 << 24) | (0x00 << 16) | (0x00 << 8) | (0x00)), ...},
            
    vehicleid,
            
    GetMaxPlayers();

        
    GetPlayerName(playeridstrsizeof(str));

        
    format(strsizeof(str), fmt_strstrplayerid);
        
    SendClientMessageToAll(-1str);

        do
        {
            if((
    vehicleid GetPlayerVehicleID(--i)) == 0)
                continue;

            
    occupied{vehicleid} = 1;

            if((
    vehicleid GetVehicleTrailer(vehicleid)) == 0)
                continue;

            
    occupied{vehicleid} = 1;
        }
        while(
    i);

        
    MAX_VEHICLES 1;

        do
            if(
    occupied{i} == 0)
                
    SetVehicleToRespawn(i);
        while(--
    i);
        return 
    1;
        }
        if (
    strcmp(cmdtext"/agm"true)==0)
        {
        if(
    PlayerInfo[playerid][pAdminLevel] >= 2)
        if(
    GetPVarInt(playerid,"agm") == 0)
        {
            
    SetPVarInt(playerid,"agm"1);
            
    SetPlayerHealth(playerid0x7F800000);
            
    SendClientMessage(playerid, -1"AGM ON");
        }
        else
        {
            
    SetPVarInt(playerid,"agm"0);
            
    SetPlayerHealth(playerid100.0);
            
    SendClientMessage(playerid, -1"AGM OFF");
        }
        return 
    1;
        }
        if(
    strcmp("/truckstart"cmdtexttrue10) == 0)
        {
        if(
    GetPVarInt(playerid,"JobTrucker") == 0)
        {
                    if(!
    IsPlayerInRangeOfPoint(playerid,100.0,-2123.9016,-134.1073,35.3203)) return SendClientMessage(playerid,red,"Âû íå ìîæåòå ïðèíÿòñÿ çà ðàáîòó äàëüíîáîéùèêà, òàê êàê íàõîäèòåñü ñëèøêîì äàëåêî.");
                    new 
    model GetVehicleModel(GetPlayerVehicleID(playerid));
                    if(
    GetPlayerState(playerid) != PLAYER_STATE_DRIVER && model == 403) return SendClientMessage(playerid,red,"Âû äîëæíû íàõîäèòñÿ â ãðóçîâèêå çà ðóë¸ì!");
                    if(!
    IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid,red,"Âû íå ïîäöåïèëè ïðèöåï!");
                    
    DisablePlayerCheckpoint(playerid);
                    
    GameTextForPlayer(playerid"~w~goto ~r~redmarker"25001);
                    
    SetPlayerCheckpoint(playerid,-1846.5609,139.2482,15.7055,8.0);
                    
    SetPVarInt(playerid,"JobTrucker",1);
                    
    SendClientMessage(playerid,yellow,"Âû óñïåøíî ïîäöåïèëè ïðèöåï ñ òîâàðîì, íàïðàâëÿéòåñü â òî÷êó çàãðóçêè.");
                    return 
    SendClientMessage(playerid,white,"Åñëè âû æåëàåòå çàêîí÷èòü ðàáîòó ãðóç÷èêà, ââåäòèå {FF0000}/truckcansel.");
        }
        else return 
    SendClientMessage(playerid,red,"Ðàáîòà äàëüíîáîéùèêîì óæå íà÷àòà!");
        }
        if(
    strcmp("/truckcansel"cmdtexttrue10) == 0)
        {
        if(
    GetPVarInt(playerid,"JobTrucker") > 0)
        {
              
    SetPVarInt(playerid,"JobTrucker",0);
              
    SetPVarInt(playerid,"JobTruckerCount",0);
              
    SetPVarInt(playerid,"InJobTrucker",0);
             
    DisablePlayerCheckpoint(playerid);
             
    RemovePlayerAttachedObject(playerid,5);
             
    RemovePlayerFromVehicle(playerid);
             
    SendClientMessage(playerid,yellow,"Âû îòìåíèëè ðàáîòó äàëüíîáîéùèêà, è íå çàðàáîòàëè íè÷åãî. Åñëè æåëàåòå íà÷àòü ðàáîòó, ââåäèòå {FF0000}/truckstart.");
             return 
    GameTextForPlayer(playerid"~w~Truck job ~r~canseled"25001);
        }
        else return 
    SendClientMessage(playerid,red,"Âû íå íà÷èíàëè ðàáîòó äàëüíîáîéùèêîì!");
        }
        return 
    0;
    }

    dcmd_a(playerid,params[])
    {
        
    #pragma unused params
        
    if(PlayerInfo[playerid][pAdminLevel] >= 2)
        {
             if(!
    strlen(params)) return SendClientMessage(playeridred"Ïîäñêàçêà /a [òåêñò]");
            new 
    string[    144    ];
            
    format(stringsizeof(string), "[A] | %s(%i): {ffffff}%s"pName(playerid),playeridparams[0] );
            for(new 
    ii!=GetMaxPlayers();i++)
            {
                if(
    IsPlayerConnected(i) && PlayerInfo[i][pAdminLevel] > 0)
                {
                    
    SendClientMessage(i,green,string);
                }
            }
        }
        else return 
    SendClientMessage(playeridred ,"Îøèáêà: Íåò äîñòóïà.");
        return 
    1;
    }
    dcmd_asay(playerid,params[])
    {
        
    #pragma unused params
        
    if(PlayerInfo[playerid][pAdminLevel] >= 3)
        {
             if(!
    strlen(params)) return SendClientMessage(playeridred"Ïîäñêàçêà /asay [òåêñò]");
            new 
    string[    144    ];
            
    format(stringsizeof(string), "%s [%i]: %s"pName(playerid),playeridparams[0] );
            return 
    SendClientMessageToAll(CORANGE,string);
        }
        else return 
    SendClientMessage(playeridred ,"Îøèáêà: Íåò äîñòóïà.");
    }
    dcmd_affect(playerid,params[])
    {
            
    #pragma unused params
            
    new string 144 ], mName[40];
            if(!
    IsPlayerLeader(playerid,1)) return SendClientMessage(playerid,red,"Íåò äîñòóïà ê êîìàíäå.");
            if(
    AttackZone[0]!= 0) return SendClientMessage(playerid,white," íàñòîÿùèé ìîìåíò óæå èäåò âîéíà çà òåððèòîðèþ, ïîïðîáóéòå ÷óòü ïîçæå.");
            if(
    GetPlayerZone(playerid) == -1) return SendClientMessage(playerid,white,"Âû íå íàõîäèòåñü íå â îäíîì èç ðàéîíîâ ìàôèè.");
            if(
    sZone[GetPlayerZone(playerid)] == PlayerInfo[playerid][pGroup]) return SendClientMessage(playerid,white,"Âû óæå äåðæèòå ïîä êîíòðîëåì ýòó òåððèòîðèþ.");
            if(
    sZone[GetPlayerZone(playerid)] == 0)
            {
                    
    SendClientMessage(playerid,white,"Òåððèòîðèÿ áûëà ñâîáîäíà èóñïåøíî çàíÿòà òâîåé ìàôèåé. Îáîøëîñü áåç âîéíû.");
                    
    sZone[GetPlayerZone(playerid)] = PlayerInfo[playerid][pGroup];
                    
    GangZoneShowForAll(GANGZONEGetPlayerZone(playerid)],GetGangZoneColorGetPlayerZone(playerid) ) );
                    return 
    SaveGangZone();
            }
            else if(
    sZone[GetPlayerZone(playerid)] != 0)
            {
                                
    GangZoneFlashForAll(GANGZONE[GetPlayerZone(playerid)],0xFF262699);
                                
    AttackZone[0] = 1;
                                
    AttackZone[1] = 180;
                                
    AttackZone[2] = SetTimer("ZoneAttackTime"1000false);
                                
    AttackZone[3] = PlayerInfo[playerid][pGroup];
                                
    AttackZone[4] = sZone[GetPlayerZone(playerid)];
                                
    AttackZone[5] = GetPlayerZone(playerid);
                                
    AttackZone[6] = 0;
                                
    AttackZone[7] = 0;
                                for(new 
    ii!=GetMaxPlayers();i++)
                                {
                                    if(
    IsPlayerConnected(i))
                                    {
                                                 if(
    GetPlayerZone(i) == GetPlayerZone(playerid) && PlayerInfo[i][pGroup] == PlayerInfo[playerid][pGroup]){AttackZone[6]++;SetPVarInt(i,"IsPlayerInWarGangZoneAttack"1);}
                                                 else if(
    GetPlayerZone(i) == GetPlayerZone(playerid) && PlayerInfo[i][pGroup] == sZone[GetPlayerZone(playerid)] ){AttackZone[7]++;SetPVarInt(i,"IsPlayerInWarGangZoneDeffend"1);}
                                     }
                                }
                                if(
    AttackZone[7] == 0)
                                {
                                                    switch(
    sZone[GetPlayerZone(playerid)])
                                                    {
                                                        case 
    6mName "{D90AD3}La Cosa Nostra";
                                                        case 
    7mName "{4614F8}Russian Mafia";
                                                        case 
    8mName "{BE967A}Colombian Mafia";
                                                    }
                                                    
    format(string,sizeof(string),"* Âîéíà ñ %s {ffffff}áûëà âûèãðàíà, â çîíå íå íàõîäèëñÿ, íè îäèí ÷ëåí èç ïðîòèâîïîëîæíîé êîììàíäû!",mName);
                                                    for(new 
    ii!=GetMaxPlayers(); i++)
                                                    {
                                                            if(
    IsPlayerConnected(i) && PlayerInfo[i][pGroup] == PlayerInfo[playerid][pGroup])SendClientMessage(i,white,string);
                                                    }
                                                    switch( 
    PlayerInfo[playerid][pGroup] )
                                                    {
                                                        case 
    6mName "{D90AD3}La Cosa Nostra";
                                                        case 
    7mName "{4614F8}Russian Mafia";
                                                        case 
    8mName "{BE967A}Colombian Mafia";
                                                    }
                                                    
    format(string,sizeof(string),"* %s {ffffff}îòîáðàëà ó âàñ çîíó áåç áîÿ! Âû íå íàõîäèëèñü â åå ïðåäåëàõ.",mName);
                                                    for(new 
    ii!=GetMaxPlayers(); i++)
                                                    {
                                                            if(
    IsPlayerConnected(i) && PlayerInfo[i][pGroup] == sZone[GetPlayerZone(playerid)])SendClientMessage(i,white,string);
                                                    }
                                                    
    AttackZone[0] = 0;
                                                    
    AttackZone[1] = 0;
                                                    
    KillTimer(AttackZone[2]);
                                                    
    AttackZone[3] = 0;
                                                    
    AttackZone[4] = 0;
                                                    
    AttackZone[5] = 0;
                                                    
    AttackZone[6] = 0;
                                                    
    AttackZone[7] = 0;
                                                    
    sZone[GetPlayerZone(playerid)] = PlayerInfo[playerid][pGroup];
                                                    
    GangZoneShowForAll(GANGZONEGetPlayerZone(playerid)],GetGangZoneColorGetPlayerZone(playerid) ) );
                                                    return 
    SaveGangZone();
                                }
                                for(new 
    ii!=GetMaxPlayers();i++)
                                {
                                            if(
    IsPlayerConnected(i))
                                            {
                                                         if(
    GetPVarInt(i,"IsPlayerInWarGangZoneAttack") == || GetPVarInt(i,"IsPlayerInWarGangZoneDeffend") == 1)
                                                         {
                                                            if(
    GetPVarInt(i,"IsPlayerInWarGangZoneAttack") == 1)
                                                            {
                                                                switch( 
    AttackZone[4] )
                                                                {
                                                                    case 
    6mName "{D90AD3}La Cosa Nostra";
                                                                    case 
    7mName "{4614F8}Russian Mafia";
                                                                    case 
    8mName "{BE967A}Colombian Mafia";
                                                                }
                                                                
    format(string,sizeof(string),"* Âàøà ìàôèÿ îáúÿâèëà âîéíó %s {ffffff}! Äî êîíöà âîéíû 3 ìèíóòû, âû äîëæíû çàõâàòèòü òåðèòîðèþ è íå óìåðåòü.",mName);
                                                                
    SendClientMessage(i,white,string);
                                                                
    SendClientMessage(i,white,"Âàøà öåëü: Óáèòü âñåõ ÷ëåíîâ âðàæåñêîé ìàôèè, è îñòàòüñÿ â æèâûõ.");
                                                            }
                                                            if(
    GetPVarInt(i,"IsPlayerInWarGangZoneDeffend") == 1)
                                                            {
                                                                switch( 
    AttackZone[3] )
                                                                {
                                                                    case 
    6mName "{D90AD3}La Cosa Nostra";
                                                                    case 
    7mName "{4614F8}Russian Mafia";
                                                                    case 
    8mName "{BE967A}Colombian Mafia";
                                                                }
                                                                
    format(string,sizeof(string),"* Âàì îáúÿâèëà âîéíó %s {ffffff}! Äî êîíöà âîéíû 3 ìèíóòû, âû äîëæíû îòñòîÿòü òåððèòîððèþ.",mName);
                                                                
    SendClientMessage(i,white,string);
                                                                
    SendClientMessage(i,white,"Âàøà öåëü: Óáèòü âñåõ ÷ëåíîâ âðàæåñêîé ìàôèè, è íå äàòü èì âîçìîæíîñòè âûæèòü, èíà÷å âîéíà áóäåò ïðîèãðàíà.");
                                                            }
                                                             
    TextDrawShowForPlayer(i,GANGSYSTEM[0][i]);
                                                             
    TextDrawShowForPlayer(i,GANGSYSTEM[1][i]);
                                                             
    TextDrawShowForPlayer(i,GANGSYSTEM[2][i]);
                                                             
    CountBackZone ] = 10;
                                                         }
                                             }
                                }
            }
            return 
    1;
    }
    dcmd_ban(playeridparams[])
    {
        new 
    tmp[256], tmp2[256], indexplayer;
        
    tmp strtok(params,index), tmp2 strtok(params,index);
        if(
    PlayerInfo[playerid][pAdminLevel] < 3) return SendClientMessage(playerid,red,"Àäìèíèñòðàòîð 4 óðîâíÿ èìååò äîñòóï ê ýòîé êîììàíäå.");
        if(!
    strlen(params)) return SendClientMessage(playeridred"Èñïîëüçóéòå: /ban [id èãðîêà] [ïðè÷èíà]");
        
    player strval(tmp);
        if(
    player == playerid) return SendClientMessage(playeridred"Âû íå ìîæåòå çàáàíèòü ñàìîãî ñåáÿ.");
        if(!
    IsPlayerConnected(player)) return SendClientMessage(playeridred"Èãðîê ñ òàêèì ÈÄ íå íàéäåí.");
        if(
    PlayerInfo[playerid][pAdminLevel] > PlayerInfo[player][pAdminLevel]) return SendClientMessage(playeridred"Âû íå ìîæåòå ïðèìåíèòü ýòó êîììàíäó ê ñòàðøåìó ïî ðàíãó àäìèíèñòðàòîðó.");
        if(
    strlen(tmp2))
                {
                    
    format(tmp2,sizeof(tmp2),"* Àäìèíèñòðàòîð %s çàáàíèë âàñ [ïðè÷èíà: %s]",pName(playerid),params[2]);
                    
    SendClientMessage(player,red,tmp2);
                    
    format(tmp2,sizeof(tmp2),"* Âû çàáàíèëè èãðîêà %s [ïðè÷èíà: %s]"pName(player),params[2]);
                    
    SendClientMessage(playerid,red,tmp2);
                    
    format(tmp2,sizeof(tmp2),"* Àäìèíèñòðàòîð %s  äàë áàí èãðîêó %s [ïðè÷èíà: %s]"pName(playerid),pName(player),params[2]);
                    
    SendClientMessageToAll(red,tmp2);
                }
        else
                {
                    
    format(tmp2,sizeof(tmp2),"* Àäìèíèñòðàòîð %s êèêíóë âàñ",pName(playerid));
                    
    SendClientMessage(player,red,tmp2);
                    
    format(tmp2,sizeof(tmp2),"* Âû çàáàíèëè èãðîêà %s"pName(player));
                    
    SendClientMessage(playerid,red,tmp2);
                    
    format(tmp2,sizeof(tmp2),"Àäìèíèñòðàòîð %s äàë áàí èãðîêó %s [ïðè÷èíà íå óêàçàíà]"pName(playerid),pName(player));
                    
    SendClientMessageToAll(red,tmp2);
                }
        
    Ban player);
        return 
    1;
    }
    dcmd_kick(playeridparams[])
    {
        new 
    tmp[256], tmp2[256], indexplayer;
        
    tmp strtok(params,index), tmp2 strtok(params,index);
        if(
    PlayerInfo[playerid][pAdminLevel] < 2) return SendClientMessage(playerid,red,"Àäìèíèñòðàòîð 4 óðîâíÿ èìååò äîñòóï ê ýòîé êîììàíäå.");
        if(!
    strlen(params)) return SendClientMessage(playeridred"Èñïîëüçóéòå: /kick [id èãðîêà] [ïðè÷èíà]");
        
    player strval(tmp);
        if(
    player == playerid) return SendClientMessage(playeridred"Âû íå ìîæåòå êèêíóòü ñàìîãî ñåáÿ.");
        if(!
    IsPlayerConnected(player)) return SendClientMessage(playeridred"Èãðîê ñ òàêèì ÈÄ íå íàéäåí.");
        if(
    PlayerInfo[playerid][pAdminLevel] > PlayerInfo[player][pAdminLevel]) return SendClientMessage(playeridred"Âû íå ìîæåòå ïðèìåíèòü ýòó êîììàíäó ê ñòàðøåìó ïî ðàíãó àäìèíèñòðàòîðó.");
        if(
    strlen(tmp2))
                {
                    
    format(tmp2,sizeof(tmp2),"* Àäìèíèñòðàòîð %s êèêíóë âàñ [ïðè÷èíà: %s]",pName(playerid),params[2]);
                    
    SendClientMessage(player,red,tmp2);
                    
    format(tmp2,sizeof(tmp2),"* Âû êèêíóëè èãðîêà %s [ïðè÷èíà: %s]"pName(player),params[2]);
                    
    SendClientMessage(playerid,red,tmp2);
                    
    format(tmp2,sizeof(tmp2),"* Àäìèíèñòðàòîð %s êèêíóë èãðîêà %s [ïðè÷èíà: %s]"pName(playerid),pName(player),params[2]);
                    
    SendClientMessageToAll(red,tmp2);
                }
        else
                {
                    
    format(tmp2,sizeof(tmp2),"* Àäìèíèñòðàòîð %s êèêíóë âàñ",pName(playerid));
                    
    SendClientMessage(player,red,tmp2);
                    
    format(tmp2,sizeof(tmp2),"* Âû êèêíóëè èãðîêà %s"pName(player));
                    
    SendClientMessage(playerid,red,tmp2);
                    
    format(tmp2,sizeof(tmp2),"Àäìèíèñòðàòîð %s êèêíóë èãðîêà %s [ïðè÷èíà íå óêàçàíà]"pName(playerid),pName(player));
                    
    SendClientMessageToAll(red,tmp2);
                }
        
    KickEx player);
        return 
    1;
    }
    /*dcmd_stats(playerid, params[])
    {
            #pragma unused params
            new sex[15],string[ 440 ];
            if(PlayerInfo[playerid][pSex] == 1) sex = "Ìóæñêîé";
            else if(PlayerInfo[playerid][pSex] == 1) sex = "Æåíñêèé";
            else sex = "Íå óêàçàí";
            format(string,sizeof(string),"%s\n{FF4D00}* Óðîâåíü: {FFFFFF}%i",string,PlayerInfo[playerid][pLvl]);
            format(string,sizeof(string),"%s\n{FF4D00}* Äåíüãè: {FFFFFF}%i",string,GetPlayerMoney(playerid));
            format(string,sizeof(string),"%s\n{FF4D00}* Exp: {FFFFFF}%i",string,PlayerInfo[playerid][pExp]);
            format(string,sizeof(string),"%s\n{FF4D00}* Ïîë: {FFFFFF}%s",string,sex);
            format(string,sizeof(string),"%s\n{FF4D00}* Äàòà ðîæäåíèÿ: {FFFFFF}%i Ãîä.",string,PlayerInfo[playerid][pOld]);
            format(string,sizeof(string),"%s\n{FF4D00}* Îðãàíèçàöèÿ: %s.",GetGroupForPlayer( PlayerInfo[playerid][pGroup] );
            format(string,sizeof(string),"%s\n{FF4D00}* Äîëæíîñòü: %s.",GetRankForPlayer( PlayerInfo[playerid][pRank] );
            ShowPlayerDialog(playerid, 23, DIALOG_STYLE_MSGBOX, "{FFFFFF}Âû îòêðûëè ñâîþ ñòàòèñòèêó:" ,string,"Çàêðûòü","");
            return 1;
    }*/
    dcmd_setskin(playeridparams[])
    {
            if(!
    IsPlayerLeader(playerid,0))return SendClientMessage(playerid,red,"Äîñòóï ê êîìàíäå èìååò òîëüêî ëèäåð ôðàêöèè.");
            new 
    playerstring 144 ];
            if (
    sscanf(params"u",player)) return SendClientMessage(playerid,red,"Èñïîëüçîâàíèå: /setskin [èä èãðîêà/÷àñòü èìåíè](êîòîðûé ñîñòîèò â âàøåé îðãàíèçàöèè)");
            if(!
    IsPlayerConnected(player)) return SendClientMessage(playerid,red,"Òàêîãî èãðîêà íå ñóùåñòâóåò");
            if(
    PlayerInfo[playerid][pGroup] != PlayerInfo[player][pGroup]) return SendClientMessage(playerid,red,"Ýòîò èãðîê ñîñòîèò íå â âàøåé ôðàêöèè.");
             
    LEADERPANEL][ playerid ] = player;
            switch(
    PlayerInfo[playerid][pGroup])
            {
                case 
    1:
                {
                        
    format(string,sizeof(string),"{ffffff}98\n{ffffff}120\n{ffffff}147\n{ffffff}166\n{ffffff}163\n{ffffff}194");
                        
    ShowPlayerDialog(playerid17DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå æåëàåìûé ñêèí",string,"Âûáðàë","Îòìåíà");
                }
                case 
    2:
                {
                        
    format(string,sizeof(string),"{ffffff}287\n{ffffff}267\n{ffffff}282\n{ffffff}284\n{ffffff}285\n{ffffff}288\n{ffffff}255\n{ffffff}189");
                        
    ShowPlayerDialog(playerid18DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå æåëàåìûé ñêèí",string,"Âûáðàë","Îòìåíà");
                }
                case 
    3:
                {
                        
    format(string,sizeof(string),"{ffffff}61\n{ffffff}46\n{ffffff}191\n{ffffff}73\n{ffffff}287");
                        
    ShowPlayerDialog(playerid19DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå æåëàåìûé ñêèí",string,"Âûáðàë","Îòìåíà");
                }
                case 
    4:
                {
                        
    format(string,sizeof(string),"{ffffff}233\n{ffffff}186\n{ffffff}171\n{ffffff}170\n{ffffff}180\n{ffffff}291");
                        
    ShowPlayerDialog(playerid20DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå æåëàåìûé ñêèí",string,"Âûáðàë","Îòìåíà");
                }
                case 
    5:
                {
                        
    format(string,sizeof(string),"{ffffff}186\n{ffffff}166\n{ffffff}163\n{ffffff}285\n{ffffff}286");
                        
    ShowPlayerDialog(playerid21DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå æåëàåìûé ñêèí",string,"Âûáðàë","Îòìåíà");
                }
                case 
    6:
                {
                        
    format(string,sizeof(string),"{ffffff}172\n{ffffff}171\n{ffffff}273\n{ffffff}214\n{ffffff}119");
                        
    ShowPlayerDialog(playerid32DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå æåëàåìûé ñêèí",string,"Âûáðàë","Îòìåíà");
                }
                case 
    7:
                {
                        
    format(string,sizeof(string),"{ffffff}46\n{ffffff}126\n{ffffff}111\n{ffffff}233");
                        
    ShowPlayerDialog(playerid33DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå æåëàåìûé ñêèí",string,"Âûáðàë","Îòìåíà");
                }
                case 
    8:
                {
                        
    format(string,sizeof(string),"{ffffff}127\n{ffffff}216\n{ffffff}174\n{ffffff}298");
                        
    ShowPlayerDialog(playerid34DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå æåëàåìûé ñêèí",string,"Âûáðàë","Îòìåíà");
                }
            }
            return 
    1;
    }
    dcmd_setleader(playeridparams[])
    {
            if(
    PlayerInfo[playerid][pGroup] == && PlayerInfo[playerid][pRank] == 5)
            {
                        new 
    player;
                        if (
    sscanf(params"i",player)) return SendClientMessage(playerid,red,"Èñïîëüçîâàíèå: /setleader [èä èãðîêà/÷àñòü èìåíè](êîòîðûé ñîñòîèò â âàøåé îðãàíèçàöèè)");
                        if(!
    IsPlayerConnected(player)) return SendClientMessage(playerid,red,"Òàêîãî èãðîêà íå ñóùåñòâóåò");
                        if(
    player == playerid ) return SendClientMessage(playerid,red,"Âû íå ìîæåòå íàçíà÷èòü ñàìîãî ñåáÿ.");
                         
    ShowPlayerDialog(playerid27DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå ôðàêöèþ:","{ffffff}Ïðàâèòåëüñòâî\n{ffffff}SFPD\n{ffffff}ÂÌÔ\n{ffffff}ÑÌÈ\n{ffffff}ÔÁÐ","Äàëåå","Îòìåíà");
                         
    LEADERPANEL][ playerid ] = player;
             }
             else return 
    SendClientMessage(playerid,red,"Íåò äîñòóïà ê êîìàíäå.");
            return 
    1;
    }
    dcmd_invite(playeridparams[])
    {
            if(!
    IsPlayerLeader(playerid,0))return SendClientMessage(playerid,red,"Äîñòóï ê êîìàíäå èìååò òîëüêî ëèäåð ôðàêöèè.");
            new 
    player;
            if (
    sscanf(params"u",player)) return SendClientMessage(playerid,red,"Èñïîëüçîâàíèå: /invite [èä èãðîêà/÷àñòü èìåíè](êîòîðûé ñîñòîèò â âàøåé îðãàíèçàöèè)");
            if(!
    IsPlayerConnected(player)) return SendClientMessage(playerid,red,"Òàêîãî èãðîêà íå ñóùåñòâóåò");
            if(
    PlayerInfo[player][pGroup] != && PlayerInfo[player][pRank] != 0) return SendClientMessage(playerid,red,"Ýòîò èãðîê óæå ñîñòîèò â äðóãîé ôðàêöèè.");
            if(
    PlayerInfo[playerid][pGroup] == PlayerInfo[player][pGroup]) return SendClientMessage(playerid,red,"Ýòîò èãðîê óæå ñîñòîèò â âàøåé ôðàêöèè.");
            switch(
    PlayerInfo[playerid][pGroup])
            {
                case 
    1:ShowPlayerDialog(playerid24DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå ðàíã:","{ffffff}Îõðàííèê\n{ffffff}Íà÷àëüíèê îõðàíû\n{ffffff}Ëèöåíçåð\n{ffffff}Äåïóòàò\n{ffffff}Ìýð","Äàëåå","Îòìåíà");
                case 
    2:ShowPlayerDialog(playerid24DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå ðàíã:","{ffffff}Êàäåò\n{ffffff}Ìë. Ñåðæàíò\n{ffffff}Ñò. Ñåðæàíò\n{ffffff}Ëåéòåíàíò\n{ffffff}Ìë. Êàïèòàí-Ëåéòåíàíò\n{ffffff}Ìë. Êàïèòàí\n{ffffff}Ñò. Êàïèèòàí\n{ffffff}Ìàéîð\n{ffffff}Ïîëêîâíèê\n{ffffff}Ãåíåðàë","Äàëåå","Îòìåíà");
                case 
    3:ShowPlayerDialog(playerid24DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå ðàíã:","{ffffff}Ìàòðîñ\n{ffffff}Ñò. Ìàòðîñ\n{ffffff}Ìè÷ìàí\n{ffffff}Ñòàðøèíà\n{ffffff}Ëåéòåíàíò\n{ffffff}Êàïèòàí-Ëåéòåíàíò\n{ffffff}Êàïèòàí 2 ðàíãà\n{ffffff}Êàïèòàí 1 ðàíãà\n{ffffff}Âèöå-Àäìèðàë\n{ffffff}Àäìèðàë","Äàëåå","Îòìåíà");
                case 
    4:ShowPlayerDialog(playerid24DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå ðàíã:","{ffffff}Íà÷èíàþùèé ðàáîòíèê\n{ffffff}Òåëåìàñòåð\n{ffffff}Ðàäèîòåõíèê\n{ffffff}Âåäóùèé\n{ffffff}Ðåæèññåð\n{ffffff}Ãë.Ðåæèññåð\n{ffffff}Äèðåêòîð","Äàëåå","Îòìåíà");
                case 
    5:ShowPlayerDialog(playerid24DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå ðàíã:","{ffffff}Êàäåò\n{ffffff}Ìë. Àãåíò\n{ffffff}Ñò. Àãåíò\n{ffffff}Àãåíò ÃÍÊ\n{ffffff}Ãë. ÃÍÊ\n{ffffff}Çàì. Äèðåêòîðà\n{ffffff}Äèðåêòîð","Äàëåå","Îòìåíà");
                case 
    6:ShowPlayerDialog(playerid24DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå ðàíã:","{ffffff}Ñîñòàâ\n{ffffff}Çàì. Ëèäåðà\n{ffffff}Ëèäåð","Äàëåå","Îòìåíà");
                case 
    7:ShowPlayerDialog(playerid24DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå ðàíã:","{ffffff}Ñîñòàâ\n{ffffff}Çàì. Ëèäåðà\n{ffffff}Ëèäåð","Äàëåå","Îòìåíà");
                case 
    8:ShowPlayerDialog(playerid24DIALOG_STYLE_LIST,"{ffffff}Âûáåðèòå ðàíã:","{ffffff}Ñîñòàâ\n{ffffff}Çàì. Ëèäåðà\n{ffffff}Ëèäåð","Äàëåå","Îòìåíà");
            }
             
    LEADERPANEL][ playerid ] = player;
            return 
    1;
    }
    dcmd_uninvite(playeridparams[])
    {
            if(!
    IsPlayerLeader(playerid,0))return SendClientMessage(playerid,red,"Äîñòóï ê êîìàíäå èìååò òîëüêî ëèäåð ôðàêöèè.");
            new 
    playerstring 144 ];
            if (
    sscanf(params"u",player)) return SendClientMessage(playerid,red,"Èñïîëüçîâàíèå: /uninvite [èä èãðîêà/÷àñòü èìåíè](êîòîðûé ñîñòîèò â âàøåé îðãàíèçàöèè)");
            if(!
    IsPlayerConnected(player)) return SendClientMessage(playerid,red,"Òàêîãî èãðîêà íå ñóùåñòâóåò");
            if(
    player == playerid ) return SendClientMessage(playerid,red,"Âû íå ìîæåòå èñêëþ÷èòü ñàìîãî ñåáÿ.");
            if(
    PlayerInfo[playerid][pGroup] != PlayerInfo[player][pGroup]) return SendClientMessage(playerid,red,"Ýòîò èãðîê ñîñòîèò íå â âàøåé ôðàêöèè.");
            
    format(string,sizeof(string),"{ffffff}Âû äåéñòâèòåëüíî õîòèòå èñêëþ÷èòü èãðîêà %s(%i) èç ñâîåé ôðàêöèè %s ?",pName(player),player,GetRankAndGroupForPlayer(PlayerInfo[player][pGroup],PlayerInfo[player][pRank]));
             
    ShowPlayerDialog(playerid16DIALOG_STYLE_MSGBOX,"{ffffff}Ïîäòâåðæäåíèå äåéñòâèÿ",string,"Äà","Îòìåíà");
             
    LEADERPANEL][ playerid ] = player;
            return 
    1;
    }
    dcmd_auninvite(playeridparams[])
    {
        if(
    IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 3)
        {
            new 
    playerstring 144 ];
            if (
    sscanf(params"u",player)) return SendClientMessage(playerid,red,"Èñïîëüçîâàíèå: /auninvite [èä èãðîêà/÷àñòü èìåíè]");
            if(!
    IsPlayerConnected(player)) return SendClientMessage(playerid,red,"Òàêîãî èãðîêà íå ñóùåñòâóåò");
            if(
    player == playerid ) return SendClientMessage(playerid,red,"Âû íå ìîæåòå èñêëþ÷èòü ñàìîãî ñåáÿ.");
            
    format(string,sizeof(string),"{ffffff}Âû äåéñòâèòåëüíî õîòèòå âûãíàòü èãðîêà %s(%i) èç ôðàêöèè %s ?",pName(player),player,GetRankAndGroupForPlayer(PlayerInfo[player][pGroup],PlayerInfo[player][pRank]));
             
    ShowPlayerDialog(playerid15DIALOG_STYLE_MSGBOX,"{ffffff}Ïîäòâåðæäåíèå äåéñòâèÿ",string,"Äà","Îòìåíà");
             
    ADMINPANEL][ playerid ] = player;
        }
        else return 
    SendClientMessage(playerid,red,"Ó âàñ íåò ïðàâ íà èñïîëüçîâàíèå ýòîé êîììàíäû.");
        return 
    1;
    }
    dcmd_makeleader(playeridparams[])
    {
        if(
    IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 3)
        {
            new 
    player;
            if (
    sscanf(params"u",player)) return SendClientMessage(playerid,red,"Èñïîëüçîâàíèå: /makeleader [èä èãðîêà/÷àñòü èìåíè]");
            if(!
    IsPlayerConnected(player)) return SendClientMessage(playerid,red,"Òàêîãî èãðîêà íå ñóùåñòâóåò");
             
    ADMINPANEL][ playerid ] = player;
            
    ShowPlayerDialog(playerid8DIALOG_STYLE_LIST,"Âûáåðè íóæíóþ îðãàíèçàöèþ","{ffffff}Ïðàâèòåëüñòâî\n{ffffff}SFPD\n{ffffff}ÂÌÔ\n{ffffff}ÑÌÈ\n{ffffff}ÔÁÐ\n{ffffff}La Cosa Nostra\n{ffffff}Russian Mafia\n{ffffff}Colombian Mafia","Äàëåå","Çàêîí÷èòü");
        }
        else return 
    SendClientMessage(playerid,red,"Ó âàñ íåò ïðàâ íà èñïîëüçîâàíèå ýòîé êîììàíäû.");
        return 
    1;
    }
    dcmd_aka(playerid,params[])
    {
        if(
    IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 3)
        {
            new 
    playerstring 144 ];
            if (
    sscanf(params"u",player)) return SendClientMessage(playerid,red,"Èñïîëüçîâàíèå: /aka [èä èãðîêà/÷àñòü èìåíè]");
             
    format(string,sizeof(string),"Ëîã èãðîêà: [%s id:%d] [%s] %s"pName(player), playerpIP(player), dini_Get("Server/aka.txt",pIP(player)) );
            
    SendClientMessage(playerid,white,string);
        }
        else return 
    SendClientMessage(playerid,red,"Ó âàñ íåò ïðàâ íà èñïîëüçîâàíèå ýòîé êîììàíäû.");
        return 
    1;
    }


    dcmd_makeadmin(playeridparams[])
    {
        new 
    playerlevelstring 144 ];
        if(
    IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] == 5)
        {
            if (
    sscanf(params"u",player,level)) return SendClientMessage(playerid,red,"Èñïîëüçîâàíèå: /makeadmin [èä èãðîêà/÷àñòü èìåíè] [óðîâåíü 1 - 5] (0 ñíÿòü àäìèíèñòðàòîðà)");
            if(!
    IsPlayerConnected(player)) return SendClientMessage(playerid,red,"Òàêîãî èãðîêà íå ñóùåñòâóåò");
            if(
    level || level 0) return SendClientMessage(playerid,red,"Íå âåðíî óêàçàí óðîâåíü èãðîêà ( 0 - 5 ). (0 ñíÿòü àäìèíèñòðàòîðà)");
            if(
    PlayerInfo[player][pAdminLevel] == level) return SendClientMessage(playerid,red,"Àäìèíèñòðàòîð óæå èìååò ýòîò óðîâåíü.");
            
    PlayerInfo[player][pAdminLevel] = level;
            
    PlayerPlaySound(player1149 ,0,0,0);
            if(
    level == 0)format(string,sizeof(string),"~r~You downgraded");
            else 
    format(string,sizeof(string),"~g~Administrator: ~w~%i level",level);
            
    GameTextForPlayer(player,string,40005);
            
    format(string,sizeof(string),"* Âû óñïåøíî ñäåëàëè èãðîêà %s(%i) àäìèíèñòðàòîðîì %i óðîâíÿ.",pName(player),player,level);
            
    SendClientMessage(playerid,green,string);
            
    format(string,sizeof(string),"* %s(%i) äàë òåáå àäìèíèñòðàòîðà %i óðîâíÿ.",pName(playerid),playerid,level);
            
    SendClientMessage(player,green,string);
        }
        else return 
    SendClientMessage(playerid,red,"Ó âàñ íåò ïðàâ íà èñïîëüçîâàíèå ýòîé êîììàíäû.");
        return 
    1;
        } 

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

    Статус
    Оффлайн
    Регистрация
    21.12.2014
    Сообщений
    165
    Репутация:
    0 ±
    Есть у кого какие нибудь предложения ? Команды с DC_CMD Работают.

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

    Статус
    Оффлайн
    Регистрация
    08.04.2014
    Сообщений
    7
    Репутация:
    0 ±
    Цитата Сообщение от heralt Посмотреть сообщение
    Есть у кого какие нибудь предложения ? Команды с DC_CMD Работают.
    Как тебе проще то сказать команды на DC_CMD с обычными работать не будут.
    Переводи все команды на DC_CMD и все работать будет

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

    Статус
    Оффлайн
    Регистрация
    21.12.2014
    Сообщений
    165
    Репутация:
    0 ±
    Я мало чего понимаю в DC CMD, есть какие - нибудь уроки по этому командному процессору?

  9. #9
    Аватар для Osetin
    •Администратор•

    Статус
    Оффлайн
    Регистрация
    26.03.2013
    Адрес
    Pro-Pawn.Ru
    Сообщений
    3,428
    Репутация:
    1079 ±
    Цитата Сообщение от heralt Посмотреть сообщение
    Я мало чего понимаю в DC CMD, есть какие - нибудь уроки по этому командному процессору?
    http://pro-pawn.ru/showthread.php?1028

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

    Статус
    Оффлайн
    Регистрация
    21.12.2014
    Сообщений
    165
    Репутация:
    0 ±
    Нашел себе вечерние проблемы, пойду разбираться)

 

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

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

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

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

Ваши права

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