Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public TakeOver()
- {
- foreach(Player, i)
- {
- if(IsPlayerInArea(i, 54.085784, 1770.567382, 198.085784, 1970.567382) && gTeam[i] == USA)
- {
- if(CapturedBy != 1 )
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if(IfCapture[0] == 1 ) return 1;
- IfCapture[0] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy = 1;
- if(CapturedBy != 1) SendChatMessage("~b~Team U.S.A took over `The area51`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The area51 ");
- GangZoneHideForAll(area51);
- GangZoneShowForAll(area51G, COLOR_BLUE);
- GangZoneHideForAll(area51U);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, 54.085784, 1770.567382, 198.085784, 1970.567382) && gTeam[i] == RUSSIA)
- {
- if(CapturedBy != 2)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[0] == 1 ) return 1;
- IfCapture[0] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy", 2);
- gscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy = 2;
- if(CapturedBy != 1) SendChatMessage("Team Russia took over `The area51`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The area51 ");
- GangZoneHideForAll(area51);
- GangZoneShowForAll(area51G, ORANGE);
- GangZoneHideForAll(area51U);
- dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, 54.085784, 1770.567382, 198.085784, 1970.567382) && gTeam[i] == MEXICO)
- {
- if(CapturedBy != 3)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[0] == 1 ) return 1;
- IfCapture[0] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy", 3);
- gscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy = 3;
- if(CapturedBy != 1) SendChatMessage("~r~Team Mexico took over `The area51`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The area51 ");
- GangZoneHideForAll(area51);
- GangZoneShowForAll(area51G, RED);
- GangZoneHideForAll(area51U);
- dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- }
- foreach(Player, i)
- {
- if(IsPlayerInArea(i, -394.360748, 1425.049926, -234.360748, 1601.049926) && gTeam[i] == USA)
- {
- if(CapturedBy2 != 1)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[2] == 1 ) return 1;
- IfCapture[2] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy", 1);
- gscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy2 = 1;
- if(CapturedBy != 2) SendChatMessage("~b~Team U.S.A took over `Bigear`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The Bigear ");
- GangZoneHideForAll(bigear);
- GangZoneShowForAll(bigearG, BLUE);
- GangZoneHideForAll(bigearU);
- dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, -394.360748, 1425.049926, -234.360748, 1601.049926) && gTeam[i] == RUSSIA)
- {
- if(CapturedBy2 != 2)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[2] == 1 ) return 1;
- IfCapture[2] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy2", 2);
- gscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy2 = 2;
- if(CapturedBy != 1)SendChatMessage("Team Russia took over `Bigear`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The Bigear ");
- GangZoneHideForAll(bigear);
- GangZoneShowForAll(bigearG, ORANGE);
- GangZoneHideForAll(bigearU);
- dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i,-394.360748, 1425.049926, -234.360748, 1601.049926) && gTeam[i] == MEXICO)
- {
- if(CapturedBy2 != 3)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[2] == 1 ) return 1;
- IfCapture[2] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy2", 3);
- gscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy2 = 3;
- if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `Bigear`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The Bigear ");
- GangZoneHideForAll(bigear);
- GangZoneShowForAll(bigearG, RED);
- GangZoneHideForAll(bigearU);
- dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- }
- foreach(Player, i)
- {
- if(IsPlayerInArea(i, -306.418304, 2610.056152, -146.418304, 2786.056152) && gTeam[i] == USA)
- {
- if(CapturedBy3 != 1)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[3] == 1 ) return 1;
- IfCapture[3] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy3", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy3 = 1;
- if(CapturedBy != 2)SendChatMessage("~b~Team U.S.A took over `The chicken`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The chicken ");
- GangZoneHideForAll(chicken);
- GangZoneShowForAll(chickenU, BLUE);
- GangZoneHideForAll(chickenG);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, -306.418304, 2610.056152, -146.418304, 2786.056152) && gTeam[i] == RUSSIA)
- {
- if(CapturedBy3 != 2)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[3] == 1 ) return 1;
- IfCapture[3] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy3", 2);
- gscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy3 = 2;
- if(CapturedBy != 1)SendChatMessage("Team Russia took over `The chicken`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The chicken ");
- GangZoneHideForAll(chicken);
- GangZoneShowForAll(chickenG, ORANGE);
- GangZoneHideForAll(chickenU);
- dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, -306.418304, 2610.056152, -146.418304, 2786.056152) && gTeam[i] == MEXICO)
- {
- if(CapturedBy3 != 3)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[3] == 1 ) return 1;
- IfCapture[3] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy3", 3);
- gscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The chicken ");
- CapturedBy3 = 3;
- if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `The chicken`");
- GangZoneHideForAll(chicken);
- GangZoneShowForAll(chickenG, RED);
- GangZoneHideForAll(chickenU);
- dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- }
- foreach(Player, i)
- {
- if(IsPlayerInArea(i, -101.169105, 2274.128173, 50.830894, 2442.128173) && gTeam[i] == USA)
- {
- if(CapturedBy4 != 1)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[4] == 1 ) return 1;
- IfCapture[4] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy4", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy4 = 1;
- if(CapturedBy != 2)SendChatMessage("~b~Team U.S.A took over `The snakefarm`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The snakefarm ");
- GangZoneHideForAll(snakefarm);
- GangZoneShowForAll(snakefarmU, BLUE);
- GangZoneHideForAll(snakefarmG);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, -101.169105, 2274.128173, 50.830894, 2442.128173) && gTeam[i] == RUSSIA)
- {
- if(CapturedBy4 != 2)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[4] == 1 ) return 1;
- IfCapture[4] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy4", 2);
- gscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy4 = 2;
- if(CapturedBy != 1)SendChatMessage("Team Russia took over `The snakefarm`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The snakefarm ");
- GangZoneHideForAll(snakefarm);
- GangZoneShowForAll(snakefarmU, ORANGE);
- GangZoneHideForAll(snakefarmG);
- dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, -101.169105, 2274.128173, 50.830894, 2442.128173) && gTeam[i] == MEXICO)
- {
- if(CapturedBy4 != 3)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[4] == 1 ) return 1;
- IfCapture[4] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy4", 3);
- gscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy4 = 3;
- if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `The snakefarm`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The snakefarm ");
- GangZoneHideForAll(snakefarm);
- GangZoneShowForAll(snakefarmU, RED);
- GangZoneHideForAll(snakefarmG);
- dini_IntSet("/Variables/Variables.ini", "gscore", gscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- }
- foreach(Player, i)
- {
- if(IsPlayerInArea(i, -885.435729, 1264.459228, -757.435729, 1448.459228) && gTeam[i] == USA)
- {
- if(CapturedBy5 != 1)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[5] == 1 ) return 1;
- IfCapture[5] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy5", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy5 = 1;
- if(CapturedBy != 1)SendChatMessage("~b~Team U.S.A took over `The bridge`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The bridge ");
- GangZoneHideForAll(bridge);
- GangZoneShowForAll(bridgeU, BLUE);
- GangZoneHideForAll(bridgeG);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, -885.435729, 1264.459228, -757.435729, 1448.459228) && gTeam[i] == RUSSIA)
- {
- if(CapturedBy5 != 2)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[5] == 1 ) return 1;
- IfCapture[5] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy5", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy5 = 2;
- if(CapturedBy != 1)SendChatMessage("Team Russia took over `The bridge`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The bridge ");
- GangZoneHideForAll(bridge);
- GangZoneShowForAll(bridgeG, ORANGE);
- GangZoneHideForAll(bridgeU);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, -885.435729, 1264.459228, -757.435729, 1448.459228) && gTeam[i] == MEXICO)
- {
- if(CapturedBy5 != 3)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[5] == 1 ) return 1;
- IfCapture[5] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy5", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy5 = 3;
- if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `The bridge`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The bridge ");
- GangZoneHideForAll(bridge);
- GangZoneShowForAll(bridgeG, RED);
- GangZoneHideForAll(bridgeU);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- }
- foreach(Player, i)
- {
- if(IsPlayerInArea(i, -875.840148, 1976.008300, -571.840148, 2104.008300) && gTeam[i] == USA)
- {
- if(CapturedBy6 != 1)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[6] == 1 ) return 1;
- IfCapture[6] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy5", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy6 = 1;
- if(CapturedBy != 2)SendChatMessage("~b~Team U.S.A took over `The dam`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The dam ");
- GangZoneHideForAll(dam);
- GangZoneShowForAll(damG, BLUE);
- GangZoneHideForAll(damU);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, -875.840148, 1976.008300, -571.840148, 2104.008300) && gTeam[i] == RUSSIA)
- {
- if(CapturedBy6 != 2)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[6] == 1 ) return 1;
- IfCapture[6] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy6", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy6 = 2;
- if(CapturedBy != 1)SendChatMessage("Team Russia took over `The dam`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The dam ");
- GangZoneHideForAll(dam);
- GangZoneShowForAll(damG, ORANGE);
- GangZoneHideForAll(damU);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, -875.840148, 1976.008300, -571.840148, 2104.008300) && gTeam[i] == MEXICO)
- {
- if(CapturedBy6 != 3)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[6] == 1 ) return 1;
- IfCapture[6] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy6", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy6 = 3;
- if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `The dam`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The dam ");
- GangZoneHideForAll(dam);
- GangZoneShowForAll(damG, RED);
- GangZoneHideForAll(damU);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- foreach(Player, i)
- {
- if(IsPlayerInArea(i, -620.444274, 1137.002319, -428.444274, 1257.002319) && gTeam[i] == USA)
- {
- if(CapturedBy7 != 1)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[7] == 1 ) return 1;
- IfCapture[7] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy7", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy7 = 1;
- if(CapturedBy != 2)SendChatMessage("~b~Team U.S.A took over `The trainbridge`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The trainbridge ");
- GangZoneHideForAll(trainbridge);
- GangZoneShowForAll(trainbridgeG, BLUE);
- GangZoneHideForAll(trainbridgeU);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, -620.444274, 1137.002319, -428.444274, 1257.002319) && gTeam[i] == RUSSIA)
- {
- if(CapturedBy7 != 2)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[7] == 1 ) return 1;
- IfCapture[7] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy7", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy7 = 2;
- if(CapturedBy != 1)SendChatMessage("Team Russia took over `The trainbridge`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The trainbridge ");
- GangZoneHideForAll(trainbridge);
- GangZoneShowForAll(trainbridgeG, ORANGE);
- GangZoneHideForAll(trainbridgeU);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, -620.444274, 1137.002319, -428.444274, 1257.002319) && gTeam[i] == MEXICO)
- {
- if(CapturedBy7 != 3)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[7] == 1 ) return 1;
- IfCapture[7] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy7", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy7 = 3;
- if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `The trainbridge`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The trainbridge ");
- GangZoneHideForAll(trainbridge);
- GangZoneShowForAll(trainbridgeG, RED);
- GangZoneHideForAll(trainbridgeU);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- foreach(Player, i)
- {
- if(IsPlayerInArea(i, -454.197692, 2162.090332, -334.197692, 2314.090332) && gTeam[i] == USA)
- {
- if(CapturedBy8 != 1)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[8] == 1 ) return 1;
- IfCapture[8] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy8", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy8 = 1;
- if(CapturedBy != 2)SendChatMessage("~b~Team U.S.A took over `The village`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team U.S.A Captured The village ");
- GangZoneHideForAll(village);
- GangZoneShowForAll(villageG, BLUE);
- GangZoneHideForAll(villageU);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, -454.197692, 2162.090332, -334.197692, 2314.090332) && gTeam[i] == RUSSIA)
- {
- if(CapturedBy8 != 2)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[8] == 1 ) return 1;
- IfCapture[8] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy8", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy8 = 2;
- if(CapturedBy != 1)SendChatMessage("Team Russia took over `The village`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Russia Captured The village ");
- GangZoneHideForAll(village);
- GangZoneShowForAll(villageG, ORANGE);
- GangZoneHideForAll(villageU);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- else if(IsPlayerInArea(i, -454.197692, 2162.090332, -334.197692, 2314.090332) && gTeam[i] == MEXICO)
- {
- if(CapturedBy8 != 3)
- {
- if ( !g_IsPlayerInTheSpecifiedZone[ i ] )
- {
- if ( g_PlayerInZoneCount > 1 ) return SendTextMessage( i, RED, "Only 1 person should be in a zone !" );
- g_IsPlayerInTheSpecifiedZone[ i ] = true;
- g_PlayerInZoneCount ++;
- if( IfCapture[8] == 1 ) return 1;
- IfCapture[8] = 0;
- dini_IntSet("/Variables/Variables.ini", "CapturedBy7", 1);
- uscore++;
- GivePlayerMoney(i, 500);
- SetPlayerScore(i, GetPlayerScore(i) + 1);
- SendTextMessage(i,RED," Good Job! You took over an area, You get +1 score and $500");
- CapturedBy8 = 3;
- if(CapturedBy != 1)SendChatMessage("~r~Team Mexico took over `The village`");
- IRC_GroupSay(gGroupID,IRC_CHANNEL,"1,8 Team Mexico Captured The village ");
- GangZoneHideForAll(village);
- GangZoneShowForAll(villageG, RED);
- GangZoneHideForAll(villageU);
- dini_IntSet("/Variables/Variables.ini", "uscore", uscore);
- CheckForLevelUpdate(i);
- }
- }
- }
- }
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment