Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 78.11 KB | None | 0 0
  1. //==============================================================================
  2. public OnPlayerStateChange(playerid, newstate, oldstate)
  3. {
  4.     new Float:x,Float:y,Float:z;
  5.     GetPlayerPos(playerid,x,y,z);
  6.     if(newstate == PLAYER_STATE_DRIVER)
  7.     {
  8.         if(IsPlayerInVehicle(playerid, afpro))
  9.         {
  10.             switch(GetPlayerTeam(playerid))
  11.             {
  12.                 case TEAM_AFGHANISTAN:
  13.                 {
  14.                     SetPlayerPos(playerid,x,y,z+2.0);
  15.                     SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
  16.                     RemovePlayerFromVehicle(playerid);
  17.                 }
  18.                 case TEAM_GERMANY:
  19.                 {
  20.                     TogglePlayerAllDynamicCPs(playerid, 0);
  21.                     SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
  22.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  23.                     IsPrototyping{playerid } = true;
  24.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
  25.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  26.                 }
  27.                 case TEAM_PAKISTAN:
  28.                 {
  29.                     TogglePlayerAllDynamicCPs(playerid, 0);
  30.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  31.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  32.                     IsPrototyping{playerid } = true;
  33.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
  34.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  35.                 }
  36.                 case TEAM_CHINA:
  37.                 {
  38.                     TogglePlayerAllDynamicCPs(playerid, 0);
  39.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  40.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  41.                     IsPrototyping{playerid } = true;
  42.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
  43.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  44.                 }
  45.                 case TEAM_FRANCE:
  46.                 {
  47.                     TogglePlayerAllDynamicCPs(playerid, 0);
  48.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  49.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  50.                     IsPrototyping{playerid } = true;
  51.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
  52.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  53.                 }
  54.                 case TEAM_NETHERLANDS:
  55.                 {
  56.                     TogglePlayerAllDynamicCPs(playerid, 0);
  57.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  58.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  59.                     IsPrototyping{playerid } = true;
  60.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
  61.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  62.                 }
  63.                 case TEAM_AUS:
  64.                 {
  65.                     TogglePlayerAllDynamicCPs(playerid, 0);
  66.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  67.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  68.                     IsPrototyping{playerid } = true;
  69.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
  70.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  71.                 }
  72.                 case TEAM_INDIA:
  73.                 {
  74.                     TogglePlayerAllDynamicCPs(playerid, 0);
  75.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  76.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  77.                     IsPrototyping{playerid } = true;
  78.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
  79.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  80.                 }
  81.                 case TEAM_RUSSIA:
  82.                 {
  83.                     TogglePlayerAllDynamicCPs(playerid, 0);
  84.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  85.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  86.                     IsPrototyping{playerid } = true;
  87.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
  88.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  89.                 }
  90.                 case TEAM_USA:
  91.                 {
  92.                     TogglePlayerAllDynamicCPs(playerid, 0);
  93.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  94.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  95.                     IsPrototyping{playerid } = true;
  96.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
  97.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  98.                 }
  99.                 case TEAM_BRAZIL:
  100.                 {
  101.                     TogglePlayerAllDynamicCPs(playerid, 0);
  102.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  103.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  104.                     IsPrototyping{playerid } = true;
  105.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
  106.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  107.                 }
  108.                 case TEAM_UK:
  109.                 {
  110.                     TogglePlayerAllDynamicCPs(playerid, 0);
  111.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  112.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  113.                     IsPrototyping{playerid } = true;
  114.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
  115.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  116.                 }
  117.                 }
  118.             }
  119.         }
  120.         //GERMANY
  121.         else if(IsPlayerInVehicle(playerid, gerpro))
  122.         {
  123.             switch(GetPlayerTeam(playerid))
  124.             {
  125.                 case TEAM_GERMANY:
  126.                 {
  127.                     SetPlayerPos(playerid,x,y,z+2.0);
  128.                     SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
  129.                     RemovePlayerFromVehicle(playerid);
  130.                 }
  131.                 case TEAM_AFGHANISTAN:
  132.                 {
  133.                     TogglePlayerAllDynamicCPs(playerid, 0);
  134.                     SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
  135.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  136.                     IsPrototyping{playerid } = true;
  137.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
  138.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  139.                 }
  140.                 case TEAM_PAKISTAN:
  141.                 {
  142.                     TogglePlayerAllDynamicCPs(playerid, 0);
  143.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  144.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  145.                     IsPrototyping{playerid } = true;
  146.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
  147.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  148.                 }
  149.                 case TEAM_CHINA:
  150.                 {
  151.                     TogglePlayerAllDynamicCPs(playerid, 0);
  152.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  153.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  154.                     IsPrototyping{playerid } = true;
  155.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
  156.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  157.                 }
  158.                 case TEAM_FRANCE:
  159.                 {
  160.                     TogglePlayerAllDynamicCPs(playerid, 0);
  161.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  162.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  163.                     IsPrototyping{playerid } = true;
  164.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
  165.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  166.                 }
  167.                 case TEAM_NETHERLANDS:
  168.                 {
  169.                     TogglePlayerAllDynamicCPs(playerid, 0);
  170.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  171.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  172.                     IsPrototyping{playerid } = true;
  173.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
  174.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  175.                 }
  176.                 case TEAM_AUS:
  177.                 {
  178.                     TogglePlayerAllDynamicCPs(playerid, 0);
  179.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  180.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  181.                     IsPrototyping{playerid } = true;
  182.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
  183.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  184.                 }
  185.                 case TEAM_INDIA:
  186.                 {
  187.                     TogglePlayerAllDynamicCPs(playerid, 0);
  188.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  189.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  190.                     IsPrototyping{playerid } = true;
  191.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
  192.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  193.                 }
  194.                 case TEAM_RUSSIA:
  195.                 {
  196.                     TogglePlayerAllDynamicCPs(playerid, 0);
  197.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  198.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  199.                     IsPrototyping{playerid } = true;
  200.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
  201.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  202.                 }
  203.                 case TEAM_USA:
  204.                 {
  205.                     TogglePlayerAllDynamicCPs(playerid, 0);
  206.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  207.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  208.                     IsPrototyping{playerid } = true;
  209.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
  210.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  211.                 }
  212.                 case TEAM_BRAZIL:
  213.                 {
  214.                     TogglePlayerAllDynamicCPs(playerid, 0);
  215.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  216.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  217.                     IsPrototyping{playerid } = true;
  218.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
  219.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  220.                 }
  221.                 case TEAM_UK:
  222.                 {
  223.                     TogglePlayerAllDynamicCPs(playerid, 0);
  224.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  225.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  226.                     IsPrototyping{playerid } = true;
  227.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_GERMANY)
  228.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  229.                 }
  230.                 }
  231.             }
  232.         }
  233.         //PAKISTAN
  234.         else if(IsPlayerInVehicle(playerid, pakpro))
  235.         {
  236.             switch(GetPlayerTeam(playerid))
  237.             {
  238.                 case TEAM_PAKISTAN:
  239.                 {
  240.                     SetPlayerPos(playerid,x,y,z+2.0);
  241.                     SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
  242.                     RemovePlayerFromVehicle(playerid);
  243.                 }
  244.                 case TEAM_AFGHANISTAN:
  245.                 {
  246.                     TogglePlayerAllDynamicCPs(playerid, 0);
  247.                     SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
  248.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  249.                     IsPrototyping{playerid } = true;
  250.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_PAKISTAN)
  251.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  252.                 }
  253.                 case TEAM_GERMANY:
  254.                 {
  255.                     TogglePlayerAllDynamicCPs(playerid, 0);
  256.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  257.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  258.                     IsPrototyping{playerid } = true;
  259.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_PAKISTAN)
  260.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  261.                 }
  262.                 case TEAM_CHINA:
  263.                 {
  264.                     TogglePlayerAllDynamicCPs(playerid, 0);
  265.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  266.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  267.                     IsPrototyping{playerid } = true;
  268.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_PAKISTAN)
  269.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  270.                 }
  271.                 case TEAM_FRANCE:
  272.                 {
  273.                     TogglePlayerAllDynamicCPs(playerid, 0);
  274.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  275.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  276.                     IsPrototyping{playerid } = true;
  277.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_PAKISTAN)
  278.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  279.                 }
  280.                 case TEAM_NETHERLANDS:
  281.                 {
  282.                     TogglePlayerAllDynamicCPs(playerid, 0);
  283.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  284.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  285.                     IsPrototyping{playerid } = true;
  286.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_PAKISTAN)
  287.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  288.                 }
  289.                 case TEAM_AUS:
  290.                 {
  291.                     TogglePlayerAllDynamicCPs(playerid, 0);
  292.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  293.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  294.                     IsPrototyping{playerid } = true;
  295.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_PAKISTAN)
  296.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  297.                 }
  298.                 case TEAM_INDIA:
  299.                 {
  300.                     TogglePlayerAllDynamicCPs(playerid, 0);
  301.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  302.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  303.                     IsPrototyping{playerid } = true;
  304.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_PAKISTAN)
  305.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  306.                 }
  307.                 case TEAM_RUSSIA:
  308.                 {
  309.                     TogglePlayerAllDynamicCPs(playerid, 0);
  310.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  311.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  312.                     IsPrototyping{playerid } = true;
  313.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_PAKISTAN)
  314.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  315.                 }
  316.                 case TEAM_USA:
  317.                 {
  318.                     TogglePlayerAllDynamicCPs(playerid, 0);
  319.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  320.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  321.                     IsPrototyping{playerid } = true;
  322.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_PAKISTAN)
  323.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  324.                 }
  325.                 case TEAM_BRAZIL:
  326.                 {
  327.                     TogglePlayerAllDynamicCPs(playerid, 0);
  328.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  329.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  330.                     IsPrototyping{playerid } = true;
  331.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_PAKISTAN)
  332.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  333.                 }
  334.                 case TEAM_UK:
  335.                 {
  336.                     TogglePlayerAllDynamicCPs(playerid, 0);
  337.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  338.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  339.                     IsPrototyping{playerid } = true;
  340.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_PAKISTAN)
  341.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  342.                 }
  343.                 }
  344.             }
  345.         }
  346.         //CHINA
  347.         else if(IsPlayerInVehicle(playerid, chpro))
  348.         {
  349.             switch(GetPlayerTeam(playerid))
  350.             {
  351.                 case TEAM_CHINA:
  352.                 {
  353.                     SetPlayerPos(playerid,x,y,z+2.0);
  354.                     SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
  355.                     RemovePlayerFromVehicle(playerid);
  356.                 }
  357.                 case TEAM_AFGHANISTAN:
  358.                 {
  359.                     TogglePlayerAllDynamicCPs(playerid, 0);
  360.                     SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
  361.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  362.                     IsPrototyping{playerid } = true;
  363.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_CHINA)
  364.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  365.                 }
  366.                 case TEAM_GERMANY:
  367.                 {
  368.                     TogglePlayerAllDynamicCPs(playerid, 0);
  369.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  370.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  371.                     IsPrototyping{playerid } = true;
  372.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_CHINA)
  373.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  374.                 }
  375.                 case TEAM_PAKISTAN:
  376.                 {
  377.                     TogglePlayerAllDynamicCPs(playerid, 0);
  378.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  379.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  380.                     IsPrototyping{playerid } = true;
  381.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_CHINA)
  382.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  383.                 }
  384.                 case TEAM_FRANCE:
  385.                 {
  386.                     TogglePlayerAllDynamicCPs(playerid, 0);
  387.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  388.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  389.                     IsPrototyping{playerid } = true;
  390.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_CHINA)
  391.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  392.                 }
  393.                 case TEAM_NETHERLANDS:
  394.                 {
  395.                     TogglePlayerAllDynamicCPs(playerid, 0);
  396.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  397.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  398.                     IsPrototyping{playerid } = true;
  399.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_CHINA)
  400.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  401.                 }
  402.                 case TEAM_AUS:
  403.                 {
  404.                     TogglePlayerAllDynamicCPs(playerid, 0);
  405.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  406.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  407.                     IsPrototyping{playerid } = true;
  408.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_CHINA)
  409.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  410.                 }
  411.                 case TEAM_INDIA:
  412.                 {
  413.                     TogglePlayerAllDynamicCPs(playerid, 0);
  414.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  415.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  416.                     IsPrototyping{playerid } = true;
  417.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_CHINA)
  418.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  419.                 }
  420.                 case TEAM_RUSSIA:
  421.                 {
  422.                     TogglePlayerAllDynamicCPs(playerid, 0);
  423.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  424.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  425.                     IsPrototyping{playerid } = true;
  426.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_CHINA)
  427.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  428.                 }
  429.                 case TEAM_USA:
  430.                 {
  431.                     TogglePlayerAllDynamicCPs(playerid, 0);
  432.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  433.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  434.                     IsPrototyping{playerid } = true;
  435.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_CHINA)
  436.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  437.                 }
  438.                 case TEAM_BRAZIL:
  439.                 {
  440.                     TogglePlayerAllDynamicCPs(playerid, 0);
  441.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  442.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  443.                     IsPrototyping{playerid } = true;
  444.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_CHINA)
  445.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  446.                 }
  447.                 case TEAM_UK:
  448.                 {
  449.                     TogglePlayerAllDynamicCPs(playerid, 0);
  450.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  451.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  452.                     IsPrototyping{playerid } = true;
  453.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_CHINA)
  454.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  455.                 }
  456.                 }
  457.             }
  458.         }
  459.         //FRANCE
  460.         else if(IsPlayerInVehicle(playerid, frpro))
  461.         {
  462.             switch(GetPlayerTeam(playerid))
  463.             {
  464.                 case TEAM_FRANCE:
  465.                 {
  466.                     SetPlayerPos(playerid,x,y,z+2.0);
  467.                     SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
  468.                     RemovePlayerFromVehicle(playerid);
  469.                 }
  470.                 case TEAM_AFGHANISTAN:
  471.                 {
  472.                     TogglePlayerAllDynamicCPs(playerid, 0);
  473.                     SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
  474.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  475.                     IsPrototyping{playerid } = true;
  476.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_FRANCE)
  477.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  478.                 }
  479.                 case TEAM_GERMANY:
  480.                 {
  481.                     TogglePlayerAllDynamicCPs(playerid, 0);
  482.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  483.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  484.                     IsPrototyping{playerid } = true;
  485.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_FRANCE)
  486.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  487.                 }
  488.                 case TEAM_PAKISTAN:
  489.                 {
  490.                     TogglePlayerAllDynamicCPs(playerid, 0);
  491.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  492.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  493.                     IsPrototyping{playerid } = true;
  494.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_FRANCE)
  495.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  496.                 }
  497.                 case TEAM_CHINA:
  498.                 {
  499.                     TogglePlayerAllDynamicCPs(playerid, 0);
  500.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  501.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  502.                     IsPrototyping{playerid } = true;
  503.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_FRANCE)
  504.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  505.                 }
  506.                 case TEAM_NETHERLANDS:
  507.                 {
  508.                     TogglePlayerAllDynamicCPs(playerid, 0);
  509.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  510.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  511.                     IsPrototyping{playerid } = true;
  512.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_FRANCE)
  513.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  514.                 }
  515.                 case TEAM_AUS:
  516.                 {
  517.                     TogglePlayerAllDynamicCPs(playerid, 0);
  518.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  519.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  520.                     IsPrototyping{playerid } = true;
  521.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_FRANCE)
  522.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  523.                 }
  524.                 case TEAM_INDIA:
  525.                 {
  526.                     TogglePlayerAllDynamicCPs(playerid, 0);
  527.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  528.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  529.                     IsPrototyping{playerid } = true;
  530.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_FRANCE)
  531.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  532.                 }
  533.                 case TEAM_RUSSIA:
  534.                 {
  535.                     TogglePlayerAllDynamicCPs(playerid, 0);
  536.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  537.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  538.                     IsPrototyping{playerid } = true;
  539.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_FRANCE)
  540.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  541.                 }
  542.                 case TEAM_USA:
  543.                 {
  544.                     TogglePlayerAllDynamicCPs(playerid, 0);
  545.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  546.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  547.                     IsPrototyping{playerid } = true;
  548.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_FRANCE)
  549.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  550.                 }
  551.                 case TEAM_BRAZIL:
  552.                 {
  553.                     TogglePlayerAllDynamicCPs(playerid, 0);
  554.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  555.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  556.                     IsPrototyping{playerid } = true;
  557.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_FRANCE)
  558.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  559.                 }
  560.                 case TEAM_UK:
  561.                 {
  562.                     TogglePlayerAllDynamicCPs(playerid, 0);
  563.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  564.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  565.                     IsPrototyping{playerid } = true;
  566.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_FRANCE)
  567.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  568.                 }
  569.                 }
  570.             }
  571.         }
  572.         //NETHERLANDS
  573.         else if(IsPlayerInVehicle(playerid, ntpro))
  574.         {
  575.             switch(GetPlayerTeam(playerid))
  576.             {
  577.                 case TEAM_NETHERLANDS:
  578.                 {
  579.                     SetPlayerPos(playerid,x,y,z+2.0);
  580.                     SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
  581.                     RemovePlayerFromVehicle(playerid);
  582.                 }
  583.                 case TEAM_AFGHANISTAN:
  584.                 {
  585.                     TogglePlayerAllDynamicCPs(playerid, 0);
  586.                     SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
  587.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  588.                     IsPrototyping{playerid } = true;
  589.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
  590.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  591.                 }
  592.                 case TEAM_GERMANY:
  593.                 {
  594.                     TogglePlayerAllDynamicCPs(playerid, 0);
  595.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  596.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  597.                     IsPrototyping{playerid } = true;
  598.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
  599.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  600.                 }
  601.                 case TEAM_PAKISTAN:
  602.                 {
  603.                     TogglePlayerAllDynamicCPs(playerid, 0);
  604.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  605.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  606.                     IsPrototyping{playerid } = true;
  607.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
  608.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  609.                 }
  610.                 case TEAM_CHINA:
  611.                 {
  612.                     TogglePlayerAllDynamicCPs(playerid, 0);
  613.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  614.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  615.                     IsPrototyping{playerid } = true;
  616.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
  617.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  618.                 }
  619.                 case TEAM_FRANCE:
  620.                 {
  621.                     TogglePlayerAllDynamicCPs(playerid, 0);
  622.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  623.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  624.                     IsPrototyping{playerid } = true;
  625.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
  626.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  627.                 }
  628.                 case TEAM_AUS:
  629.                 {
  630.                     TogglePlayerAllDynamicCPs(playerid, 0);
  631.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  632.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  633.                     IsPrototyping{playerid } = true;
  634.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
  635.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  636.                 }
  637.                 case TEAM_INDIA:
  638.                 {
  639.                     TogglePlayerAllDynamicCPs(playerid, 0);
  640.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  641.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  642.                     IsPrototyping{playerid } = true;
  643.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
  644.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  645.                 }
  646.                 case TEAM_RUSSIA:
  647.                 {
  648.                     TogglePlayerAllDynamicCPs(playerid, 0);
  649.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  650.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  651.                     IsPrototyping{playerid } = true;
  652.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
  653.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  654.                 }
  655.                 case TEAM_USA:
  656.                 {
  657.                     TogglePlayerAllDynamicCPs(playerid, 0);
  658.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  659.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  660.                     IsPrototyping{playerid } = true;
  661.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
  662.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  663.                 }
  664.                 case TEAM_BRAZIL:
  665.                 {
  666.                     TogglePlayerAllDynamicCPs(playerid, 0);
  667.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  668.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  669.                     IsPrototyping{playerid } = true;
  670.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
  671.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  672.                 }
  673.                 case TEAM_UK:
  674.                 {
  675.                     TogglePlayerAllDynamicCPs(playerid, 0);
  676.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  677.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  678.                     IsPrototyping{playerid } = true;
  679.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
  680.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  681.                 }
  682.                 }
  683.             }
  684.         }
  685.         //INDIA
  686.         else if(IsPlayerInVehicle(playerid, inpro))
  687.         {
  688.             switch(GetPlayerTeam(playerid))
  689.             {
  690.                 case TEAM_INDIA:
  691.                 {
  692.                     SetPlayerPos(playerid,x,y,z+2.0);
  693.                     SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
  694.                     RemovePlayerFromVehicle(playerid);
  695.                 }
  696.                 case TEAM_AFGHANISTAN:
  697.                 {
  698.                     TogglePlayerAllDynamicCPs(playerid, 0);
  699.                     SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
  700.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  701.                     IsPrototyping{playerid } = true;
  702.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_INDIA)
  703.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  704.                 }
  705.                 case TEAM_GERMANY:
  706.                 {
  707.                     TogglePlayerAllDynamicCPs(playerid, 0);
  708.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  709.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  710.                     IsPrototyping{playerid } = true;
  711.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_INDIA)
  712.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  713.                 }
  714.                 case TEAM_PAKISTAN:
  715.                 {
  716.                     TogglePlayerAllDynamicCPs(playerid, 0);
  717.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  718.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  719.                     IsPrototyping{playerid } = true;
  720.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_INDIA)
  721.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  722.                 }
  723.                 case TEAM_CHINA:
  724.                 {
  725.                     TogglePlayerAllDynamicCPs(playerid, 0);
  726.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  727.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  728.                     IsPrototyping{playerid } = true;
  729.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_INDIA)
  730.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  731.                 }
  732.                 case TEAM_FRANCE:
  733.                 {
  734.                     TogglePlayerAllDynamicCPs(playerid, 0);
  735.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  736.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  737.                     IsPrototyping{playerid } = true;
  738.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_INDIA)
  739.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  740.                 }
  741.                 case TEAM_AUS:
  742.                 {
  743.                     TogglePlayerAllDynamicCPs(playerid, 0);
  744.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  745.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  746.                     IsPrototyping{playerid } = true;
  747.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_INDIA)
  748.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  749.                 }
  750.                 case TEAM_NETHERLANDS:
  751.                 {
  752.                     TogglePlayerAllDynamicCPs(playerid, 0);
  753.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  754.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  755.                     IsPrototyping{playerid } = true;
  756.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_INDIA)
  757.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  758.                 }
  759.                 case TEAM_RUSSIA:
  760.                 {
  761.                     TogglePlayerAllDynamicCPs(playerid, 0);
  762.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  763.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  764.                     IsPrototyping{playerid } = true;
  765.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_INDIA)
  766.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  767.                 }
  768.                 case TEAM_USA:
  769.                 {
  770.                     TogglePlayerAllDynamicCPs(playerid, 0);
  771.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  772.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  773.                     IsPrototyping{playerid } = true;
  774.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_INDIA)
  775.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  776.                 }
  777.                 case TEAM_BRAZIL:
  778.                 {
  779.                     TogglePlayerAllDynamicCPs(playerid, 0);
  780.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  781.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  782.                     IsPrototyping{playerid } = true;
  783.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_INDIA)
  784.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  785.                 }
  786.                 case TEAM_UK:
  787.                 {
  788.                     TogglePlayerAllDynamicCPs(playerid, 0);
  789.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  790.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  791.                     IsPrototyping{playerid } = true;
  792.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_INDIA)
  793.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  794.                 }
  795.                 }
  796.             }
  797.         }
  798.         //RUSSIA
  799.         else if(IsPlayerInVehicle(playerid, rupro))
  800.         {
  801.             switch(GetPlayerTeam(playerid))
  802.             {
  803.                 case TEAM_RUSSIA:
  804.                 {
  805.                     SetPlayerPos(playerid,x,y,z+2.0);
  806.                     SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
  807.                     RemovePlayerFromVehicle(playerid);
  808.                 }
  809.                 case TEAM_AFGHANISTAN:
  810.                 {
  811.                     TogglePlayerAllDynamicCPs(playerid, 0);
  812.                     SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
  813.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  814.                     IsPrototyping{playerid } = true;
  815.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_RUSSIA)
  816.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  817.                 }
  818.                 case TEAM_GERMANY:
  819.                 {
  820.                     TogglePlayerAllDynamicCPs(playerid, 0);
  821.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  822.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  823.                     IsPrototyping{playerid } = true;
  824.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_RUSSIA)
  825.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  826.                 }
  827.                 case TEAM_PAKISTAN:
  828.                 {
  829.                     TogglePlayerAllDynamicCPs(playerid, 0);
  830.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  831.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  832.                     IsPrototyping{playerid } = true;
  833.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_RUSSIA)
  834.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  835.                 }
  836.                 case TEAM_CHINA:
  837.                 {
  838.                     TogglePlayerAllDynamicCPs(playerid, 0);
  839.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  840.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  841.                     IsPrototyping{playerid } = true;
  842.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_RUSSIA)
  843.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  844.                 }
  845.                 case TEAM_FRANCE:
  846.                 {
  847.                     TogglePlayerAllDynamicCPs(playerid, 0);
  848.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  849.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  850.                     IsPrototyping{playerid } = true;
  851.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_RUSSIA)
  852.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  853.                 }
  854.                 case TEAM_AUS:
  855.                 {
  856.                     TogglePlayerAllDynamicCPs(playerid, 0);
  857.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  858.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  859.                     IsPrototyping{playerid } = true;
  860.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_RUSSIA)
  861.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  862.                 }
  863.                 case TEAM_NETHERLANDS:
  864.                 {
  865.                     TogglePlayerAllDynamicCPs(playerid, 0);
  866.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  867.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  868.                     IsPrototyping{playerid } = true;
  869.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_RUSSIA)
  870.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  871.                 }
  872.                 case TEAM_INDIA:
  873.                 {
  874.                     TogglePlayerAllDynamicCPs(playerid, 0);
  875.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  876.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  877.                     IsPrototyping{playerid } = true;
  878.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_RUSSIA)
  879.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  880.                 }
  881.                 case TEAM_USA:
  882.                 {
  883.                     TogglePlayerAllDynamicCPs(playerid, 0);
  884.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  885.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  886.                     IsPrototyping{playerid } = true;
  887.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_RUSSIA)
  888.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  889.                 }
  890.                 case TEAM_BRAZIL:
  891.                 {
  892.                     TogglePlayerAllDynamicCPs(playerid, 0);
  893.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  894.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  895.                     IsPrototyping{playerid } = true;
  896.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_RUSSIA)
  897.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  898.                 }
  899.                 case TEAM_UK:
  900.                 {
  901.                     TogglePlayerAllDynamicCPs(playerid, 0);
  902.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  903.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  904.                     IsPrototyping{playerid } = true;
  905.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_RUSSIA)
  906.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  907.                 }
  908.                 }
  909.             }
  910.         }
  911.         //USA
  912.         else if(IsPlayerInVehicle(playerid, uspro))
  913.         {
  914.             switch(GetPlayerTeam(playerid))
  915.             {
  916.                 case TEAM_USA:
  917.                 {
  918.                     SetPlayerPos(playerid,x,y,z+2.0);
  919.                     SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
  920.                     RemovePlayerFromVehicle(playerid);
  921.                 }
  922.                 case TEAM_AFGHANISTAN:
  923.                 {
  924.                     TogglePlayerAllDynamicCPs(playerid, 0);
  925.                     SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
  926.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  927.                     IsPrototyping{playerid } = true;
  928.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_USA)
  929.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  930.                 }
  931.                 case TEAM_GERMANY:
  932.                 {
  933.                     TogglePlayerAllDynamicCPs(playerid, 0);
  934.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  935.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  936.                     IsPrototyping{playerid } = true;
  937.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_USA)
  938.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  939.                 }
  940.                 case TEAM_PAKISTAN:
  941.                 {
  942.                     TogglePlayerAllDynamicCPs(playerid, 0);
  943.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  944.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  945.                     IsPrototyping{playerid } = true;
  946.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_USA)
  947.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  948.                 }
  949.                 case TEAM_CHINA:
  950.                 {
  951.                     TogglePlayerAllDynamicCPs(playerid, 0);
  952.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  953.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  954.                     IsPrototyping{playerid } = true;
  955.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_USA)
  956.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  957.                 }
  958.                 case TEAM_FRANCE:
  959.                 {
  960.                     TogglePlayerAllDynamicCPs(playerid, 0);
  961.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  962.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  963.                     IsPrototyping{playerid } = true;
  964.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_USA)
  965.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  966.                 }
  967.                 case TEAM_AUS:
  968.                 {
  969.                     TogglePlayerAllDynamicCPs(playerid, 0);
  970.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  971.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  972.                     IsPrototyping{playerid } = true;
  973.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_USA)
  974.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  975.                 }
  976.                 case TEAM_NETHERLANDS:
  977.                 {
  978.                     TogglePlayerAllDynamicCPs(playerid, 0);
  979.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  980.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  981.                     IsPrototyping{playerid } = true;
  982.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_USA)
  983.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  984.                 }
  985.                 case TEAM_INDIA:
  986.                 {
  987.                     TogglePlayerAllDynamicCPs(playerid, 0);
  988.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  989.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  990.                     IsPrototyping{playerid } = true;
  991.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_USA)
  992.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  993.                 }
  994.                 case TEAM_RUSSIA:
  995.                 {
  996.                     TogglePlayerAllDynamicCPs(playerid, 0);
  997.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  998.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  999.                     IsPrototyping{playerid } = true;
  1000.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_USA)
  1001.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1002.                 }
  1003.                 case TEAM_BRAZIL:
  1004.                 {
  1005.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1006.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1007.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1008.                     IsPrototyping{playerid } = true;
  1009.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_USA)
  1010.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1011.                 }
  1012.                 case TEAM_UK:
  1013.                 {
  1014.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1015.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1016.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1017.                     IsPrototyping{playerid } = true;
  1018.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_USA)
  1019.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1020.                 }
  1021.                 }
  1022.             }
  1023.         }
  1024.         //BRAZIL
  1025.         else if(IsPlayerInVehicle(playerid, brpro))
  1026.         {
  1027.             switch(GetPlayerTeam(playerid))
  1028.             {
  1029.                 case TEAM_BRAZIL:
  1030.                 {
  1031.                     SetPlayerPos(playerid,x,y,z+2.0);
  1032.                     SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
  1033.                     RemovePlayerFromVehicle(playerid);
  1034.                 }
  1035.                 case TEAM_AFGHANISTAN:
  1036.                 {
  1037.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1038.                     SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
  1039.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1040.                     IsPrototyping{playerid } = true;
  1041.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_BRAZIL)
  1042.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1043.                 }
  1044.                 case TEAM_GERMANY:
  1045.                 {
  1046.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1047.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1048.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1049.                     IsPrototyping{playerid } = true;
  1050.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_BRAZIL)
  1051.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1052.                 }
  1053.                 case TEAM_PAKISTAN:
  1054.                 {
  1055.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1056.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1057.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1058.                     IsPrototyping{playerid } = true;
  1059.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_BRAZIL)
  1060.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1061.                 }
  1062.                 case TEAM_CHINA:
  1063.                 {
  1064.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1065.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1066.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1067.                     IsPrototyping{playerid } = true;
  1068.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_BRAZIL)
  1069.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1070.                 }
  1071.                 case TEAM_FRANCE:
  1072.                 {
  1073.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1074.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1075.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1076.                     IsPrototyping{playerid } = true;
  1077.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_BRAZIL)
  1078.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1079.                 }
  1080.                 case TEAM_AUS:
  1081.                 {
  1082.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1083.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1084.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1085.                     IsPrototyping{playerid } = true;
  1086.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_BRAZIL)
  1087.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1088.                 }
  1089.                 case TEAM_NETHERLANDS:
  1090.                 {
  1091.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1092.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1093.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1094.                     IsPrototyping{playerid } = true;
  1095.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_BRAZIL)
  1096.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1097.                 }
  1098.                 case TEAM_INDIA:
  1099.                 {
  1100.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1101.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1102.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1103.                     IsPrototyping{playerid } = true;
  1104.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_BRAZIL)
  1105.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1106.                 }
  1107.                 case TEAM_RUSSIA:
  1108.                 {
  1109.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1110.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1111.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1112.                     IsPrototyping{playerid } = true;
  1113.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_BRAZIL)
  1114.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1115.                 }
  1116.                 case TEAM_USA:
  1117.                 {
  1118.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1119.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1120.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1121.                     IsPrototyping{playerid } = true;
  1122.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_BRAZIL)
  1123.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1124.                 }
  1125.                 case TEAM_UK:
  1126.                 {
  1127.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1128.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1129.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1130.                     IsPrototyping{playerid } = true;
  1131.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_BRAZIL)
  1132.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1133.                 }
  1134.                 }
  1135.             }
  1136.         }
  1137.         //UK
  1138.         else if(IsPlayerInVehicle(playerid, brpro))
  1139.         {
  1140.             switch(GetPlayerTeam(playerid))
  1141.             {
  1142.                 case TEAM_UK:
  1143.                 {
  1144.                     SetPlayerPos(playerid,x,y,z+2.0);
  1145.                     SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
  1146.                     RemovePlayerFromVehicle(playerid);
  1147.                 }
  1148.                 case TEAM_AFGHANISTAN:
  1149.                 {
  1150.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1151.                     SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
  1152.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1153.                     IsPrototyping{playerid } = true;
  1154.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_UK)
  1155.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1156.                 }
  1157.                 case TEAM_GERMANY:
  1158.                 {
  1159.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1160.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1161.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1162.                     IsPrototyping{playerid } = true;
  1163.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_UK)
  1164.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1165.                 }
  1166.                 case TEAM_PAKISTAN:
  1167.                 {
  1168.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1169.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1170.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1171.                     IsPrototyping{playerid } = true;
  1172.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_UK)
  1173.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1174.                 }
  1175.                 case TEAM_CHINA:
  1176.                 {
  1177.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1178.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1179.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1180.                     IsPrototyping{playerid } = true;
  1181.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_UK)
  1182.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1183.                 }
  1184.                 case TEAM_FRANCE:
  1185.                 {
  1186.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1187.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1188.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1189.                     IsPrototyping{playerid } = true;
  1190.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_UK)
  1191.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1192.                 }
  1193.                 case TEAM_AUS:
  1194.                 {
  1195.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1196.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1197.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1198.                     IsPrototyping{playerid } = true;
  1199.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_UK)
  1200.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1201.                 }
  1202.                 case TEAM_NETHERLANDS:
  1203.                 {
  1204.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1205.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1206.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1207.                     IsPrototyping{playerid } = true;
  1208.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_UK)
  1209.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1210.                 }
  1211.                 case TEAM_INDIA:
  1212.                 {
  1213.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1214.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1215.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1216.                     IsPrototyping{playerid } = true;
  1217.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_UK)
  1218.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1219.                 }
  1220.                 case TEAM_RUSSIA:
  1221.                 {
  1222.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1223.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1224.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1225.                     IsPrototyping{playerid } = true;
  1226.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_UK)
  1227.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1228.                 }
  1229.                 case TEAM_USA:
  1230.                 {
  1231.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1232.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1233.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1234.                     IsPrototyping{playerid } = true;
  1235.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_UK)
  1236.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1237.                 }
  1238.                 case TEAM_BRAZIL:
  1239.                 {
  1240.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1241.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1242.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1243.                     IsPrototyping{playerid } = true;
  1244.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_UK)
  1245.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1246.                 }
  1247.                 }
  1248.             }
  1249.         }
  1250.         //AUSTRALIA
  1251.         else if(IsPlayerInVehicle(playerid, brpro))
  1252.         {
  1253.             switch(GetPlayerTeam(playerid))
  1254.             {
  1255.                 case TEAM_AUS:
  1256.                 {
  1257.                     SetPlayerPos(playerid,x,y,z+2.0);
  1258.                     SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
  1259.                     RemovePlayerFromVehicle(playerid);
  1260.                 }
  1261.                 case TEAM_AFGHANISTAN:
  1262.                 {
  1263.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1264.                     SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
  1265.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1266.                     IsPrototyping{playerid } = true;
  1267.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AUS)
  1268.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1269.                 }
  1270.                 case TEAM_GERMANY:
  1271.                 {
  1272.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1273.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1274.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1275.                     IsPrototyping{playerid } = true;
  1276.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AUS)
  1277.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1278.                 }
  1279.                 case TEAM_PAKISTAN:
  1280.                 {
  1281.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1282.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1283.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1284.                     IsPrototyping{playerid } = true;
  1285.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AUS)
  1286.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1287.                 }
  1288.                 case TEAM_CHINA:
  1289.                 {
  1290.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1291.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1292.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1293.                     IsPrototyping{playerid } = true;
  1294.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AUS)
  1295.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1296.                 }
  1297.                 case TEAM_FRANCE:
  1298.                 {
  1299.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1300.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1301.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1302.                     IsPrototyping{playerid } = true;
  1303.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AUS)
  1304.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1305.                 }
  1306.                 case TEAM_UK:
  1307.                 {
  1308.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1309.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1310.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1311.                     IsPrototyping{playerid } = true;
  1312.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AUS)
  1313.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1314.                 }
  1315.                 case TEAM_NETHERLANDS:
  1316.                 {
  1317.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1318.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1319.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1320.                     IsPrototyping{playerid } = true;
  1321.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AUS)
  1322.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1323.                 }
  1324.                 case TEAM_INDIA:
  1325.                 {
  1326.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1327.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1328.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1329.                     IsPrototyping{playerid } = true;
  1330.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AUS)
  1331.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1332.                 }
  1333.                 case TEAM_RUSSIA:
  1334.                 {
  1335.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1336.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1337.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1338.                     IsPrototyping{playerid } = true;
  1339.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AUS)
  1340.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1341.                 }
  1342.                 case TEAM_USA:
  1343.                 {
  1344.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1345.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1346.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1347.                     IsPrototyping{playerid } = true;
  1348.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AUS)
  1349.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1350.                 }
  1351.                 case TEAM_BRAZIL:
  1352.                 {
  1353.                     TogglePlayerAllDynamicCPs(playerid, 0);
  1354.                     SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
  1355.                     GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
  1356.                     IsPrototyping{playerid } = true;
  1357.                     foreach (new i : Player)    if(GetPlayerTeam(i) == TEAM_AUS)
  1358.                     SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
  1359.                 }
  1360.             }
  1361.         }
  1362.     }
  1363.     return 1;
  1364. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement