rendered paste bodypublic LockVehiclesForTeam(teamid)
{
for(new i=0; i<MAX_PLAYERS; i++) if(IsPlayerConnected(i))
{
if (gTeam[i] == TEAM_MILITARY)
{
SetVehicleParamsForPlayer(army_car1,i, 0, 0);
SetVehicleParamsForPlayer(army_car2,i, 0, 0);
SetVehicleParamsForPlayer(army_car3,i, 0, 0);
SetVehicleParamsForPlayer(army_car4,i, 0, 0);
SetVehicleParamsForPlayer(army_heli_1,i, 0, 0);
SetVehicleParamsForPlayer(army_heli_2,i, 0, 0);
SetVehicleParamsForPlayer(army_heli_3,i, 0, 0);
}
else
{
SetVehicleParamsForPlayer(army_car1,i,0,1);
SetVehicleParamsForPlayer(army_car2,i,0,1);
SetVehicleParamsForPlayer(army_car3,i,0,1);
SetVehicleParamsForPlayer(army_car4,i,0,1);
SetVehicleParamsForPlayer(army_heli_1,i,0,1);
SetVehicleParamsForPlayer(army_heli_2,i,0,1);
SetVehicleParamsForPlayer(army_heli_3,i,0,1);
}
}
return 1;
}