problem with anti fall off
#3

Try adding
Код:
InCar[targetid] = 0;
above
Код:
RemovePlayerFromVehicle(targetid);
and every other command, where playerstate changes.

pawn Код:
stock IsBike(carid) {

  new Bikes[] = { 581, 462, 521, 463, 522, 523, 461, 448, 471, 468, 586, 509, 481, 510 };
  for(new i = 0; i < sizeof(Bikes); i++) {
    if(GetVehicleModel(carid) == Bikes[i]) return 1;
  }
  return 0;
}
pawn Код:
if(oldstate == PLAYER_STATE_ONFOOT)
{
  if(newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER)
  {
    if(IsBike(GetPlayerVehicleID(playerid)) {
      InCar[playerid] = 1;
      WhatCar[playerid] = GetPlayerVehicleID(playerid);
    }
  }
}
Reply


Messages In This Thread
problem with anti fall off - by stinkiwinki - 20.07.2009, 10:23
Re: problem with anti fall off - by refshal - 20.07.2009, 10:42
Re: problem with anti fall off - by M4S7ERMIND - 20.07.2009, 10:50
Re: problem with anti fall off - by stinkiwinki - 20.07.2009, 11:01
Re: problem with anti fall off - by Pawno_Master - 20.07.2009, 11:03
Re: problem with anti fall off - by stinkiwinki - 20.07.2009, 11:11
Re: problem with anti fall off - by refshal - 20.07.2009, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)