problem with anti fall off
#1

hey, i'm using this anti fall off script: http://forum.sa-mp.com/index.php?topic=50627.0

but it has some problems when i wanne eject someone out of his car he just goes back in the car

this antifall off also works for cars so extremely annoying for me how can i get it only to work for bikes?

if i teleport somewhere while in a car/bike i go to the position but like 2 secs after that i go back to my car i alreaddy added this to my teleport:if(InCar[playerid] == O) but it still wont work


ps i use the version without cmd

help plz
Reply
#2

Ask in the script's thread.
Reply
#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
#4

Quote:

Try adding
Code:

InCar[targetid] = 0;

above
Code:

RemovePlayerFromVehicle(targetid);

and every other command, where playerstate changes.

this in my gamemode or in the filterscript of antifalloff?
Reply
#5

You need to put that under every command that will remove a player from his Car
Reply
#6

i added evrything to the antifall off script but now antifall off wont work for the bikes also


but teles work now
Reply
#7

Quote:
Originally Posted by еddy
Ask in the script's thread.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)