lock cars for certin teams
#1

Ok, I want to lock a car for a certin team,

The car is for the Los Santos Metro PD ( copcarla ( carid 596 ). I have this.

Код:
LockLSPDCars(playerid)
	{
	  SetVehicleParamsForPlayer(1, playerid, 0, 1);
	  SetVehicleParamsForPlayer(2, playerid, 0, 1);
	  SetVehicleParamsForPlayer(3, playerid, 0, 1);
	  SetVehicleParamsForPlayer(4, playerid, 0, 1);
	  SetVehicleParamsForPlayer(5, playerid, 0, 1);
	  SetVehicleParamsForPlayer(6, playerid, 0, 1);
	  SetVehicleParamsForPlayer(7, playerid, 0, 1);
	  SetVehicleParamsForPlayer(8, playerid, 0, 1);
	  SetVehicleParamsForPlayer(9, playerid, 0, 1);
	  SetVehicleParamsForPlayer(10, playerid, 0, 1);
	  SetVehicleParamsForPlayer(11, playerid, 0, 1);
	  SetVehicleParamsForPlayer(12, playerid, 0, 1);
	  SetVehicleParamsForPlayer(13, playerid, 0, 1);
		SetVehicleParamsForPlayer(14, playerid, 0, 1);
		SetVehicleParamsForPlayer(15, playerid, 0, 1);
	 	SetVehicleParamsForPlayer(16, playerid, 0, 1);
	  SetVehicleParamsForPlayer(17, playerid, 0, 1);
	  SetVehicleParamsForPlayer(18, playerid, 0, 1);
	  SetVehicleParamsForPlayer(19, playerid, 0, 1);
	  SetVehicleParamsForPlayer(20, playerid, 0, 1);
	  SetVehicleParamsForPlayer(21, playerid, 0, 1);
		SetVehicleParamsForPlayer(22, playerid, 0, 1);
		SetVehicleParamsForPlayer(23, playerid, 0, 1);
		SetVehicleParamsForPlayer(24, playerid, 0, 1);
		SetVehicleParamsForPlayer(25, playerid, 0, 1);
		SetVehicleParamsForPlayer(26, playerid, 0, 1);
		SetVehicleParamsForPlayer(27, playerid, 0, 1);
		SetVehicleParamsForPlayer(28, playerid, 0, 1);
	}
Then this is the message tat is sent when someone enter's a n lspd cop car

Код:
	if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 596)
{
  SendClientMessage(playerid, COLOR_YELLOW, "Type - ( LS Exempt ) ");
  SendClientMessage(playerid, COLOR_GREY, "Reg.: Los Santos Metro Police Department");
}
How ever the vehicles are still not locked. I even added.

Код:
	}else{
 	  TogglePlayerControllable(playerid,1);
		gteam[playerid] = Team_Civ;
		SetPlayerTeam(playerid,Team_Civ);
		SetPlayerArmour(playerid,0);
		SetPlayerHealth(playerid,100);
	 	SetPlayerRandomSpawn(playerid);
    	 	//SpawnPlayerAtHouse(playerid, 1);
	  SetPlayerColor(playerid,COLOR_GREY);
	  SetPlayerVirtualWorld(playerid,0);
        LockLSPDCars;
Reply


Messages In This Thread
lock cars for certin teams - by [LSR]State_Trooper - 20.02.2010, 12:46
Re: lock cars for certin teams - by guaid - 20.02.2010, 14:35
Re: lock cars for certin teams - by [LSR]State_Trooper - 20.02.2010, 15:46
Re: lock cars for certin teams - by DiMeNsIoN© - 20.02.2010, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)