Prototype System Problem
#1

helloo there i'm trying to make a prototype system in my gamemode

this is my prototype script

Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
	if(RecentlyCaptured[europro] || RecentlyCaptured[asiapro] || RecentlyCaptured[africapro] || RecentlyCaptured[usapro] || RecentlyCaptured[auspro] == 1)
		{
		    SendClientMessage(playerid, COLOR_RED, "The Current Prototype has been captured recently. Please wait.");
		    RemovePlayerFromVehicle(playerid);
	//auspro
	//if(vehicleid == auspro && Team[playerid] == AUSTRALIA || Team[playerid] == ADMIN || Team[playerid] == MERCENARY ) {RemovePlayerFromVehicle(playerid);}
	if(GetVehicleModel(vehicleid) == auspro && Team[playerid] != AUSTRALIA || Team[playerid] != ADMIN || Team[playerid] != MERCENARY )
	{
		SendClientMessage(playerid, -1, "You Steal Australia Prototype");
		SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal Australia Prototype");
	if(Team[playerid] == ASIA && vehicleid == auspro)
	{
		SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][auspro] = 1;
		SetPlayerCheckpoint(playerid,1136.6808,1968.4490,10.8203, 10.0);
	}
    if(Team[playerid] == AFRICA && vehicleid == auspro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][auspro] = 1;
		SetPlayerCheckpoint(playerid,-754.0302,1586.2006,26.9609, 10.0);
	}
    if(Team[playerid] == AMERICA && vehicleid == auspro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][auspro] = 1;
		SetPlayerCheckpoint(playerid,-145.1369,1120.6730,19.7500, 10.0);
	}
	if(Team[playerid] == EUROPE && vehicleid == auspro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][auspro] = 1;
		SetPlayerCheckpoint(playerid,-167.9965,2720.3223,62.1003, 10.0);
	}
    }
    
    //asiapro
    if(vehicleid == asiapro && Team[playerid] != ASIA || Team[playerid] != ADMIN || Team[playerid] != MERCENARY )
	{
		SendClientMessage(playerid, -1, "You Steal Asia Prototype");
		SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal Asia Prototype");
	if(Team[playerid] == AUSTRALIA && vehicleid == asiapro)
	{
		SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][asiapro] = 1;
		SetPlayerCheckpoint(playerid,429.3654,2515.2388,16.1535, 10.0);
	}
    if(Team[playerid] == AFRICA && vehicleid == asiapro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][asiapro] = 1;
		SetPlayerCheckpoint(playerid,-754.0302,1586.2006,26.9609, 10.0);
	}
    if(Team[playerid] == AMERICA && vehicleid == asiapro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][asiapro] = 1;
		SetPlayerCheckpoint(playerid,-145.1369,1120.6730,19.7500, 10.0);
	}
	if(Team[playerid] == EUROPE && vehicleid == asiapro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][asiapro] = 1;
		SetPlayerCheckpoint(playerid,-167.9965,2720.3223,62.1003, 10.0);
	}
    }
    //africapro
    if(vehicleid == africapro && Team[playerid] != AFRICA || Team[playerid] != ADMIN || Team[playerid] != MERCENARY )
	{
		SendClientMessage(playerid, -1, "You Steal Africa Prototype");
		SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal Africa Prototype");
	if(Team[playerid] == AUSTRALIA && vehicleid == africapro)
	{
		SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][africapro] = 1;
		SetPlayerCheckpoint(playerid,429.3654,2515.2388,16.1535, 10.0);
	}
    if(Team[playerid] == ASIA && vehicleid == africapro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][africapro] = 1;
		SetPlayerCheckpoint(playerid,1136.6808,1968.4490,10.8203, 10.0);
	}
    if(Team[playerid] == AMERICA && vehicleid == africapro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][africapro] = 1;
		SetPlayerCheckpoint(playerid,-145.1369,1120.6730,19.7500, 10.0);
	}
	if(Team[playerid] == EUROPE && vehicleid == africapro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][africapro] = 1;
		SetPlayerCheckpoint(playerid,-167.9965,2720.3223,62.1003, 10.0);
	}
    }
    //americapro
     if(vehicleid == usapro && Team[playerid] != AMERICA || Team[playerid] != ADMIN || Team[playerid] != MERCENARY )
	{
		SendClientMessage(playerid, -1, "You Steal America Prototype");
		SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal America Prototype");
	if(Team[playerid] == AUSTRALIA && vehicleid == usapro)
	{
		SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][usapro] = 1;
		SetPlayerCheckpoint(playerid,429.3654,2515.2388,16.1535, 10.0);
	}
    if(Team[playerid] == ASIA && vehicleid == usapro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][usapro] = 1;
		SetPlayerCheckpoint(playerid,1136.6808,1968.4490,10.8203, 10.0);
	}
    if(Team[playerid] == AFRICA && vehicleid == usapro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][usapro] = 1;
		SetPlayerCheckpoint(playerid,-754.0302,1586.2006,26.9609, 10.0);
	}
	if(Team[playerid] == EUROPE && vehicleid == usapro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][usapro] = 1;
		SetPlayerCheckpoint(playerid,-167.9965,2720.3223,62.1003, 10.0);
	}
    }
	//europepro
//	if(GetVehicleModel(vehicleid) == europro && Team[playerid] == EUROPE ) {RemovePlayerFromVehicle(playerid);}
	 if(GetVehicleModel(vehicleid) == europro && Team[playerid] != EUROPE || Team[playerid] != ADMIN || Team[playerid] != MERCENARY )
	{
		SendClientMessage(playerid, -1, "You Steal Europe Prototype");
		SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal Europe Prototype");
	if(Team[playerid] == AUSTRALIA && GetVehicleModel(vehicleid) == europro)
	{
		SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][europro] = 1;
		SetPlayerCheckpoint(playerid,429.3654,2515.2388,16.1535, 10.0);
	}
    if(Team[playerid] == ASIA && GetVehicleModel(vehicleid) == europro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][europro] = 1;
		SetPlayerCheckpoint(playerid,1136.6808,1968.4490,10.8203, 10.0);
	}
    if(Team[playerid] == AFRICA && GetVehicleModel(vehicleid) == europro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][europro] = 1;
		SetPlayerCheckpoint(playerid,-754.0302,1586.2006,26.9609, 10.0);
	}
	if(Team[playerid] == AMERICA && GetVehicleModel(vehicleid) == europro)
	{
	    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
		IsCapturing[playerid][europro] = 1;
		SetPlayerCheckpoint(playerid,-145.1369,1120.6730,19.7500, 10.0);
	}
    }
    }
	return 1;
}
the problems are:
1 when i enter the prototype vehicle i got the message spammed in my chatbox
2 i cant prevent the team to not enter their own prototype

plss help i dont know whats wrong with the script

sry for my bad english
Reply
#2

try this and tell me
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
    if(RecentlyCaptured[europro] || RecentlyCaptured[asiapro] || RecentlyCaptured[africapro] || RecentlyCaptured[usapro] || RecentlyCaptured[auspro] == 1)
    {
            SendClientMessage(playerid, COLOR_RED, "The Current Prototype has been captured recently. Please wait.");
            return RemovePlayerFromVehicle(playerid);

            //auspro
            if(GetVehicleModel(vehicleid) == auspro)
            {
                if(Team[playerid] == AUSTRALIA || Team[playerid] == MERCENARY || Team[playerid] == ADMIN) return RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, -1, "You Steal Australia Prototype");
                SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal Australia Prototype");
                if(Team[playerid] == ASIA && vehicleid == auspro)
                {
                    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                    IsCapturing[playerid][auspro] = 1;
                    SetPlayerCheckpoint(playerid,1136.6808,1968.4490,10.8203, 10.0);
                    return 1;
                }
                if(Team[playerid] == AFRICA && vehicleid == auspro)
                {
                    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                    IsCapturing[playerid][auspro] = 1;
                    SetPlayerCheckpoint(playerid,-754.0302,1586.2006,26.9609, 10.0);
                    return 1;
                }
                if(Team[playerid] == AMERICA && vehicleid == auspro)
                {
                    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                    IsCapturing[playerid][auspro] = 1;
                    SetPlayerCheckpoint(playerid,-145.1369,1120.6730,19.7500, 10.0);
                    return 1;
                }
                if(Team[playerid] == EUROPE && vehicleid == auspro)
                {
                    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                    IsCapturing[playerid][auspro] = 1;
                    SetPlayerCheckpoint(playerid,-167.9965,2720.3223,62.1003, 10.0);
                    return 1;
                }
            }
       
        //asiapro
        if(vehicleid == asiapro)
        {
            if(Team[playerid] == ASIA || Team[playerid] == MERCENARY || Team[playerid] == ADMIN) return RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, -1, "You Steal Asia Prototype");
            SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal Asia Prototype");
            if(Team[playerid] == AUSTRALIA && vehicleid == asiapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][asiapro] = 1;
                SetPlayerCheckpoint(playerid,429.3654,2515.2388,16.1535, 10.0);
                return 1;
            }
            if(Team[playerid] == AFRICA && vehicleid == asiapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][asiapro] = 1;
                SetPlayerCheckpoint(playerid,-754.0302,1586.2006,26.9609, 10.0);
                return 1;
            }
            if(Team[playerid] == AMERICA && vehicleid == asiapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][asiapro] = 1;
                SetPlayerCheckpoint(playerid,-145.1369,1120.6730,19.7500, 10.0);
                return 1;
            }
            if(Team[playerid] == EUROPE && vehicleid == asiapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][asiapro] = 1;
                SetPlayerCheckpoint(playerid,-167.9965,2720.3223,62.1003, 10.0);
                return 1;
            }
        }

        //africapro
        if(vehicleid == africapro)
        {
            if(Team[playerid] == AFRICA || Team[playerid] == MERCENARY || Team[playerid] == ADMIN) return RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, -1, "You Steal Africa Prototype");
            SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal Africa Prototype");
            if(Team[playerid] == AUSTRALIA && vehicleid == africapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][africapro] = 1;
                SetPlayerCheckpoint(playerid,429.3654,2515.2388,16.1535, 10.0);
                return 1;
            }
            if(Team[playerid] == ASIA && vehicleid == africapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][africapro] = 1;
                SetPlayerCheckpoint(playerid,1136.6808,1968.4490,10.8203, 10.0);
                return 1;
            }
            if(Team[playerid] == AMERICA && vehicleid == africapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][africapro] = 1;
                SetPlayerCheckpoint(playerid,-145.1369,1120.6730,19.7500, 10.0);
                return 1;
            }
            if(Team[playerid] == EUROPE && vehicleid == africapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][africapro] = 1;
                SetPlayerCheckpoint(playerid,-167.9965,2720.3223,62.1003, 10.0);
                return 1;
            }
        }

        //americapro
        if(vehicleid == usapro)
        {
            if(Team[playerid] == AMERICA || Team[playerid] == MERCENARY || Team[playerid] == ADMIN) return RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, -1, "You Steal America Prototype");
            SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal America Prototype");
            if(Team[playerid] == AUSTRALIA && vehicleid == usapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][usapro] = 1;
                SetPlayerCheckpoint(playerid,429.3654,2515.2388,16.1535, 10.0);
                return 1;
            }
            if(Team[playerid] == ASIA && vehicleid == usapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][usapro] = 1;
                SetPlayerCheckpoint(playerid,1136.6808,1968.4490,10.8203, 10.0);
                return 1;
            }
            if(Team[playerid] == AFRICA && vehicleid == usapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][usapro] = 1;
                SetPlayerCheckpoint(playerid,-754.0302,1586.2006,26.9609, 10.0);
                return 1;
            }
            if(Team[playerid] == EUROPE && vehicleid == usapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][usapro] = 1;
                SetPlayerCheckpoint(playerid,-167.9965,2720.3223,62.1003, 10.0);
                return 1;
            }
        }

        //europepro
        if(GetVehicleModel(vehicleid) == europro)
        {
            if(Team[playerid] == EUROPE || Team[playerid] == MERCENARY || Team[playerid] == ADMIN) return RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, -1, "You Steal Europe Prototype");
            SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal Europe Prototype");
            if(Team[playerid] == AUSTRALIA && GetVehicleModel(vehicleid) == europro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][europro] = 1;
                SetPlayerCheckpoint(playerid,429.3654,2515.2388,16.1535, 10.0);
                return 1;
            }
            if(Team[playerid] == ASIA && GetVehicleModel(vehicleid) == europro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][europro] = 1;
                SetPlayerCheckpoint(playerid,1136.6808,1968.4490,10.8203, 10.0);
                return 1;
            }
            if(Team[playerid] == AFRICA && GetVehicleModel(vehicleid) == europro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][europro] = 1;
                SetPlayerCheckpoint(playerid,-754.0302,1586.2006,26.9609, 10.0);
                return 1;
            }
            if(Team[playerid] == AMERICA && GetVehicleModel(vehicleid) == europro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][europro] = 1;
                SetPlayerCheckpoint(playerid,-145.1369,1120.6730,19.7500, 10.0);
                return 1;
            }
        }
    }
    return 1;
}
Reply
#3

well i got 1 warning

if(GetVehicleModel(vehicleid) == auspro) // on this line

warning 225: unreachable code

btw thanks before
Reply
#4

Replace it with vehicleid == auspro and try
Reply
#5

i did but still the code did not work
Reply
#6

What problems? Something comes out? It does not work on the server or in the code?
Reply
#7

the code doesnt work

nothing happen when i enter the prototype
Reply
#8

Can you show me auspro, africapro etc, var?
Reply
#9

Код:
new auspro,
 usapro,
 africapro,
 asiapro,
 europro;

new IsCapturing[MAX_PLAYERS][5];
new RecentlyCaptured[5];
//ongamemodeinit
	auspro = AddStaticVehicle(498,373.1341,2437.7944,16.5454,86.8949,2,2); // auspro
	usapro = AddStaticVehicle(498,-156.0748,1128.8062,19.7900,176.5676,181,146); // usapro
	africapro = AddStaticVehicle(498,-789.8835,1594.5546,27.1864,358.3185,1,1); // africapro
	asiapro = AddStaticVehicle(498,1122.0162,1992.9548,10.8889,181.4332,1,1); // asiapro
	europro = AddStaticVehicle(498,-171.3978,2693.7756,62.5247,89.4470,162,208); // europro
Reply
#10

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
    if(RecentlyCaptured[europro] || RecentlyCaptured[asiapro] || RecentlyCaptured[africapro] || RecentlyCaptured[usapro] || RecentlyCaptured[auspro] == 1)
    {
            SendClientMessage(playerid, COLOR_RED, "The Current Prototype has been captured recently. Please wait.");
            return RemovePlayerFromVehicle(playerid);

            //auspro
            if(vehicleid == auspro)
            {
                if(Team[playerid] == AUSTRALIA || Team[playerid] == MERCENARY || Team[playerid] == ADMIN) return RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, -1, "You Steal Australia Prototype");
                SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal Australia Prototype");
                if(Team[playerid] == ASIA && vehicleid == auspro)
                {
                    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                    IsCapturing[playerid][auspro] = 1;
                    SetPlayerCheckpoint(playerid,1136.6808,1968.4490,10.8203, 10.0);
                    return 1;
                }
                if(Team[playerid] == AFRICA && vehicleid == auspro)
                {
                    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                    IsCapturing[playerid][auspro] = 1;
                    SetPlayerCheckpoint(playerid,-754.0302,1586.2006,26.9609, 10.0);
                    return 1;
                }
                if(Team[playerid] == AMERICA && vehicleid == auspro)
                {
                    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                    IsCapturing[playerid][auspro] = 1;
                    SetPlayerCheckpoint(playerid,-145.1369,1120.6730,19.7500, 10.0);
                    return 1;
                }
                if(Team[playerid] == EUROPE && vehicleid == auspro)
                {
                    SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                    IsCapturing[playerid][auspro] = 1;
                    SetPlayerCheckpoint(playerid,-167.9965,2720.3223,62.1003, 10.0);
                    return 1;
                }
            }
       
        //asiapro
        if(vehicleid == asiapro)
        {
            if(Team[playerid] == ASIA || Team[playerid] == MERCENARY || Team[playerid] == ADMIN) return RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, -1, "You Steal Asia Prototype");
            SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal Asia Prototype");
            if(Team[playerid] == AUSTRALIA && vehicleid == asiapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][asiapro] = 1;
                SetPlayerCheckpoint(playerid,429.3654,2515.2388,16.1535, 10.0);
                return 1;
            }
            if(Team[playerid] == AFRICA && vehicleid == asiapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][asiapro] = 1;
                SetPlayerCheckpoint(playerid,-754.0302,1586.2006,26.9609, 10.0);
                return 1;
            }
            if(Team[playerid] == AMERICA && vehicleid == asiapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][asiapro] = 1;
                SetPlayerCheckpoint(playerid,-145.1369,1120.6730,19.7500, 10.0);
                return 1;
            }
            if(Team[playerid] == EUROPE && vehicleid == asiapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][asiapro] = 1;
                SetPlayerCheckpoint(playerid,-167.9965,2720.3223,62.1003, 10.0);
                return 1;
            }
        }

        //africapro
        if(vehicleid == africapro)
        {
            if(Team[playerid] == AFRICA || Team[playerid] == MERCENARY || Team[playerid] == ADMIN) return RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, -1, "You Steal Africa Prototype");
            SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal Africa Prototype");
            if(Team[playerid] == AUSTRALIA && vehicleid == africapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][africapro] = 1;
                SetPlayerCheckpoint(playerid,429.3654,2515.2388,16.1535, 10.0);
                return 1;
            }
            if(Team[playerid] == ASIA && vehicleid == africapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][africapro] = 1;
                SetPlayerCheckpoint(playerid,1136.6808,1968.4490,10.8203, 10.0);
                return 1;
            }
            if(Team[playerid] == AMERICA && vehicleid == africapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][africapro] = 1;
                SetPlayerCheckpoint(playerid,-145.1369,1120.6730,19.7500, 10.0);
                return 1;
            }
            if(Team[playerid] == EUROPE && vehicleid == africapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][africapro] = 1;
                SetPlayerCheckpoint(playerid,-167.9965,2720.3223,62.1003, 10.0);
                return 1;
            }
        }

        //americapro
        if(vehicleid == usapro)
        {
            if(Team[playerid] == AMERICA || Team[playerid] == MERCENARY || Team[playerid] == ADMIN) return RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, -1, "You Steal America Prototype");
            SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal America Prototype");
            if(Team[playerid] == AUSTRALIA && vehicleid == usapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][usapro] = 1;
                SetPlayerCheckpoint(playerid,429.3654,2515.2388,16.1535, 10.0);
                return 1;
            }
            if(Team[playerid] == ASIA && vehicleid == usapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][usapro] = 1;
                SetPlayerCheckpoint(playerid,1136.6808,1968.4490,10.8203, 10.0);
                return 1;
            }
            if(Team[playerid] == AFRICA && vehicleid == usapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][usapro] = 1;
                SetPlayerCheckpoint(playerid,-754.0302,1586.2006,26.9609, 10.0);
                return 1;
            }
            if(Team[playerid] == EUROPE && vehicleid == usapro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][usapro] = 1;
                SetPlayerCheckpoint(playerid,-167.9965,2720.3223,62.1003, 10.0);
                return 1;
            }
        }

        //europepro
        if(vehicleid == europro)
        {
            if(Team[playerid] == EUROPE || Team[playerid] == MERCENARY || Team[playerid] == ADMIN) return RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, -1, "You Steal Europe Prototype");
            SendClientMessageToAll(COLOR_RED,"Someone Tries To Steal Europe Prototype");
            if(Team[playerid] == AUSTRALIA && vehicleid == europro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][europro] = 1;
                SetPlayerCheckpoint(playerid,429.3654,2515.2388,16.1535, 10.0);
                return 1;
            }
            if(Team[playerid] == ASIA && vehicleid == europro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][europro] = 1;
                SetPlayerCheckpoint(playerid,1136.6808,1968.4490,10.8203, 10.0);
                return 1;
            }
            if(Team[playerid] == AFRICA && vehicleid == europro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][europro] = 1;
                SetPlayerCheckpoint(playerid,-754.0302,1586.2006,26.9609, 10.0);
                return 1;
            }
            if(Team[playerid] == AMERICA && vehicleid == europro)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Deliver Prototype To The Checkpoint in Your Base");
                IsCapturing[playerid][europro] = 1;
                SetPlayerCheckpoint(playerid,-145.1369,1120.6730,19.7500, 10.0);
                return 1;
            }
        }
    }
    return 1;
}
try this one
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)