Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==============================================================================
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(newstate == PLAYER_STATE_DRIVER)
- {
- if(IsPlayerInVehicle(playerid, afpro))
- {
- switch(GetPlayerTeam(playerid))
- {
- case TEAM_AFGHANISTAN:
- {
- SetPlayerPos(playerid,x,y,z+2.0);
- SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
- RemovePlayerFromVehicle(playerid);
- }
- case TEAM_GERMANY:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_PAKISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_CHINA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_FRANCE:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_NETHERLANDS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_AUS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_INDIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_RUSSIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_USA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_BRAZIL:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_UK:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AFGHANISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- }
- }
- }
- //GERMANY
- else if(IsPlayerInVehicle(playerid, gerpro))
- {
- switch(GetPlayerTeam(playerid))
- {
- case TEAM_GERMANY:
- {
- SetPlayerPos(playerid,x,y,z+2.0);
- SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
- RemovePlayerFromVehicle(playerid);
- }
- case TEAM_AFGHANISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_GERMANY)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_PAKISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_GERMANY)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_CHINA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_GERMANY)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_FRANCE:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_GERMANY)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_NETHERLANDS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_GERMANY)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_AUS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_GERMANY)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_INDIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_GERMANY)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_RUSSIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_GERMANY)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_USA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_GERMANY)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_BRAZIL:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_GERMANY)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_UK:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_GERMANY)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- }
- }
- }
- //PAKISTAN
- else if(IsPlayerInVehicle(playerid, pakpro))
- {
- switch(GetPlayerTeam(playerid))
- {
- case TEAM_PAKISTAN:
- {
- SetPlayerPos(playerid,x,y,z+2.0);
- SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
- RemovePlayerFromVehicle(playerid);
- }
- case TEAM_AFGHANISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_PAKISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_GERMANY:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_PAKISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_CHINA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_PAKISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_FRANCE:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_PAKISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_NETHERLANDS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_PAKISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_AUS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_PAKISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_INDIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_PAKISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_RUSSIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_PAKISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_USA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_PAKISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_BRAZIL:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_PAKISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_UK:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_PAKISTAN)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- }
- }
- }
- //CHINA
- else if(IsPlayerInVehicle(playerid, chpro))
- {
- switch(GetPlayerTeam(playerid))
- {
- case TEAM_CHINA:
- {
- SetPlayerPos(playerid,x,y,z+2.0);
- SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
- RemovePlayerFromVehicle(playerid);
- }
- case TEAM_AFGHANISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_CHINA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_GERMANY:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_CHINA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_PAKISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_CHINA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_FRANCE:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_CHINA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_NETHERLANDS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_CHINA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_AUS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_CHINA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_INDIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_CHINA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_RUSSIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_CHINA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_USA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_CHINA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_BRAZIL:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_CHINA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_UK:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_CHINA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- }
- }
- }
- //FRANCE
- else if(IsPlayerInVehicle(playerid, frpro))
- {
- switch(GetPlayerTeam(playerid))
- {
- case TEAM_FRANCE:
- {
- SetPlayerPos(playerid,x,y,z+2.0);
- SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
- RemovePlayerFromVehicle(playerid);
- }
- case TEAM_AFGHANISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_FRANCE)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_GERMANY:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_FRANCE)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_PAKISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_FRANCE)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_CHINA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_FRANCE)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_NETHERLANDS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_FRANCE)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_AUS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_FRANCE)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_INDIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_FRANCE)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_RUSSIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_FRANCE)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_USA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_FRANCE)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_BRAZIL:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_FRANCE)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_UK:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_FRANCE)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- }
- }
- }
- //NETHERLANDS
- else if(IsPlayerInVehicle(playerid, ntpro))
- {
- switch(GetPlayerTeam(playerid))
- {
- case TEAM_NETHERLANDS:
- {
- SetPlayerPos(playerid,x,y,z+2.0);
- SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
- RemovePlayerFromVehicle(playerid);
- }
- case TEAM_AFGHANISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_GERMANY:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_PAKISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_CHINA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_FRANCE:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_AUS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_INDIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_RUSSIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_USA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_BRAZIL:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_UK:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_NETHERLANDS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- }
- }
- }
- //INDIA
- else if(IsPlayerInVehicle(playerid, inpro))
- {
- switch(GetPlayerTeam(playerid))
- {
- case TEAM_INDIA:
- {
- SetPlayerPos(playerid,x,y,z+2.0);
- SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
- RemovePlayerFromVehicle(playerid);
- }
- case TEAM_AFGHANISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_INDIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_GERMANY:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_INDIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_PAKISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_INDIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_CHINA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_INDIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_FRANCE:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_INDIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_AUS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_INDIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_NETHERLANDS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_INDIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_RUSSIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_INDIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_USA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_INDIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_BRAZIL:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_INDIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_UK:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_INDIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- }
- }
- }
- //RUSSIA
- else if(IsPlayerInVehicle(playerid, rupro))
- {
- switch(GetPlayerTeam(playerid))
- {
- case TEAM_RUSSIA:
- {
- SetPlayerPos(playerid,x,y,z+2.0);
- SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
- RemovePlayerFromVehicle(playerid);
- }
- case TEAM_AFGHANISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_RUSSIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_GERMANY:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_RUSSIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_PAKISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_RUSSIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_CHINA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_RUSSIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_FRANCE:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_RUSSIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_AUS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_RUSSIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_NETHERLANDS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_RUSSIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_INDIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_RUSSIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_USA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_RUSSIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_BRAZIL:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_RUSSIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_UK:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_RUSSIA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- }
- }
- }
- //USA
- else if(IsPlayerInVehicle(playerid, uspro))
- {
- switch(GetPlayerTeam(playerid))
- {
- case TEAM_USA:
- {
- SetPlayerPos(playerid,x,y,z+2.0);
- SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
- RemovePlayerFromVehicle(playerid);
- }
- case TEAM_AFGHANISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_USA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_GERMANY:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_USA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_PAKISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_USA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_CHINA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_USA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_FRANCE:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_USA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_AUS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_USA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_NETHERLANDS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_USA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_INDIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_USA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_RUSSIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_USA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_BRAZIL:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_USA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_UK:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_USA)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- }
- }
- }
- //BRAZIL
- else if(IsPlayerInVehicle(playerid, brpro))
- {
- switch(GetPlayerTeam(playerid))
- {
- case TEAM_BRAZIL:
- {
- SetPlayerPos(playerid,x,y,z+2.0);
- SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
- RemovePlayerFromVehicle(playerid);
- }
- case TEAM_AFGHANISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_BRAZIL)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_GERMANY:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_BRAZIL)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_PAKISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_BRAZIL)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_CHINA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_BRAZIL)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_FRANCE:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_BRAZIL)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_AUS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_BRAZIL)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_NETHERLANDS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_BRAZIL)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_INDIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_BRAZIL)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_RUSSIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_BRAZIL)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_USA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_BRAZIL)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_UK:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_BRAZIL)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- }
- }
- }
- //UK
- else if(IsPlayerInVehicle(playerid, brpro))
- {
- switch(GetPlayerTeam(playerid))
- {
- case TEAM_UK:
- {
- SetPlayerPos(playerid,x,y,z+2.0);
- SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
- RemovePlayerFromVehicle(playerid);
- }
- case TEAM_AFGHANISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_UK)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_GERMANY:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_UK)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_PAKISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_UK)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_CHINA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_UK)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_FRANCE:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_UK)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_AUS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_UK)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_NETHERLANDS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_UK)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_INDIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_UK)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_RUSSIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_UK)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_USA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_UK)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_BRAZIL:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_UK)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- }
- }
- }
- //AUSTRALIA
- else if(IsPlayerInVehicle(playerid, brpro))
- {
- switch(GetPlayerTeam(playerid))
- {
- case TEAM_AUS:
- {
- SetPlayerPos(playerid,x,y,z+2.0);
- SendClientMessage(playerid, COLOR_RED, "[ERROR]: You can't capture your team prototype.");
- RemovePlayerFromVehicle(playerid);
- }
- case TEAM_AFGHANISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, -2241.5439,2463.1736,4.9844, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AUS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_GERMANY:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AUS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_PAKISTAN:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AUS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_CHINA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AUS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_FRANCE:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AUS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_UK:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AUS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_NETHERLANDS:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AUS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_INDIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AUS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_RUSSIA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AUS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_USA:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AUS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- case TEAM_BRAZIL:
- {
- TogglePlayerAllDynamicCPs(playerid, 0);
- SetPlayerCheckpoint(playerid, 848.2058,-1193.2412,16.9766, 6.00);
- GameTextForPlayer(playerid, "~g~Get The Proto To your Base", 3000, 6);
- IsPrototyping{playerid } = true;
- foreach (new i : Player) if(GetPlayerTeam(i) == TEAM_AUS)
- SendClientMessage(i, COLOR_YELLOW, "[WARNING]: Your team prototype is being stolen.");
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement