All pastes #971191 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-04-04 15:58 UTC
rendered paste body
public 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;
 }