Problem with samp 0.3 Car locking
#2

This will work for car with model 402(buffalo).
The player will lose control as they enter the vehicle.
I assume that is what has happened now.

There are two options for locking a car,
Either

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
  if(newstate == PLAYER_STATE_DRIVER)
  {
    new vehicleid = GetPlayerVehicleID(playerid);
    switch(GetVehicleModel(vehicleid))
    {
      case 402:
      {
        SendClientMessage(playerid, 0x33AA33AA, "Vehicle locked!");
        RemovePlayerFromVehicle(playerid);
      }
    }
  }
  return 1;
}
There is also a physical door lock system in samp using:
https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
https://sampwiki.blast.hk/wiki/OnVehicleStreamIn
Reply


Messages In This Thread
Problem with samp 0.3 Car locking - by hardstop - 31.01.2010, 09:06
Re: Problem with samp 0.3 Car locking - by mansonh - 31.01.2010, 09:11
Re: Problem with samp 0.3 Car locking - by hardstop - 31.01.2010, 09:36
Re: Problem with samp 0.3 Car locking - by SlashPT - 31.01.2010, 09:57
Re: Problem with samp 0.3 Car locking - by hardstop - 31.01.2010, 10:05
Re: Problem with samp 0.3 Car locking - by hardstop - 31.01.2010, 10:17
Re: Problem with samp 0.3 Car locking - by [HiC]TheKiller - 31.01.2010, 10:44
Re: Problem with samp 0.3 Car locking - by SlashPT - 31.01.2010, 10:45
Re: Problem with samp 0.3 Car locking - by hardstop - 31.01.2010, 10:49
Re: Problem with samp 0.3 Car locking - by KuHS - 31.01.2010, 10:53

Forum Jump:


Users browsing this thread: 1 Guest(s)