Prototype System Problem
#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


Messages In This Thread
Prototype System Problem - by semara123 - 05.06.2016, 10:09
Re: Prototype System Problem - by IFilip - 05.06.2016, 11:04
Re: Prototype System Problem - by semara123 - 05.06.2016, 12:01
Re: Prototype System Problem - by IFilip - 05.06.2016, 12:10
Re: Prototype System Problem - by semara123 - 05.06.2016, 12:13
Re: Prototype System Problem - by IFilip - 05.06.2016, 12:15
Re: Prototype System Problem - by semara123 - 05.06.2016, 13:15
Re: Prototype System Problem - by IFilip - 05.06.2016, 13:20
Re: Prototype System Problem - by semara123 - 05.06.2016, 13:25
Re: Prototype System Problem - by IFilip - 05.06.2016, 13:42

Forum Jump:


Users browsing this thread: 1 Guest(s)