09.10.2016, 17:10
Errrm this won't work
It needs to be able to hold all the vehicles so it have different values for each individual vehicle
now to set it to a team do
then in OnVehicleStreamIn you could do this:
Hopefully you understand this?
Код:
new Car[Team];
Код:
new Car[MAX_VEHICLES];
Код:
Car[ vehicleid ] = TEAM_COP; // or what ever you have defined for that team
Код:
public OnVehicleStreamIn(vehicleid, forplayerid) { if(Car[ vehicleid ] == TEAM_COP && gTeam[playerid] != TEAM_COP) { SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1); } }