SA-MP Forums Archive
Defending team can enter the car to ? :S - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Defending team can enter the car to ? :S (/showthread.php?tid=148259)



Defending team can enter the car to ? :S - ~Dangun! - 16.05.2010

Well the defending team can enter the objective vehicle to for some reason


pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    if(vehicleid == ObjectiveVehicle)
    {
        if(gTeam[forplayerid] == TEAM_ATTACK)
        {
        SetVehicleParamsForPlayer(ObjectiveVehicle, forplayerid, true, false);
        }
        else if(gTeam[forplayerid] == TEAM_DEFEND)
        {
        SetVehicleParamsForPlayer(ObjectiveVehicle, forplayerid, false, false);
        }
    }
    return 1;
}



Re: Defending team can enter the car to ? :S - coole210 - 17.05.2010

try changing objective vehicle to vehicleid in the setvehicle params