Advertisement
Guest User

Untitled

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