/lock command
#7

Top of script

pawn Код:
new VehicleLock[MAX_VEHICLES];
In your /lock command

pawn Код:
VehicleLock[GetPlayerVehicleID(playerid)] = 1;
and the callback

pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
  if(VehicleLock[vehicleid] == 1)
  {
    SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
  }
  return 1;
}
Reply


Messages In This Thread
/lock command - by Headshot1108 - 20.02.2010, 18:31
Re: /lock command - by VonLeeuwen - 20.02.2010, 18:33
Re: /lock command - by Headshot1108 - 20.02.2010, 18:36
Re: /lock command - by Headshot1108 - 20.02.2010, 19:33
Re: /lock command - by smeti - 21.02.2010, 00:42
Re: /lock command - by Headshot1108 - 21.02.2010, 12:39
Re: /lock command - by MadeMan - 21.02.2010, 12:58
Re: /lock command - by Headshot1108 - 21.02.2010, 17:58

Forum Jump:


Users browsing this thread: 6 Guest(s)