0.2 Scripting question
#1

How to use this:
Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
  if(vehicleid == OBJECTIVE_VEHICLE_ATTACK) {
    if(gTeam[forplayerid] == TEAM_ATTACK) {
			SetVehicleParamsForPlayer(OBJECTIVE_VEHICLE_ATTACK,forplayerid,1,0); // objective; locked
		}
		else if(gTeam[forplayerid] == TEAM_DEFEND) {
		  SetVehicleParamsForPlayer(OBJECTIVE_VEHICLE_ATTACK,forplayerid,1,1); // objective; unlocked
		}
	}
	return 1;
}
For 0.2.x
Reply
#2

There is no OnVehicleStreamIn for 0.2x
Reply
#3

I know, but how to make a function like this?
Reply
#4

Vehicles don't get streamed in in 0.2x, unless you use a vehicle streamer, which the streaming in practically means creating the vehicle, when you're close enough to It's spawn

And when SetVehicleParamsForPlayer is applied in 0.2x, the vehicle will always be locked, until you unlock it
Reply
#5

Can someone give me a example for locked and unlocked vehicles in sa-mp 0.2x? this way: the car is for team 1 unlocked and team 2 locked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)