[Мануал] Ограбление магазина (srp)

Alex

Администратор
Команда форума
Администратор
#1
Ко всем new:
Код:
new ActorsRob[5];
new bool:cdrob[5];
new robscdtimer[MAX_PLAYERS];
new PlayerText:robsdraw[MAX_PLAYERS];
new RobTickRTC[MAX_PLAYERS];
new RobInts[MAX_PLAYERS];
Добавляем в OnPlayerConnect:
Код:
robsdraw[playerid] = CreatePlayerTextDraw(playerid, 200.995651, 391.999938, "~b~[IIIIIIIIIIIIIIIIIIIIIIIIIIIIII~b~]");
    PlayerTextDrawLetterSize(playerid, robsdraw[playerid], 0.584465, 2.889167);
    PlayerTextDrawAlignment(playerid, robsdraw[playerid], 1);
    PlayerTextDrawColor(playerid, robsdraw[playerid], -1);
    PlayerTextDrawSetShadow(playerid, robsdraw[playerid], 0);
    PlayerTextDrawSetOutline(playerid, robsdraw[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, robsdraw[playerid], 51);
    PlayerTextDrawFont(playerid, robsdraw[playerid], 1);
    PlayerTextDrawSetProportional(playerid, robsdraw[playerid], 1);
Далее в OnGameModeInit:

Код:
ActorsRob[0] = CreateActor(179, 296.8526,-82.5276,1001.5156,358.8242);
    SetActorVirtualWorld(ActorsRob[0], 0);
    SetActorHealth(ActorsRob[0], 255);
    SetActorInvulnerable(ActorsRob[0], true);
    ActorsRob[1] = CreateActor(179, 295.4810,-40.2167,1001.5156,2.2428);
    SetActorVirtualWorld(ActorsRob[1], 0);
    SetActorHealth(ActorsRob[0], 255);
    SetActorInvulnerable(ActorsRob[1], true);
    ActorsRob[2] = CreateActor(179, 316.1089,-133.7254,999.6016,91.0626);
    SetActorVirtualWorld(ActorsRob[2], 0);
    SetActorHealth(ActorsRob[0], 255);
    SetActorInvulnerable(ActorsRob[2], true);

    ActorsRob[3] = CreateActor(30, 204.8515,-8.1603,1001.2109,268.4108); // ls victim
    SetActorVirtualWorld(ActorsRob[3], 0);
    SetActorHealth(ActorsRob[0], 255);
    SetActorInvulnerable(ActorsRob[3], true);
    ActorsRob[4] = CreateActor(30, 204.8515,-8.1603,1001.2109,268.4108); // sf victim
    SetActorVirtualWorld(ActorsRob[4], 1);
    SetActorHealth(ActorsRob[0], 255);
    SetActorInvulnerable(ActorsRob[4], true);

    for(new i = 0; i < 5; i++) cdrob[i] = false;
    SetTimer("RobbingTimer", 2000, true);
В конец мода:

Код:
stock RobSuccessFilly(pids, tip ,member, robin, act)
{
    ClearActorAnimations(ActorsRob[act]);
    if(tip == 0)
    {
        new maxform;
        foreach(i)
        {
            if(maxform >= 4) break;
            else if(PlayerToPoint(30,i,204.8515,-8.1603,1001.2109) && PTEMP[i][pMember] == member && RobInts[i] == robin)
            {
                if(PTEMP[i][pSex] == 2) SetPlayerSkin(i, 191);
                else SetPlayerSkin(i, 287);
                proverkaforma[i] = 1;
                maxform++;
            }
        }
    }
    else if(tip == 1)
    {
        if(PTEMP[pids][pMember] == 5)
        {
            lcnmats += 2500;
            if(lcnmats > 100000) lcnmats = 100000;
        }
        else if(PTEMP[pids][pMember] == 6)
        {
            yakuzamats += 2500;
            if(yakuzamats > 100000) yakuzamats = 100000;
        }
        else if(PTEMP[pids][pMember] == 14)
        {
            rmmats += 2500;
            if(rmmats > 100000) rmmats = 100000;
        }
        SendClientMessage(pids, -1, "На склад вашей мафии добавлено 2500 материалов");
    }
    return 0;
}
publics: RobTickRTSC(playerid, tip ,member, Robsid, act)
{
    if(RobTickRTC[playerid] != -1)
    {
        RobTickRTC[playerid]--;
        if(RobTickRTC[playerid] == -1)
        {
            if(robscdtimer[playerid] != -1)
            {
                KillTimer(robscdtimer[playerid]);
                robscdtimer[playerid] = -1;
                RobTickRTC[playerid] = 0;
            }
            PlayerTextDrawHide(playerid,robsdraw[playerid]);
            RobSuccessFilly(playerid, tip ,member, Robsid, act);
        }
        else
        {
            PlayerTextDrawShow(playerid,robsdraw[playerid]);
            ApplyActorAnimation(act, "INT_HOUSE", "wash_up",4.1,0,0,0,1,0);
            switch(RobTickRTC[playerid])
            {
                case 29: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIIIIIIIIIIIIIIII~w~I~b~]");
                case 28: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIIIIIIIIIIIIIII~w~II~b~]");
                case 27: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIIIIIIIIIIIIII~w~III~b~]");
                case 26: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIIIIIIIIIIIII~w~IIII~b~]");
                case 25: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIIIIIIIIIIII~w~IIIII~b~]");
                case 24: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIIIIIIIIIII~w~IIIIII~b~]");
                case 23: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIIIIIIIIII~w~IIIIIII~b~]");
                case 22: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIIIIIIIII~w~IIIIIIII~b~]");
                case 21: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIIIIIIII~w~IIIIIIIII~b~]");
                case 20: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIIIIIII~w~IIIIIIIIII~b~]");
                case 19: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIIIIII~w~IIIIIIIIIII~b~]");
                case 18: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIIIII~w~IIIIIIIIIIII~b~]");
                case 17: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIIII~w~IIIIIIIIIIIII~b~]");
                case 16: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIIII~w~IIIIIIIIIIIIII~b~]");
                case 15: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIIII~w~IIIIIIIIIIIIIII~b~]");
                case 14: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIIII~w~IIIIIIIIIIIIIIII~b~]");
                case 13: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIIII~w~IIIIIIIIIIIIIIIII~b~]");
                case 12: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIIII~w~IIIIIIIIIIIIIIIIII~b~]");
                case 11: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIIII~w~IIIIIIIIIIIIIIIIIII~b~]");
                case 10: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIIII~w~IIIIIIIIIIIIIIIIIIII~b~]");
                 case 9: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIIII~w~IIIIIIIIIIIIIIIIIIIII~b~]");
                 case 8: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIIII~w~IIIIIIIIIIIIIIIIIIIIII~b~]");
                 case 7: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIIII~w~IIIIIIIIIIIIIIIIIIIIIII~b~]");
                 case 6: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIIII~w~IIIIIIIIIIIIIIIIIIIIIIII~b~]");
                 case 5: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIIII~w~IIIIIIIIIIIIIIIIIIIIIIIII~b~]");
                 case 4: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[IIII~w~IIIIIIIIIIIIIIIIIIIIIIIIII~b~]");
                 case 3: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[III~w~IIIIIIIIIIIIIIIIIIIIIIIIIII~b~]");
                 case 2: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[II~w~IIIIIIIIIIIIIIIIIIIIIIIIIIII~b~]");
                 case 1: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[I~w~IIIIIIIIIIIIIIIIIIIIIIIIIIIII~b~]");
                 case 0: PlayerTextDrawSetString(playerid,robsdraw[playerid], "~b~[~w~IIIIIIIIIIIIIIIIIIIIIIIIIIIIII~b~]");
            }
        }
    }
    return 0;
}
publics: RobsEnabledCD(ids)
{
    if(cdrob[ids] != true) return 0;
    cdrob[ids] = false;
    return 0;
}
stock wantedsrobfriend(fraks, reason, introb)
{
    foreach(i)
    {
        switch(reason) {
        case 0:
        {
            if(PlayerToPoint(30,i,204.8515,-8.1603,1001.2109) && PTEMP[i][pMember] == fraks && RobInts[i] == introb)
            {
                if(PTEMP[i][pWantedLevel] > 3) PTEMP[i][pWantedLevel] += 1;
                else PTEMP[i][pWantedLevel] += 3;
                SetPlayerWantedLevel(i,PTEMP[i][pWantedLevel]);
                SetPlayerCriminal(i,"Неизвестный", "Ограбление Victim LS");
            }
        }
        case 1:
        {
            if(PlayerToPoint(30,i,204.8515,-8.1603,1001.2109) && PTEMP[i][pMember] == fraks && RobInts[i] == introb)
            {
                if(PTEMP[i][pWantedLevel] > 3) PTEMP[i][pWantedLevel] += 1;
                else PTEMP[i][pWantedLevel] += 3;
                SetPlayerWantedLevel(i,PTEMP[i][pWantedLevel]);
                SetPlayerCriminal(i,"Неизвестный", "Ограбление Victim SF");
            }
        }
        case 2:
        {
            if(PlayerToPoint(30,i,316.1089,-133.7254,999.6016) && PTEMP[i][pMember] == fraks && RobInts[i] == introb)
            {
                if(PTEMP[i][pWantedLevel] > 3) PTEMP[i][pWantedLevel] += 1;
                else PTEMP[i][pWantedLevel] += 3;
                SetPlayerWantedLevel(i,PTEMP[i][pWantedLevel]);
                SetPlayerCriminal(i,"Неизвестный", "Ограбление Ammo LV");
            }
        }
        case 3:
        {
            if(PlayerToPoint(30,i,295.4810,-40.2167,1001.5156) && PTEMP[i][pMember] == fraks && RobInts[i] == introb)
            {
                if(PTEMP[i][pWantedLevel] > 3) PTEMP[i][pWantedLevel] += 1;
                else PTEMP[i][pWantedLevel] += 3;
                SetPlayerWantedLevel(i,PTEMP[i][pWantedLevel]);
                SetPlayerCriminal(i,"Неизвестный", "Ограбление Ammo SF");
            }
        }
        case 4:
        {
            if(PlayerToPoint(30,i,296.8526,-82.5276,1001.5156) && PTEMP[i][pMember] == fraks && RobInts[i] == introb)
            {
                if(PTEMP[i][pWantedLevel] > 3) PTEMP[i][pWantedLevel] += 1;
                else PTEMP[i][pWantedLevel] += 3;
                SetPlayerWantedLevel(i,PTEMP[i][pWantedLevel]);
                SetPlayerCriminal(i,"Неизвестный", "Ограбление Ammo LS");
            }
        }
    }
    return 0;
}
publics: RobbingTimer()
{
    for(new ac = 0; ac < 5; ac++) SetActorHealth(ActorsRob[ac], 255);
    new pl[5][8];
    foreach(i)
    {
        if(GetPlayerInterior(i) == 5)
        {
            if(PlayerToPoint(30,i,204.8515,-8.1603,1001.2109) && RobInts[i] == 3)
            {
                    if(cdrob[1] == false)
                {
                    switch(PTEMP[i][pMember])
                    {
                        case 12: pl[1][0]++;
                        case 13: pl[1][1]++;
                        case 15: pl[1][2]++;
                        case 17: pl[1][3]++;
                        case 18: pl[1][4]++;
                        default: continue;
                    }
                    new PTA = GetPlayerCameraTargetActor(i),
                        keys,
                        updown,
                        leftright;
                    GetPlayerKeys(i, keys, updown, leftright);
                    if(PTA != INVALID_ACTOR_ID && keys & KEY_AIM)
                    {
                        if(PTA != ActorsRob[4]) continue;
                        new PW = GetPlayerWeapon(i);
                        if(PW == 23 || PW == 24 || PW == 25 || PW == 29 || PW == 30 || PW == 31 || PW == 32)
                        {
                            if(pl[1][0] > 1)
                            {
                                ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                                cdrob[1] = true;
                                SetTimerEx("RobsEnabledCD", 1800000, false, "d",1);
                                RobTickRTC[i] = 30;
                                robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 0, PTEMP[i][pMember], 3, ActorsRob[4]);
                                wantedsrobfriend(PTEMP[i][pMember], 1, 3);
                            }
                            else if(pl[1][1] > 1)
                            {
                                ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                                cdrob[1] = true;
                                SetTimerEx("RobsEnabledCD", 1800000, false, "d",1);
                                RobTickRTC[i] = 30;
                                robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 0, PTEMP[i][pMember], 3, ActorsRob[4]);
                                wantedsrobfriend(PTEMP[i][pMember], 1, 3);
                            }
                            else if(pl[1][2] > 1)
                            {
                                ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                                cdrob[1] = true;
                                SetTimerEx("RobsEnabledCD", 1800000, false, "d",1);
                                RobTickRTC[i] = 30;
                                robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 0, PTEMP[i][pMember], 3, ActorsRob[4]);
                                wantedsrobfriend(PTEMP[i][pMember], 1, 3);
                            }
                            else if(pl[1][3] > 1)
                            {
                                ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                                cdrob[1] = true;
                                SetTimerEx("RobsEnabledCD", 1800000, false, "d",1);
                                RobTickRTC[i] = 30;
                                robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 0, PTEMP[i][pMember], 3, ActorsRob[4]);
                                wantedsrobfriend(PTEMP[i][pMember], 1, 3);
                            }
                            else if(pl[1][4] > 1)
                            {
                                ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                                cdrob[1] = true;
                                SetTimerEx("RobsEnabledCD", 1800000, false, "d",1);
                                RobTickRTC[i] = 30;
                                robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 0, PTEMP[i][pMember], 3, ActorsRob[4]);
                                wantedsrobfriend(PTEMP[i][pMember], 1, 3);
                            }
                            else
                            {
                                SendClientMessage(i, COLOR_GREY, "Для начала ограбления нужно минимум 2 напарника");
                            }
                        }
                    }
                }
                continue;
            }
            else if(PlayerToPoint(30,i,204.8515,-8.1603,1001.2109) && RobInts[i] == 4)
            {
                if(cdrob[0] == false)
                {
                    switch(PTEMP[i][pMember])
                    {
                        case 12: pl[0][0]++;
                        case 13: pl[0][1]++;
                        case 15: pl[0][2]++;
                        case 17: pl[0][3]++;
                        case 18: pl[0][4]++;
                        default: continue;
                    }
                    new PTA = GetPlayerCameraTargetActor(i),
                        keys,
                        updown,
                        leftright;
                    GetPlayerKeys(i, keys, updown, leftright);
                    if(PTA != INVALID_ACTOR_ID && keys & KEY_AIM)
                    {
                        if(PTA != ActorsRob[3]) continue;
                        new PW = GetPlayerWeapon(i);
                        if(PW == 23 || PW == 24 || PW == 25 || PW == 29 || PW == 30 || PW == 31 || PW == 32)
                        {
                            if(pl[0][0] > 1)
                            {
                                ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                                cdrob[0] = true;
                                SetTimerEx("RobsEnabledCD", 1800000, false, "d",0);
                                RobTickRTC[i] = 30;
                                robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 0, PTEMP[i][pMember], 4, ActorsRob[3]);
                                wantedsrobfriend(PTEMP[i][pMember], 0, 4);
                            }
                            else if(pl[0][1] > 1)
                            {
                                ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                                cdrob[0] = true;
                                SetTimerEx("RobsEnabledCD", 1800000, false, "d",0);
                                RobTickRTC[i] = 30;
                                robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 0, PTEMP[i][pMember], 4, ActorsRob[3]);
                                wantedsrobfriend(PTEMP[i][pMember], 0, 4);
                            }
                            else if(pl[0][2] > 1)
                            {
                                ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                                cdrob[0] = true;
                                SetTimerEx("RobsEnabledCD", 1800000, false, "d",0);
                                RobTickRTC[i] = 30;
                                robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 0, PTEMP[i][pMember], 4, ActorsRob[3]);
                                wantedsrobfriend(PTEMP[i][pMember], 0, 4);
                            }
                            else if(pl[0][3] > 1)
                            {
                                ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                                cdrob[0] = true;
                                SetTimerEx("RobsEnabledCD", 1800000, false, "d",0);
                                RobTickRTC[i] = 30;
                                robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 0, PTEMP[i][pMember], 4, ActorsRob[3]);
                                wantedsrobfriend(PTEMP[i][pMember], 0, 4);
                            }
                            else if(pl[0][4] > 1)
                            {
                                ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                                cdrob[0] = true;
                                SetTimerEx("RobsEnabledCD", 1800000, false, "d",0);
                                RobTickRTC[i] = 30;
                                robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 0, PTEMP[i][pMember], 4, ActorsRob[3]);
                                wantedsrobfriend(PTEMP[i][pMember], 0, 4);
                            }
                            else
                            {
                                SendClientMessage(i, COLOR_GREY, "Для начала ограбления нужно минимум 2 напарника");
                            }
                        }
                    }
                }
                continue;
            }
        }
        else if(PlayerToPoint(30,i,316.1089,-133.7254,999.6016) && RobInts[i] == 0)
        {
            if(cdrob[2] == false)
            {
                switch(PTEMP[i][pMember])
                {
                    case 5: pl[2][5]++;
                    case 6: pl[2][6]++;
                    case 14: pl[2][7]++;
                    default: continue;
                }
                new PTA = GetPlayerCameraTargetActor(i),
                    keys,
                    updown,
                    leftright;
                GetPlayerKeys(i, keys, updown, leftright);
                if(PTA != INVALID_ACTOR_ID && keys & KEY_AIM)
                {
                    if(PTA != ActorsRob[2]) continue;
                    new PW = GetPlayerWeapon(i);
                    if(PW == 23 || PW == 24 || PW == 25 || PW == 29 || PW == 30 || PW == 31 || PW == 32)
                    {
                        if(pl[2][5] > 1)
                        {
                            ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                            cdrob[2] = true;
                            SetTimerEx("RobsEnabledCD", 1800000, false, "d",2);
                            RobTickRTC[i] = 30;
                            robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 1, PTEMP[i][pMember], 0, ActorsRob[2]);
                            wantedsrobfriend(PTEMP[i][pMember], 2, 0);
                        }
                        else if(pl[2][6] > 1)
                        {
                            ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                            cdrob[2] = true;
                            SetTimerEx("RobsEnabledCD", 1800000, false, "d",2);
                            RobTickRTC[i] = 30;
                            robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 1, PTEMP[i][pMember], 0, ActorsRob[2]);
                            wantedsrobfriend(PTEMP[i][pMember], 2, 0);
                        }
                        else if(pl[2][7] > 1)
                        {
                            ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                            cdrob[2] = true;
                            SetTimerEx("RobsEnabledCD", 1800000, false, "d",2);
                            RobTickRTC[i] = 30;
                            robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 1, PTEMP[i][pMember], 0, ActorsRob[2]);
                            wantedsrobfriend(PTEMP[i][pMember], 2, 0);
                        }
                        else
                        {
                            SendClientMessage(i, COLOR_GREY, "Для начала ограбления нужно минимум 2 напарника");
                        }
                    }
                }
            }
            continue;
        }
        else if(PlayerToPoint(30,i,295.4810,-40.2167,1001.5156) && RobInts[i] == 1)
        {
            if(cdrob[3] == false)
            {
                switch(PTEMP[i][pMember])
                {
                    case 5: pl[3][5]++;
                    case 6: pl[3][6]++;
                    case 14: pl[3][7]++;
                    default: continue;
                }
                new PTA = GetPlayerCameraTargetActor(i),
                    keys,
                    updown,
                    leftright;
                GetPlayerKeys(i, keys, updown, leftright);
                if(PTA != INVALID_ACTOR_ID && keys & KEY_AIM)
                {
                    if(PTA != ActorsRob[1]) continue;
                    new PW = GetPlayerWeapon(i);
                    if(PW == 23 || PW == 24 || PW == 25 || PW == 29 || PW == 30 || PW == 31 || PW == 32)
                    {
                        if(pl[3][5] > 1)
                        {
                            ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                            cdrob[3] = true;
                            SetTimerEx("RobsEnabledCD", 1800000, false, "d",3);
                            RobTickRTC[i] = 30;
                            robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 1, PTEMP[i][pMember], 1, ActorsRob[1]);
                            wantedsrobfriend(PTEMP[i][pMember], 3, 1);
                        }
                        else if(pl[3][6] > 1)
                        {
                            ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                            cdrob[3] = true;
                            SetTimerEx("RobsEnabledCD", 1800000, false, "d",3);
                            RobTickRTC[i] = 30;
                            robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 1, PTEMP[i][pMember], 1, ActorsRob[1]);
                            wantedsrobfriend(PTEMP[i][pMember], 3, 1);
                        }
                        else if(pl[3][7] > 1)
                        {
                            ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                            cdrob[3] = true;
                            SetTimerEx("RobsEnabledCD", 1800000, false, "d",3);
                            RobTickRTC[i] = 30;
                            robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 1, PTEMP[i][pMember], 1, ActorsRob[1]);
                            wantedsrobfriend(PTEMP[i][pMember], 3, 1);
                        }
                        else
                        {
                            SendClientMessage(i, COLOR_GREY, "Для начала ограбления нужно минимум 2 напарника");
                        }
                    }
                }
            }
            continue;
        }
        else if(PlayerToPoint(30,i,296.8526,-82.5276,1001.5156) && RobInts[i] == 2)
        {
            if(cdrob[4] == false)
            {
                switch(PTEMP[i][pMember])
                {
                    case 5: pl[4][5]++;
                    case 6: pl[4][6]++;
                    case 14: pl[4][7]++;
                    default: continue;
                }
                new PTA = GetPlayerCameraTargetActor(i),
                    keys,
                    updown,
                    leftright;
                GetPlayerKeys(i, keys, updown, leftright);
                if(PTA != INVALID_ACTOR_ID && keys & KEY_AIM)
                {
                    if(PTA != ActorsRob[0]) continue;
                    new PW = GetPlayerWeapon(i);
                    if(PW == 23 || PW == 24 || PW == 25 || PW == 29 || PW == 30 || PW == 31 || PW == 32)
                    {
                        if(pl[4][5] > 1)
                        {
                            ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                            cdrob[4] = true;
                            SetTimerEx("RobsEnabledCD", 1800000, false, "d",4);
                            RobTickRTC[i] = 30;
                            robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 1, PTEMP[i][pMember], 2, ActorsRob[0]);
                            wantedsrobfriend(PTEMP[i][pMember], 4, 2);
                        }
                        else if(pl[4][6] > 1)
                        {
                            ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                            cdrob[4] = true;
                            SetTimerEx("RobsEnabledCD", 1800000, false, "d",4);
                            RobTickRTC[i] = 30;
                            robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 1, PTEMP[i][pMember], 2, ActorsRob[0]);
                            wantedsrobfriend(PTEMP[i][pMember], 4, 2);
                        }
                        else if(pl[4][7] > 1)
                        {
                            ApplyActorAnimation(PTA, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0);
                            cdrob[4] = true;
                            SetTimerEx("RobsEnabledCD", 1800000, false, "d",4);
                            RobTickRTC[i] = 30;
                            robscdtimer[i] = SetTimerEx("RobTickRTSC", 1000, true, "ddddi", i, 1, PTEMP[i][pMember], 2, ActorsRob[0]);
                            wantedsrobfriend(PTEMP[i][pMember], 4, 2);
                        }
                        else
                        {
                            SendClientMessage(i, COLOR_GREY, "Для начала ограбления нужно минимум 2 напарника");
                        }
                    }
                }
            }
            continue;
        }
    }
}
 
Сверху