Objective vehicle problem.
#1

Seems OnVehicleStreamIn doesn't work at all.
i mean the vehicle is not locking
players can enter it.
same as Objective.


pawn Код:
#define USA_PROTO 3
#define EURO_PROTO 1
#define JAPAN_PROTO 4
#define MORC_PROTO 5
#define ARAB_PROTO 2
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
  #if USE_FLAGS false
  if(vehicleid == USA_PROTO) {
        if(gTeam[forplayerid] == TEAM_USA) {
            SetVehicleParamsForPlayer(USA_PROTO,forplayerid,1,1); // objective; locked
        }
        else if(gTeam[forplayerid] == TEAM_EURO) {
            SetVehicleParamsForPlayer(USA_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_JAPAN) {
            SetVehicleParamsForPlayer(USA_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_MORC) {
            SetVehicleParamsForPlayer(USA_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_ARAB) {
            SetVehicleParamsForPlayer(USA_PROTO,forplayerid,1,0); // objective; unlocked
        }
    }
    else if(vehicleid == EURO_PROTO) {
        if(gTeam[forplayerid] == TEAM_EURO) {
            SetVehicleParamsForPlayer(EURO_PROTO,forplayerid,1,1); // objective; locked
        }
        else if(gTeam[forplayerid] == TEAM_USA) {
            SetVehicleParamsForPlayer(EURO_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_JAPAN) {
            SetVehicleParamsForPlayer(EURO_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_MORC) {
            SetVehicleParamsForPlayer(EURO_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_ARAB) {
            SetVehicleParamsForPlayer(EURO_PROTO,forplayerid,1,0); // objective; unlocked
        }
    }
    else if(vehicleid == JAPAN_PROTO) {
        if(gTeam[forplayerid] == TEAM_JAPAN) {
            SetVehicleParamsForPlayer(JAPAN_PROTO,forplayerid,1,1); // objective; locked
        }
        else if(gTeam[forplayerid] == TEAM_USA) {
            SetVehicleParamsForPlayer(JAPAN_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_EURI) {
            SetVehicleParamsForPlayer(JAPAN_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_MORC) {
            SetVehicleParamsForPlayer(JAPAN_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_ARAB) {
            SetVehicleParamsForPlayer(JAPAN_PROTO,forplayerid,1,0); // objective; unlocked
        }
    }
    else if(vehicleid == MORC_PROTO) {
        if(gTeam[forplayerid] == TEAM_MORC) {
            SetVehicleParamsForPlayer(MORC_PROTO,forplayerid,1,1); // objective; locked
        }
        else if(gTeam[forplayerid] == TEAM_USA) {
            SetVehicleParamsForPlayer(MORC_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_EURI) {
            SetVehicleParamsForPlayer(MORC_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_JAPAN) {
            SetVehicleParamsForPlayer(MORC_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_ARAB) {
            SetVehicleParamsForPlayer(MORC_PROTO,forplayerid,1,0); // objective; unlocked
        }
    }
    else if(vehicleid == ARAB_PROTO) {
        if(gTeam[forplayerid] == TEAM_MORC) {
            SetVehicleParamsForPlayer(ARAB_PROTO,forplayerid,1,1); // objective; locked
        }
        else if(gTeam[forplayerid] == TEAM_USA) {
            SetVehicleParamsForPlayer(ARAB_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_EURI) {
            SetVehicleParamsForPlayer(ARAB_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_JAPAN) {
            SetVehicleParamsForPlayer(ARAB_PROTO,forplayerid,1,0); // objective; unlocked
        }
        else if(gTeam[forplayerid] == TEAM_MORC) {
            SetVehicleParamsForPlayer(ARAB_PROTO,forplayerid,1,0); // objective; unlocked
        }
    }
  #endif
  return 1;
}
Reply


Messages In This Thread
Objective vehicle problem. - by V_LOPE - 08.12.2012, 15:08
Re: Objective vehicle problem. - by JaKe Elite - 09.12.2012, 03:52
Re: Objective vehicle problem. - by Guest9328472398472 - 09.12.2012, 04:26

Forum Jump:


Users browsing this thread: 1 Guest(s)