SA-MP Forums Archive
Area is not taking over (rep+++) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Area is not taking over (rep+++) (/showthread.php?tid=341654)



Area is not taking over (rep+++) - iOmar - 11.05.2012

Guys when i enter into area, it say that stay in area for 30 seconds but i waited for 60 sec nothing happen. I don't get score and money. Area didn't change its colour in map. Please i need help.

My Codes:

pawn Код:
forward ZonesPay();
public ZonesPay()
{
    new monys[5];
    new mstr[100];
    monys[0] = 0;
    monys[1] = 0;                                 //i kno money, not moneys, not mony
    foreach(Player, i) {
        if( gTeam[i] == TEAM_PAKISTAN ) {
            if( CapturedBy == 1 ){ GivePlayerMoney(i, 100); monys[0]++; }
            if( CapturedBy2 == 1 ){ GivePlayerMoney(i, 100); monys[0]++; }
            if( CapturedBy3 == 1 ){ GivePlayerMoney(i, 100); monys[0]++; }
            if( CapturedBy4 == 1 ){ GivePlayerMoney(i, 100); monys[0]++; }
            format(mstr, 100, "You recieved %i money from captured areas.", monys[0]*100);
            SendClientMessage(i, COLOR_GREEN, mstr);
        }
        if( gTeam[i] == TEAM_GERMANY ) {
            if( CapturedBy == 2 ){ GivePlayerMoney(i, 100); monys[1]++; }
            if( CapturedBy2 == 2 ){ GivePlayerMoney(i, 100); monys[1]++; }
            if( CapturedBy3 == 2 ){ GivePlayerMoney(i, 100); monys[1]++; }
            if( CapturedBy4 == 2 ){ GivePlayerMoney(i, 100); monys[1]++; }
            format(mstr, 100, "You recieved %i money from captured areas.", monys[1]*100);
            SendClientMessage(i, COLOR_GREEN, mstr);
        }
        if( gTeam[i] == TEAM_USA ) {
            if( CapturedBy == 3 ){ GivePlayerMoney(i, 100); monys[2]++; }
            if( CapturedBy2 == 3 ){ GivePlayerMoney(i, 100); monys[2]++; }
            if( CapturedBy3 == 3 ){ GivePlayerMoney(i, 100); monys[2]++; }
            if( CapturedBy4 == 3 ){ GivePlayerMoney(i, 100); monys[2]++; }
            format(mstr, 100, "You recieved %i money from captured areas.", monys[2]*100);
            SendClientMessage(i, COLOR_GREEN, mstr);
        }
        if( gTeam[i] == TEAM_RUSSIA ) {
            if( CapturedBy == 4 ){ GivePlayerMoney(i, 100); monys[3]++; }
            if( CapturedBy2 == 4 ){ GivePlayerMoney(i, 100); monys[3]++; }
            if( CapturedBy3 == 4 ){ GivePlayerMoney(i, 100); monys[3]++; }
            if( CapturedBy4 == 4 ){ GivePlayerMoney(i, 100); monys[3]++; }
            format(mstr, 100, "You recieved %i money from captured areas.", monys[3]*100);
            SendClientMessage(i, COLOR_GREEN, mstr);
        }
        if( gTeam[i] == TEAM_INDIA ) {
            if( CapturedBy == 5 ){ GivePlayerMoney(i, 100); monys[4]++; }
            if( CapturedBy2 == 5 ){ GivePlayerMoney(i, 100); monys[4]++; }
            if( CapturedBy3 == 5 ){ GivePlayerMoney(i, 100); monys[4]++; }
            if( CapturedBy4 == 5 ){ GivePlayerMoney(i, 100); monys[4]++; }
            format(mstr, 100, "You recieved %i money from captured areas.", monys[1]*100);
            SendClientMessage(i, COLOR_GREEN, mstr);
        }
    }
    return 1;
}

pawn Код:
public AreaCheck()
{

    foreach(Player, i) {
        if(IsPlayerInArea(i, -1237.855, 1763.359, -1156.11, 1868.46)) {
            if(EnteredArea[i] == 0) {           // if he hasn't entered before
                if(gTeam[i] == TEAM_PAKISTAN && CapturedBy == 1 || gTeam[i] == TEAM_GERMANY && CapturedBy == 2 || gTeam[i] == TEAM_USA && CapturedBy == 3 || gTeam[i] == TEAM_RUSSIA && CapturedBy == 4 || gTeam[i] == TEAM_INDIA && CapturedBy == 5) {
                    SendClientMessage(i, COLOR_RED, "This area has already been captured by your team!");
                    EnteredArea[i] = 1;
                }
                else {
                    EnteredArea[i] = 1;         // He has entered
                    SendClientMessage(i,COLOR_ORANGE, "Stay In here for 30 seconds to take over the area!");
                    T1[i] = SetTimer("TakeOver",30000,0);
                    SendClientMessageToAll(COLOR_ORANGE, "The CluckinBell is being taken over!");
                }
            }
        }
        else {
            EnteredArea[i] = 0;                 // When he leaves, he's no longer in the area
            KillTimer(T1[i]);
        }
    }



    foreach(Player, i) {
        if(IsPlayerInArea(i, 485.822326, 751.018859, 741.822326, 991.018859)) {
            if(EnteredArea2[i] == 0) {           // if he hasn't entered before
                if(gTeam[i] == TEAM_PAKISTAN && CapturedBy2 == 1 || gTeam[i] == TEAM_GERMANY && CapturedBy2 == 2 || gTeam[i] == TEAM_USA && CapturedBy2 == 3 || gTeam[i] == TEAM_RUSSIA && CapturedBy2 == 4 || gTeam[i] == TEAM_INDIA && CapturedBy2 == 5) {
                    SendClientMessage(i, COLOR_RED, "This area has already been captured by your team!");
                    EnteredArea2[i] = 1;
                }
                else {
                    EnteredArea2[i] = 1;         // He has entered
                    SendClientMessage(i,COLOR_CON_GREEN, "Stay In here for 30 seconds to take over the area!");
                    T2[i] = SetTimer("TakeOver",30000,0);
                    SendClientMessageToAll(COLOR_CON_GREEN, "The Quarry is being taken over!");
                }
            }
        }
        else {
            EnteredArea2[i] = 0;                 // When he leaves, he's no longer in the area
            KillTimer(T2[i]);
        }
    }
   
     foreach(Player, i) {
        if(IsPlayerInArea(i, -945.9079, 1915.172, -525.5044, 2148.729)) {
            if(EnteredArea3[i] == 0) {            // if he hasn't entered before
                if(gTeam[i] == TEAM_PAKISTAN && CapturedBy3 == 1 || gTeam[i] == TEAM_GERMANY && CapturedBy3 == 2 || gTeam[i] == TEAM_USA && CapturedBy2 == 3 || gTeam[i] == TEAM_RUSSIA && CapturedBy3 == 4 || gTeam[i] == TEAM_INDIA && CapturedBy3 == 5) {
                    SendClientMessage(i, COLOR_RED, "This area has already been captured by your team!");
                    EnteredArea3[i] = 1;
                }
                else {
                    EnteredArea3[i] = 1;          // He has entered
                    SendClientMessage(i,COLOR_ORANGE, "Stay In here for 30 seconds to take over the area!");
                    T3[i] = SetTimer("TakeOver",30000,0);
                    SendClientMessageToAll(COLOR_ORANGE, "The damm is being taken over!");
                }
            }
        }
        else {
            EnteredArea3[i] = 0;                  // When he leaves, he's no longer in the area
            KillTimer(T3[i]);
        }
    }
   
    foreach(Player, i) {
        if(IsPlayerInArea(i, -525.5044, 2125.373, -291.9469, 2277.186)) {
            if(EnteredArea4[i] == 0) {           // if he hasn't entered before
                if(gTeam[i] == TEAM_PAKISTAN && CapturedBy4 == 1 || gTeam[i] == TEAM_GERMANY && CapturedBy4 == 2 || gTeam[i] == TEAM_USA && CapturedBy4 == 3 || gTeam[i] == TEAM_RUSSIA && CapturedBy4 == 4 || gTeam[i] == TEAM_INDIA && CapturedBy4 == 5) {
                    SendClientMessage(i, COLOR_RED, "This area has already been captured by your team!");
                    EnteredArea4[i] = 1;
                }
                else {
                    EnteredArea4[i] = 1;         // He has entered
                    SendClientMessage(i,COLOR_ORANGE, "Stay In here for 30 seconds to take over the area!");
                    T4[i] = SetTimer("TakeOver",30000,0);
                    SendClientMessageToAll(COLOR_ORANGE, "The old town is being taken over!");
                }
            }
        }
        else {
            EnteredArea4[i] = 0;                 // When he leaves, he's no longer in the area
            KillTimer(T4[i]);
        }
    }

    return 1;
}
pawn Код:
public TakeOver()
{
    foreach(Player, i) {
        if(IsPlayerInArea(i, -385.3699, 1506.446, -256.9133, 1646.58) && gTeam[i] == TEAM_PAKISTAN) {
            if(CapturedBy != 1) {
                if( IfCapture[0] == 1 ) return 1;
                IfCapture[0] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy", 1);
                uscore++;
//  SetTimer("ScoreText", 5000, 0);
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy = 1;
                if(CapturedBy != 1) SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team Pakistan have Captured the Cluckin Bell!");
                GangZoneHideForAll(Cluck);
                GangZoneShowForAll(CluckU, COLOR_GREEN);
                GangZoneHideForAll(CluckG);
                dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
            }
        }
        else if(IsPlayerInArea(i, -385.3699, 1506.446, -256.9133, 1646.58) && gTeam[i] == TEAM_GERMANY) {
            if(CapturedBy != 2) { {
                    if( IfCapture[0] == 1 ) return 1;
                    IfCapture[0] = 0;
                    dini_IntSet("/Variables/Variables.ini", "CapturedBy", 2);
                    gscore++;
// SetTimer("ScoreText", 5000, 0);
                    SetPlayerScore(i, GetPlayerScore(i) + 2);
                    CapturedBy = 2;
                    if(CapturedBy != 2) SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team GERMANY have captured the Cluckin Bell!");
                    GangZoneHideForAll(Cluck);
                    GangZoneShowForAll(CluckG, COLOR_ORANGE);
                    GangZoneHideForAll(CluckU);
                    dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
                }
            }
        }
        else if(IsPlayerInArea(i, -385.3699, 1506.446, -256.9133, 1646.58) && gTeam[i] == TEAM_USA) {
            if(CapturedBy != 3) { {
                    if( IfCapture[0] == 1 ) return 1;
                    IfCapture[0] = 0;
                    dini_IntSet("/Variables/Variables.ini", "CapturedBy", 3);
                    gscore++;
//  SetTimer("ScoreText", 5000, 0);
                    SetPlayerScore(i, GetPlayerScore(i) + 2);
                    CapturedBy = 3;
                    if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team USA have captured Cluckin Bell!");
                    GangZoneHideForAll(Cluck);
                    GangZoneShowForAll(CluckG, COLOR_BLUE);
                    GangZoneHideForAll(CluckU);
                    dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
                }
            }
        }
        else if(IsPlayerInArea(i, -385.3699, 1506.446, -256.9133, 1646.58) && gTeam[i] == TEAM_RUSSIA) {
            if(CapturedBy != 4) { {
                    if( IfCapture[0] == 1 ) return 1;
                    IfCapture[0] = 0;
                    dini_IntSet("/Variables/Variables.ini", "CapturedBy", 4);
                    gscore++;
//  SetTimer("ScoreText", 5000, 0);
                    SetPlayerScore(i, GetPlayerScore(i) + 2);
                    CapturedBy = 4;
                    if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team RUSSIA have captured Cluckin Bell!");
                    GangZoneHideForAll(Cluck);
                    GangZoneShowForAll(CluckG, COLOR_RED);
                    GangZoneHideForAll(CluckU);
                    dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
                }
            }
        }
        else if(IsPlayerInArea(i, -385.3699, 1506.446, -256.9133, 1646.58) && gTeam[i] == TEAM_INDIA) {
            if(CapturedBy != 5) { {
                    if( IfCapture[0] == 1 ) return 1;
                    IfCapture[0] = 0;
                    dini_IntSet("/Variables/Variables.ini", "CapturedBy", 5);
                    gscore++;
//  SetTimer("ScoreText", 5000, 0);
                    SetPlayerScore(i, GetPlayerScore(i) + 2);
                    CapturedBy = 5;
                    if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team INDIA have captured Cluckin Bell!");
                    GangZoneHideForAll(Cluck);
                    GangZoneShowForAll(CluckG, COLOR_YELLOW);
                    GangZoneHideForAll(CluckU);
                    dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
                }
            }
        }
    }

    foreach(Player, i) {
        if(IsPlayerInArea(i, -630.6053, 2510.743, -478.7929, 2662.556) && gTeam[i] == TEAM_PAKISTAN) {
            if(CapturedBy2 != 1) {
                if( IfCapture[2] == 1 ) return 1;
                IfCapture[2] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy2", 1);
                uscore++;
//SetTimer("ScoreText", 5000, 0);
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy2 = 1;
                if(CapturedBy != 2)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team Pakistan have captured the Damm!");
                GangZoneHideForAll(Cluck);
                GangZoneShowForAll(DU, COLOR_GREEN);
                GangZoneHideForAll(DG);
                dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
            }
        }
        else if(IsPlayerInArea(i, -630.6053, 2510.743, -478.7929, 2662.556) && gTeam[i] == TEAM_GERMANY) {
            if(CapturedBy2 != 2) {
                if( IfCapture[2] == 1 ) return 1;
                IfCapture[2] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy2", 2);
                gscore++;
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy2 = 2;
                if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team GERMANY have captured Damm!");
                GangZoneHideForAll(D);
                GangZoneShowForAll(DG, COLOR_ORANGE);
                GangZoneHideForAll(DU);
                dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
            }
        }
        else if(IsPlayerInArea(i, -630.6053, 2510.743, -478.7929, 2662.556) && gTeam[i] == TEAM_USA) {
            if(CapturedBy2 != 3) {
                if( IfCapture[2] == 1 ) return 1;
                IfCapture[2] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy2", 3);
                gscore++;
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy2 = 3;
                if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team USA have captured Damm!");
                GangZoneHideForAll(D);
                GangZoneShowForAll(DG, COLOR_BLUE);
                GangZoneHideForAll(DU);
                dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
            }
        }
        else if(IsPlayerInArea(i, -630.6053, 2510.743, -478.7929, 2662.556) && gTeam[i] == TEAM_RUSSIA) {
            if(CapturedBy2 != 4) {
                if( IfCapture[2] == 1 ) return 1;
                IfCapture[2] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy2", 4);
                gscore++;
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy2 = 4;
                if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team Russia have captured Damm!");
                GangZoneHideForAll(D);
                GangZoneShowForAll(DG, COLOR_RED);
                GangZoneHideForAll(DU);
                dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
            }
        }
        else if(IsPlayerInArea(i, -630.6053, 2510.743, -478.7929, 2662.556) && gTeam[i] == TEAM_INDIA) {
            if(CapturedBy2 != 5) {
                if( IfCapture[2] == 1 ) return 1;
                IfCapture[2] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy2", 5);
                gscore++;
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy2 = 5;
                if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team India have captured Damm!");
                GangZoneHideForAll(D);
                GangZoneShowForAll(DG, COLOR_YELLOW);
                GangZoneHideForAll(DU);
                dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
            }
        }
    }

    foreach(Player, i) {
        if(IsPlayerInArea(i, 268.5911, 2393.964, 467.115, 2604.166) && gTeam[i] == TEAM_PAKISTAN) {
            if(CapturedBy3 != 1) {
                if( IfCapture[3] == 1 ) return 1;
                IfCapture[3] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy3", 1);
//SetTimer("ScoreText", 5000, 0);
                uscore++;
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy3 = 1;
                if(CapturedBy != 2)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team Pakistan have captured the Old Town");
                GangZoneHideForAll(OT);
                GangZoneShowForAll(OTU, COLOR_GREEN);
                GangZoneHideForAll(OTG);
                dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
            }
        }
        else if(IsPlayerInArea(i, 268.5911, 2393.964, 467.115, 2604.166) && gTeam[i] == TEAM_GERMANY) {
            if(CapturedBy3 != 2) {
                if( IfCapture[3] == 1 ) return 1;
                IfCapture[3] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy3", 2);
//SetTimer("ScoreText", 5000, 0);
                gscore++;
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy3 = 2;
                if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team GERMANY have captured Old Town!");
                GangZoneHideForAll(OT);
                GangZoneShowForAll(OTG, COLOR_ORANGE);
                GangZoneHideForAll(OTU);
                dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
            }
        }
        else if(IsPlayerInArea(i, 268.5911, 2393.964, 467.115, 2604.166) && gTeam[i] == TEAM_USA) {
            if(CapturedBy3 != 3) {
                if( IfCapture[3] == 1 ) return 1;
                IfCapture[3] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy3", 3);
//SetTimer("ScoreText", 5000, 0);
                gscore++;
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy3 = 3;
                if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team USA have captured Old Town!");
                GangZoneHideForAll(OT);
                GangZoneShowForAll(OTG, COLOR_BLUE);
                GangZoneHideForAll(OTU);
                dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
            }
        }
        else if(IsPlayerInArea(i, 268.5911, 2393.964, 467.115, 2604.166) && gTeam[i] == TEAM_RUSSIA) {
            if(CapturedBy3 != 4) {
                if( IfCapture[3] == 1 ) return 1;
                IfCapture[3] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy3", 4);
//SetTimer("ScoreText", 5000, 0);
                gscore++;
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy3 = 4;
                if(CapturedBy != 1)SendClientMessageToAll(COLOR_CON_GREEN, "NEWS: Team Russia have captured Old Town!");
                GangZoneHideForAll(OT);
                GangZoneShowForAll(OTG, COLOR_RED);
                GangZoneHideForAll(OTU);
                dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
            }
        }
        else if(IsPlayerInArea(i, 268.5911, 2393.964, 467.115, 2604.166) && gTeam[i] == TEAM_INDIA) {
            if(CapturedBy3 != 5) {
                if( IfCapture[3] == 1 ) return 1;
                IfCapture[3] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy3", 5);
//SetTimer("ScoreText", 5000, 0);
                gscore++;
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy3 = 5;
                if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team INDIA have captured Old Town!");
                GangZoneHideForAll(OT);
                GangZoneShowForAll(OTG, COLOR_YELLOW);
                GangZoneHideForAll(OTU);
                dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
            }
        }
    }

    foreach(Player, i) {
        if(IsPlayerInArea(i, 747.384, 2031.95, 805.7734, 2090.34) && gTeam[i] == TEAM_PAKISTAN) {
            if(CapturedBy4 != 1) {
                if( IfCapture[4] == 1 ) return 1;
                IfCapture[4] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy4", 1);
                uscore++;
//SetTimer("ScoreText", 5000, 0);
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy4 = 1;
                if(CapturedBy != 2)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team PAKISTAN have captured the Quarry!");
                GangZoneHideForAll(Quarry);
                GangZoneShowForAll(QuarryU, COLOR_GREEN);
                GangZoneHideForAll(QuarryG);
                dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
            }
        }
        else if(IsPlayerInArea(i, 747.384, 2031.95, 805.7734, 2090.34) && gTeam[i] == TEAM_GERMANY) {
            if(CapturedBy4 != 2) {
                if( IfCapture[4] == 1 ) return 1;
                IfCapture[4] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy4", 2);
                gscore++;
//SetTimer("ScoreText", 5000, 0);
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy4 = 2;
                if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team GERMANY have captured Quarry!");
                GangZoneHideForAll(Quarry);
                GangZoneShowForAll(QuarryG, COLOR_ORANGE);
                GangZoneHideForAll(QuarryU);
                dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
            }
        }
        else if(IsPlayerInArea(i, 747.384, 2031.95, 805.7734, 2090.34) && gTeam[i] == TEAM_USA) {
            if(CapturedBy4 != 3) {
                if( IfCapture[4] == 1 ) return 1;
                IfCapture[4] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy4", 3);
                gscore++;
//SetTimer("ScoreText", 5000, 0);
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy4 = 3;
                if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team USA have captured Quarry!");
                GangZoneHideForAll(Quarry);
                GangZoneShowForAll(QuarryG, COLOR_BLUE);
                GangZoneHideForAll(QuarryU);
                dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
            }
        }
        else if(IsPlayerInArea(i, 747.384, 2031.95, 805.7734, 2090.34) && gTeam[i] == TEAM_RUSSIA) {
            if(CapturedBy4 != 4) {
                if( IfCapture[4] == 1 ) return 1;
                IfCapture[4] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy4", 4);
                gscore++;
//SetTimer("ScoreText", 5000, 0);
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy4 = 4;
                if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team Russia have captured Quarry!");
                GangZoneHideForAll(Quarry);
                GangZoneShowForAll(QuarryG, COLOR_RED);
                GangZoneHideForAll(QuarryU);
                dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
            }
        }
        else if(IsPlayerInArea(i, 747.384, 2031.95, 805.7734, 2090.34) && gTeam[i] == TEAM_INDIA) {
            if(CapturedBy4 != 5) {
                if( IfCapture[4] == 1 ) return 1;
                IfCapture[4] = 0;
                dini_IntSet("/Variables/Variables.ini", "CapturedBy4", 5);
                gscore++;
//SetTimer("ScoreText", 5000, 0);
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                CapturedBy4 = 5;
                if(CapturedBy != 1)SendClientMessageToAll(COLOR_ORANGE, "NEWS: Team India have captured Quarry!");
                GangZoneHideForAll(Quarry);
                GangZoneShowForAll(QuarryG, COLOR_YELLOW);
                GangZoneHideForAll(QuarryU);
                dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
            }
        }
    }
    return 1;
}



Re: Area is not taking over (rep+++) - iGetty - 11.05.2012

SetTimer("TakeOver",30000,0);

Should be

SetTimerEx("TakeOver",30000,0, "i", i);


Re: Area is not taking over (rep+++) - iOmar - 11.05.2012

Nothing happened... Is there short method to make capture system??


Re: Area is not taking over (rep+++) - iGetty - 11.05.2012

I'm not sure, search the tutorial and filterscript section and you may find something mate.

Good luck!


Re: Area is not taking over (rep+++) - iOmar - 11.05.2012

Thanks.
I am searching for area take over from 1month but i am not getting it


Re: Area is not taking over (rep+++) - iGetty - 11.05.2012

I will have a search for you too mate, but I'm sorry if I can't find anything! If there isn't any, I will try and make one myself.


Re: Area is not taking over (rep+++) - iOmar - 11.05.2012

ok thnx for helping bro


Re: Area is not taking over (rep+++) - iGetty - 11.05.2012

No problem iOmar.


Re: Area is not taking over (rep+++) - iOmar - 12.05.2012

Any One?? Please i beg u all. Help me!!!


Re: Area is not taking over (rep+++) - iOmar - 12.05.2012

Please helppppppppppppppppp!!!!!!!!!!!!!!!!!!!