Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Помогите вставить код

Статус
В этой теме нельзя размещать новые ответы.

dimon174

Новичок
помогите вставить этот код
Код:
В public OnPlayerKeyStateChange:
PHP код:
if(IsKeyJustDown(KEY_CROUCH, newkeys, oldkeys))//H 
    {   //если игрок посигналил 
        //Put hooks for players in a car here 
        if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) 
        { 
          if(PlayerInfo[playerid][pLevel] >= 0)//Если человек выше 0 уровня 
          { 
             if(WantedLevel[playerid] > 0)//Если у человека звезды 
             { 
                SendClientMessage(playerid, COLOR_RED, "[Диспетчер]Вы в розыске и не можете покинуть штат!"); 
                return 1; 
             } 
                if(gGateStatus[1]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, 51.3034, -1538.3402, 4.0928) ) ) 
                { 
                    gGateStatus[1] = 1; 
                    SetObjectRot(oLSSF1, 0.00, 0.00, 83.00); 

                    LSSF1timer = SetTimer("tLSSF1Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-СФ]Вы перетнули кордон штата. Приветсвуем вас в Лос Сантосе!"); 
                    return 1; 
                } 
                if(gGateStatus[2]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, 56.1727, -1525.4838, 4.0264) ) ) 
                { 
                    gGateStatus[2] = 1; 
                    SetObjectRot(oLSSF2, 0.00, 0.00, 262.00); 

                    LSSF2timer = SetTimer("tLSSF2Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-СФ]Вы перетнули кордон штата. Приветсвуем вас в районе Сан Фиеро!"); 
                    return 1; 
                } 
                if(gGateStatus[3]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, 98.7595, -1282.9634, 13.1566) ) ) 
                { 
                    gGateStatus[3] = 1; 
                    SetObjectRot(oLSSF3, 0.00, 0.00, 301.00); 

                    LSSF3timer = SetTimer("tLSSF3Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-СФ]Вы перетнули кордон штата. Приветсвуем вас в Лос Сантосе!"); 
                    return 1; 
                } 
                if(gGateStatus[4]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, 96.2927, -1278.3447, 13.1566) ) ) 
                { 
                    gGateStatus[4] = 1; 
                    SetObjectRot(oLSSF4, 0.00, 0.00, 301.00); 

                    LSSF4timer = SetTimer("tLSSF4Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-СФ]Вы перетнули кордон штата. Приветсвуем вас в Лос Сантосе!"); 
                    return 1; 
                } 
                if(gGateStatus[5]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, 87.6271, -1259.0337, 13.4448) ) ) 
                { 
                    gGateStatus[5] = 1; 
                    SetObjectRot(oLSSF5, 0.00, 0.00, 301.00); 

                    LSSF5timer = SetTimer("tLSSF5Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-СФ]Вы перетнули кордон штата. Приветсвуем вас в районе Сан Фиеро!"); 
                    return 1; 
                } 
                if(gGateStatus[6]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, 85.1767, -1254.3271, 13.4448) ) ) 
                { 
                    gGateStatus[6] = 1; 
                    SetObjectRot(oLSSF6, 0.00, 0.00, 121.00); 

                    LSSF6timer = SetTimer("tLSSF6Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-СФ]Вы перетнули кордон штата. Приветсвуем вас в районе Сан Фиеро!"); 
                    return 1; 
                } 
                if(gGateStatus[7]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -97.8324, -931.9388, 18.9518) ) ) 
                { 
                    gGateStatus[7] = 1; 
                    SetObjectRot(oLSSF7, 0.00, 0.00, 150.00); 

                    LSSF7timer = SetTimer("tLSSF7Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-СФ]Вы перетнули кордон штата. Приветсвуем вас в районе Сан Фиеро!"); 
                    return 1; 
                } 
                if(gGateStatus[8]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -96.6996, -943.6791, 19.7803) ) ) 
                { 
                    gGateStatus[8] = 1; 
                    SetObjectRot(oLSSF8, 0.00, 0.00, 330.00); 

                    LSSF8timer = SetTimer("tLSSF8Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-СФ]Вы перетнули кордон штата. Приветсвуем вас в районе Лос Сантоса!"); 
                    return 1; 
                } 
                if(gGateStatus[9]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -964.0405, -311.1023, 35.3549) ) ) 
                { 
                    gGateStatus[9] = 1; 
                    SetObjectRot(oLSSF9, 0.00, 0.00, 168.00); 

                    LSSF9timer = SetTimer("tLSSF9Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-СФ]Вы перетнули кордон штата. Приветсвуем вас в районе Сан Фиеро!"); 
                    return 1; 
                } 
                if(gGateStatus[10]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -959.9789, -321.9991, 35.3549) ) ) 
                { 
                    gGateStatus[10] = 1; 
                    SetObjectRot(oLSSF10, 0.00, 0.00, 168.00); 

                    LSSF10timer = SetTimer("tLSSF10Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-СФ]Вы перетнули кордон штата. Приветсвуем вас в районе Лос Сантоса"); 
                    return 1; 
                } 
                if(gGateStatus[11]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -167.1572, 356.4737, 11.0748) ) ) 
                { 
                    gGateStatus[11] = 1; 
                    SetObjectRot(oLSLV1, 0.00, 0.00, 164.00); 

                    LSLV1timer = SetTimer("tLSLV1Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в районе Лас Вентураса!"); 
                    return 1; 
                } 
                if(gGateStatus[12]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -171.4566, 366.6947, 11.0748) ) ) 
                { 
                    gGateStatus[12] = 1; 
                    SetObjectRot(oLSLV2, 0.00, 0.00, 164.00); 

                    LSLV2timer = SetTimer("tLSLV2Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в районе Лос Сантоса!"); 
                    return 1; 
                } 
                if(gGateStatus[13]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, 513.7938, 477.1362, 17.9226) ) ) 
                { 
                    gGateStatus[13] = 1; 
                    SetObjectRot(oLSLV3, 0.00, 0.00, 35.00); 

                    LSLV3timer = SetTimer("tLSLV3Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в районе Лос Сантоса!"); 
                    return 1; 
                } 
                if(gGateStatus[14]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, 526.7021, 468.9641, 17.9226) ) ) 
                { 
                    gGateStatus[14] = 1; 
                    SetObjectRot(oLSLV4, 0.00, 0.00, 164.00); 

                    LSLV4timer = SetTimer("tLSLV4Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в районе Лас Вентураса!"); 
                    return 1; 
                } 
                if(gGateStatus[15]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, 1728.1422, 533.8117, 26.5312) ) ) 
                { 
                    gGateStatus[15] = 1; 
                    SetObjectRot(oLSLV5, 0.00, 0.00, 160.00); 

                    LSLV5timer = SetTimer("tLSLV5Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в районе Лос Сантоса!"); 
                    return 1; 
                } 
                if(gGateStatus[16]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, 1736.3052, 530.1495, 26.5312) ) ) 
                { 
                    gGateStatus[16] = 1; 
                    SetObjectRot(oLSLV6, 0.00, 0.00, 160.00); 

                    LSLV6timer = SetTimer("tLSLV6Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в районе Лос Сантоса!"); 
                    return 1; 
                } 
                if(gGateStatus[17]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, 1744.5681, 525.5649, 26.5312) ) ) 
                { 
                    gGateStatus[17] = 1; 
                    SetObjectRot(oLSLV7, 0.00, 0.00, 160.00); 

                    LSLV7timer = SetTimer("tLSLV7Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в районе Лас Вентураса!"); 
                    return 1; 
                } 
                if(gGateStatus[18]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, 1752.9017, 521.6107, 26.5312) ) ) 
                { 
                    gGateStatus[18] = 1; 
                    SetObjectRot(oLSLV8, 0.00, 0.00, 160.00); 

                    LSLV8timer = SetTimer("tLSLV8Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП ЛС-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в районе Лас Вентураса!"); 
                    return 1; 
                } 
                if(gGateStatus[19]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -1394.8730, 824.5624, 46.4399) ) ) 
                { 
                    gGateStatus[19] = 1; 
                    SetObjectRot(oSFLV1, 0.00, 0.00, 137.00); 

                    SFLV1timer = SetTimer("tSFLV1Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП СФ-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в районе Лас Вентураса!"); 
                    return 1; 
                } 
                if(gGateStatus[20]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -1389.5615, 819.4953, 46.4399) ) ) 
                { 
                    gGateStatus[20] = 1; 
                    SetObjectRot(oSFLV2, 0.00, 0.00, 137.00); 

                    SFLV2timer = SetTimer("tSFLV2Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП СФ-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в районе Лас Вентураса!"); 
                    return 1; 
                } 
                if(gGateStatus[21]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -1400.3147, 831.5710, 46.4399) ) ) 
                { 
                    gGateStatus[21] = 1; 
                    SetObjectRot(oSFLV3, 0.00, 0.00, 137.00); 

                    SFLV3timer = SetTimer("tSFLV3Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП СФ-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в Сан Фиеро!"); 
                    return 1; 
                } 
                if(gGateStatus[22]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -1405.4080, 837.2725, 46.4399) ) ) 
                { 
                    gGateStatus[22] = 1; 
                    SetObjectRot(oSFLV4, 0.00, 0.00, 137.00); 

                    SFLV4timer = SetTimer("tSFLV4Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП СФ-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в Сан Фиеро!"); 
                    return 1; 
                } 
                if(gGateStatus[23]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -2668.1140, 1271.2849, 54.4196) ) ) 
                { 
                    gGateStatus[23] = 1; 
                    SetObjectRot(oSFLV5, 0.00, 0.00, 0.00); 

                    SFLV5timer = SetTimer("tSFLV5Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП СФ-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в районе Лас Вентураса!"); 
                    return 1; 
                } 
                if(gGateStatus[24]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -2677.2454, 1272.5239, 54.4196) ) ) 
                { 
                    gGateStatus[24] = 1; 
                    SetObjectRot(oSFLV6, 0.00, 0.00, 0.00); 

                    SFLV6timer = SetTimer("tSFLV6Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП СФ-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в районе Лас Вентураса!"); 
                    return 1; 
                } 
                if(gGateStatus[25]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -2695.2261, 1275.1847, 54.4196) ) ) 
                { 
                    gGateStatus[25] = 1; 
                    SetObjectRot(oSFLV7, 0.00, 0.00, 0.00); 

                    SFLV7timer = SetTimer("tSFLV7Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП СФ-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в Сан Фиеро!"); 
                    return 1; 
                } 
                if(gGateStatus[26]==0 && (IsPlayerInRangeOfPoint(playerid, 4.0, -2686.5830, 1274.4991, 54.4196) ) ) 
                { 
                    gGateStatus[26] = 1; 
                    SetObjectRot(oSFLV8, 0.00, 0.00, 0.00); 

                    SFLV8timer = SetTimer("tSFLV8Close", 10000, 0); 
                    SendClientMessage(playerid, COLOR_YELLOW,"[КП СФ-ЛВ]Вы перетнули кордон штата. Приветсвуем вас в Сан Фиеро!"); 
                    return 1; 
                } 
          } 
        } 
        return 1; 
    }
вот с этой темы http://pawno-info.ru/threads/42797-Система-Контрольных-Пунтов-(КП)

там где В public OnPlayerKeyStateChange:

вот сам мод



не получается вобще вставьте этот код пожалуйста ату ворота стоят и не открываются
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу