pawn Код:
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.");
}
}
}return 1;
}
//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)) // ERROR LINE 16710
{
switch(GetPlayerTeam(playerid)) // ERROR LINE 16712
{
case TEAM_PAKISTAN: // ERROR LINE 16714
{
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.");
}
}
}
}
If the code is pasted complete, your issue would most probably be that you're missing a curled bracket } at the end of OnPlayerStateChange.
Код:
//==============================================================================
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;
}
Yeah you've added an extra one...i can see it clearly in both code snippets...
Be sure to post the whole code for starters, so it's easier for us to find the error.
Your error is probably too many curled brackets at the end.
Try this and tell me if it works.
And to the person above me...your code returned 313 closing brackets.
Indeed. Found them now I believe.